diff --git a/configuration/automations/front-door.yaml b/configuration/automations/front-door.yaml index 61b58d2..ee52220 100644 --- a/configuration/automations/front-door.yaml +++ b/configuration/automations/front-door.yaml @@ -1,6 +1,5 @@ - id: front-door-open-notify alias: '[INFO] Front door left open' - description: '' mode: single trigger: - platform: state @@ -56,3 +55,19 @@ domain: binary_sensor action: - service: script.hallway_lights_on + +- id: front-door-invalid-state + alias: '[Front Door] Notify about wrong state' + mode: single + trigger: + - platform: state + entity_id: binary_sensor.front_door_open_close + to: 'on' + condition: + - condition: state + entity_id: lock.front_door_lock_doorlock + state: locked + action: + - service: notify.mobile_app_iphone + data: + message: Front door opens but lock is still in status 'locked'