Files
N22/include/templates/weather_forecast.yaml
T

19 lines
502 B
YAML

- trigger:
- platform: homeassistant
event: start
- platform: time_pattern
hours: "/1"
action:
- action: weather.get_forecasts
target:
entity_id: weather.norgardsvej
data:
type: daily
response_variable: daily
sensor:
- name: "Vejr daglig prognose"
unique_id: vejr_daglig_prognose
state: "{{ daily['weather.norgardsvej'].forecast | length }}"
attributes:
forecast: "{{ daily['weather.norgardsvej'].forecast }}"