Vanding: fix nedbørsprognose via trigger-template sensor (HA 2024.3+ forecast API)
@@ -133,7 +133,7 @@ sections:
|
|||||||
title:
|
title:
|
||||||
text: mm
|
text: mm
|
||||||
series:
|
series:
|
||||||
- entity: weather.norgardsvej
|
- entity: sensor.vejr_daglig_prognose
|
||||||
name: Nedbør
|
name: Nedbør
|
||||||
color: "#4fc3f7"
|
color: "#4fc3f7"
|
||||||
data_generator: |
|
data_generator: |
|
||||||
|
|||||||
@@ -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 }}"
|
||||||
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 32 KiB |