Skip to content

Commit

Permalink
weather.forecast_home to weather.home for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
chunkysteveo authored Nov 28, 2023
1 parent c99be77 commit 1eb291b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions ha-configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,13 @@ template:
wm_temp_4: >
{{ state_attr('weather.home', 'forecast')[0].temperature | round }}
wm_precipitation_4: >
{{ state_attr('weather.forecast_home', 'forecast')[0].precipitation | round }}
{{ state_attr('weather.home', 'forecast')[0].precipitation | round }}
wm_temp_4_low: >
{{ state_attr('weather.home', 'forecast')[0].templow | round }}
wm_wind_speed_4: >
{{ state_attr('weather.forecast_home', 'forecast')[0].wind_speed | round }}
{{ state_attr('weather.home', 'forecast')[0].wind_speed | round }}
wm_wind_dir_4: >
{{ state_attr('weather.forecast_home', 'forecast')[0].wind_bearing | round }}
{{ state_attr('weather.home', 'forecast')[0].wind_bearing | round }}
wm_time_4: >
{{ "%s" % (["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][as_timestamp(state_attr('weather.home', 'forecast')[0].datetime) | timestamp_custom('%w') | int]) }}
wm_cond_5: >
Expand All @@ -157,13 +157,13 @@ template:
wm_temp_5: >
{{ state_attr('weather.home', 'forecast')[1].temperature | round }}
wm_precipitation_5: >
{{ state_attr('weather.forecast_home', 'forecast')[1].precipitation | round }}
{{ state_attr('weather.home', 'forecast')[1].precipitation | round }}
wm_temp_5_low: >
{{ state_attr('weather.home', 'forecast')[1].templow | round }}
wm_wind_speed_5: >
{{ state_attr('weather.forecast_home', 'forecast')[1].wind_speed | round }}
{{ state_attr('weather.home', 'forecast')[1].wind_speed | round }}
wm_wind_dir_5: >
{{ state_attr('weather.forecast_home', 'forecast')[1].wind_bearing | round }}
{{ state_attr('weather.home', 'forecast')[1].wind_bearing | round }}
wm_time_5: >
{{ "%s" % (["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][as_timestamp(state_attr('weather.home', 'forecast')[1].datetime) | timestamp_custom('%w') | int]) }}
wm_cond_6: >
Expand All @@ -172,13 +172,13 @@ template:
wm_temp_6: >
{{ state_attr('weather.home', 'forecast')[2].temperature | round }}
wm_precipitation_6: >
{{ state_attr('weather.forecast_home', 'forecast')[2].precipitation | round }}
{{ state_attr('weather.home', 'forecast')[2].precipitation | round }}
wm_temp_6_low: >
{{ state_attr('weather.home', 'forecast')[2].templow | round }}
wm_wind_speed_6: >
{{ state_attr('weather.forecast_home', 'forecast')[2].wind_speed | round }}
{{ state_attr('weather.home', 'forecast')[2].wind_speed | round }}
wm_wind_dir_6: >
{{ state_attr('weather.forecast_home', 'forecast')[2].wind_bearing | round }}
{{ state_attr('weather.home', 'forecast')[2].wind_bearing | round }}
wm_time_6: >
{{ "%s" % (["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][as_timestamp(state_attr('weather.home', 'forecast')[2].datetime) | timestamp_custom('%w') | int]) }}
wm_cond_7: >
Expand All @@ -187,12 +187,12 @@ template:
wm_temp_7: >
{{ state_attr('weather.home', 'forecast')[3].temperature | round }}
wm_precipitation_7: >
{{ state_attr('weather.forecast_home', 'forecast')[3].precipitation | round }}
{{ state_attr('weather.home', 'forecast')[3].precipitation | round }}
wm_temp_7_low: >
{{ state_attr('weather.home', 'forecast')[3].templow | round }}
wm_wind_speed_7: >
{{ state_attr('weather.forecast_home', 'forecast')[3].wind_speed | round }}
{{ state_attr('weather.home', 'forecast')[3].wind_speed | round }}
wm_wind_dir_7: >
{{ state_attr('weather.forecast_home', 'forecast')[3].wind_bearing | round }}
{{ state_attr('weather.home', 'forecast')[3].wind_bearing | round }}
wm_time_7: >
{{ "%s" % (["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][as_timestamp(state_attr('weather.home', 'forecast')[3].datetime) | timestamp_custom('%w') | int]) }}

0 comments on commit 1eb291b

Please sign in to comment.