Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 21 additions & 8 deletions examples/automations/load_shedding_reload.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
alias: Load Shedding Reload
description: "Reloads the integration every night to work around Issue #70/#71"
trigger:
- platform: time
at: "00:00:00"
condition: []
action:
- service: homeassistant.reload_config_entry
data:
entry_id: ee9d0703259463a110ef7b96a8c8c773
triggers:
- at: "00:00:00"
trigger: time
conditions: []
actions:
- variables:
config_entry: "{{ config_entry_id(integration_entities(\"Load Shedding\") | first) }}"
- alias: Config entry found?
if:
- condition: template
value_template: "{{ config_entry != None }}"
alias: Config Entry var is set
then:
- data:
entry_id: "{{ config_entry }}"
action: homeassistant.reload_config_entry
alias: Reload Config Entry
else:
- alias: Config Entry not Found
stop: Config entry for Load Shedding not found
error: true
mode: single