From f32f45ea29e802380f5e54f964bbba958d5319a3 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Tue, 17 Jan 2023 02:19:45 +0100 Subject: [PATCH] Add notification about open door with locked lock --- configuration/automations/front-door.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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'