Vanding: fix nedbørsprognose via trigger-template sensor (HA 2024.3+ forecast API)

This commit is contained in:
2026-05-16 11:49:21 +02:00
parent eacd137a7c
commit 9f9de0524a
12 changed files with 19 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
- 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 }}"