home-assistant-configuration/scripts/garage_abort_lockdown.yaml

17 lines
456 B
YAML

garage_abort_lockdown:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "SECURITY: Aborting Lockdown - Garage Could Not Close"
- condition: state
entity_id: input_boolean.secure_mode
state: "on"
- service: tts.google_say
data:
entity_id: media_player.hass_speaker
message: Garage was unable to close.
- service: input_boolean.turn_off
data:
entity_id: input_boolean.secure_mode