1
0

Add notification about open door with locked lock

This commit is contained in:
Przemek Grondek 2023-01-17 02:19:45 +01:00
parent feb247749b
commit f32f45ea29

View File

@ -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'