Add notification about open door with locked lock
This commit is contained in:
parent
feb247749b
commit
f32f45ea29
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user