I want to add to my existing weather device additional sensors
My weather is providing daily rain forecasts but i want to add 2days and 3 days statistics
used to configure this in my YAML configuration file.
I am really struggling to see how to do that using the new UI . With automations ? With Helpers ?
Do you have any idea ?
- trigger:
- trigger: time_pattern
hours: "0"
action:
- action: weather.get_forecasts
data:
type: daily
target:
entity_id: weather.home
response_variable: daily
sensor:
- name: Rain next Three days
unique_id: precipitation_forecast_next_3_days
state: "{{ daily['weather.home'].forecast[0].precipitation + daily['weather.home'].forecast[1].precipitation + daily['weather.home'].forecast[2].precipitation}}"
unit_of_measurement: "mm"
attributes:
updated_at: "{{ now() }}"