2023-06-12 21:56:22 +00:00
|
|
|
- id: front_door_open_notify
|
2022-04-15 22:58:15 +00:00
|
|
|
alias: '[INFO] Front door left open'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
2022-10-20 17:11:59 +00:00
|
|
|
entity_id: lock.front_door_lock_doorlock
|
2022-04-15 22:58:15 +00:00
|
|
|
to: unlocked
|
|
|
|
for:
|
|
|
|
hours: 0
|
|
|
|
minutes: 30
|
|
|
|
seconds: 0
|
|
|
|
action:
|
2022-10-19 20:25:52 +00:00
|
|
|
- service: notify.mobile_app_iphone
|
2022-04-15 22:58:15 +00:00
|
|
|
data:
|
|
|
|
message: Front Door left unlock for 30 minutes, would you like to close it?
|
|
|
|
data:
|
|
|
|
actions:
|
|
|
|
- action: LOCK_DOOR
|
|
|
|
title: Lock door
|
2022-08-10 19:49:38 +00:00
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: front_door_open_close
|
2022-08-18 23:02:16 +00:00
|
|
|
alias: '[Front Door] Open door'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- type: opened
|
|
|
|
platform: device
|
|
|
|
device_id: 671a24524db60c56b0a182ac816faf20
|
|
|
|
entity_id: binary_sensor.front_door_open_close
|
|
|
|
domain: binary_sensor
|
|
|
|
action:
|
|
|
|
- service: script.hallway_lights_on
|
2023-01-17 01:19:45 +00:00
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: front_door_invalid_state
|
2023-01-17 01:19:45 +00:00
|
|
|
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'
|