Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Husk at nordpoolsensorens ID kan variere, så det kan være nødvendigt at ændre navnet!
- alias: Nordpool genstart integration
- description: ''
- trigger:
- - platform: time_pattern
- minutes: /15
- condition:
- - condition: time
- after: '13:15'
- before: '17:00'
- - condition: or
- conditions:
- - condition: template
- value_template: >-
- {{ state_attr("sensor.nordpool_kwh_dk2_dkk_2_00_025", "tomorrow")[0]
- == None }}
- - condition: template
- value_template: >-
- {{ is_state_attr("sensor.nordpool_kwh_dk2_dkk_2_00_025",
- "tomorrow_valid", False) }}
- action:
- - service: homeassistant.reload_config_entry
- target:
- entity_id: sensor.nordpool_kwh_dk2_dkk_2_00_025
- - service: persistent_notification.create
- data:
- title: Nordpool genstartet
- message: Nordpool-integrationen blev genstartet v2
- mode: single
Add Comment
Please, Sign In to add comment