Vanding: fix nedbørsprognose via trigger-template sensor (HA 2024.3+ forecast API)
This commit is contained in:
@@ -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 }}"
|
||||
Reference in New Issue
Block a user