home-assistant-configuration/scripts/security_check_zones.yaml

18 lines
429 B
YAML

security_check_zones:
sequence:
- event: LOGBOOK_ENTRY
event_data:
name: EVENT
message: "SECURITY: Performing Security check - Zones"
- condition: state
entity_id: group.doors
state: "Open"
- delay:
seconds: 20
- service: input_boolean.turn_off
data:
entity_id: input_boolean.secure_mode
- service: input_boolean.turn_on
data:
entity_id: input_boolean.security_issue