-######################################################################
-# Startup Automation: Restart on Error
-######################################################################
-
-- alias: "Home Assistant - Startup: Restart on Error"
- id: "home_assistant_startup_restart_on_error"
-
- trigger:
- - trigger: homeassistant
- event: start
-
- action:
- - delay: 00:00:60
- - condition: state
- entity_id: persistent_notification.invalid_config
- state: 'notifying'
- - action: script.homeassistant_restart
-
######################################################################
# Startup Automation: Google Sync
######################################################################
- alias: "Home Assistant - Modalità Test: Azione on"
id: "home_assistant_modalita_test_azione_on"
- trigger:
+ triggers:
- trigger: state
entity_id: input_boolean.test_mode
to: 'on'
- action:
-
- - action: automation.turn_off
- entity_id: automation.home_assistant_startup_restart_on_error
-
+ actions:
- action: automation.turn_off
entity_id: automation.home_assistant_startup_google_sync
- alias: "Home Assistant - Modalità Test: Azione off"
id: "home_assistant_modalita_test_azione_off"
- trigger:
+ triggers:
- trigger: state
entity_id: input_boolean.test_mode
to: 'off'
- action:
- - action: automation.turn_on
- entity_id: automation.home_assistant_startup_restart_on_error
-
+ actions:
- action: automation.turn_on
entity_id: automation.home_assistant_startup_google_sync