You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -272,6 +272,35 @@ Once downloaded AppDaemon should see the app and attempt to load it using the de
272
272
16:53:23 WARNING: read_only = True Source: system default. Not in YAML.
273
273
```
274
274
275
+
<h3>13. Add an Automation to Restart AppDAemon when HA Restarts (Optional)</h3>
276
+
277
+
Restarts between Home Assistant and Add-Ons are not synchronised so it is helpful to set up an Automation to restart AppDAemon if HA is restarted. An example is shown below and included in this repo as `ha_restart_automation.yaml`. The `wait_template` section ensures that key integrations (in this case Solcast and Solax) have numeric values before AppDaemon is started.
278
+
279
+
alias: Restart AppDaemon on HA Restart
280
+
description: ""
281
+
trigger:
282
+
- event: start
283
+
platform: homeassistant
284
+
condition: []
285
+
action:
286
+
- service: hassio.addon_stop
287
+
data:
288
+
addon: a0d7b954_appdaemon
289
+
- delay:
290
+
hours: 0
291
+
minutes: 1
292
+
seconds: 0
293
+
milliseconds: 0
294
+
- wait_template: >
295
+
{{(states('sensor.solcast_pv_forecast_forecast_today')| float(-1)>0) and
0 commit comments