So this code 'works' but I don't actually get the forecasted high for the day, it's a moving high. Can you show me what it should be? @123
For instance, the high today was 83F but this result is 76. That's nearly what it is right now.
- trigger:
- trigger: state
entity_id: weather.forecast_home
action:
- variables:
w: weather.forecast_home
- action: weather.get_forecasts
data:
type: daily
target:
entity_id: "{{ w }}"
response_variable: r
sensor:
- name: "Temperature Max"
unique_id: "temperature_max"
unit_of_measurement: "°F"
device_class: temperature
state: "{{ r[w].forecast[0].temperature }}"