marlar

Genstart nordpool-integration

Mar 18th, 2022 (edited)
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.90 KB | None | 0 0
  1. # Husk at nordpoolsensorens ID kan variere, så det kan være nødvendigt at ændre navnet!
  2.  
  3. alias: Nordpool genstart integration
  4. description: ''
  5. trigger:
  6.   - platform: time_pattern
  7.     minutes: /15
  8. condition:
  9.   - condition: time
  10.     after: '13:15'
  11.     before: '17:00'
  12.   - condition: or
  13.     conditions:
  14.       - condition: template
  15.         value_template: >-
  16.           {{ state_attr("sensor.nordpool_kwh_dk2_dkk_2_00_025", "tomorrow")[0]
  17.           == None }}
  18.       - condition: template
  19.         value_template: >-
  20.           {{ is_state_attr("sensor.nordpool_kwh_dk2_dkk_2_00_025",
  21.           "tomorrow_valid", False) }}
  22. action:
  23.   - service: homeassistant.reload_config_entry
  24.     target:
  25.       entity_id: sensor.nordpool_kwh_dk2_dkk_2_00_025
  26.   - service: persistent_notification.create
  27.     data:
  28.       title: Nordpool genstartet
  29.       message: Nordpool-integrationen blev genstartet v2
  30. mode: single
  31.  
Add Comment
Please, Sign In to add comment