Front door detection at night

This commit is contained in:
2021-10-13 23:01:26 +03:00
parent 4fc372266c
commit a7b19c4c00
2 changed files with 21 additions and 0 deletions
@@ -161,6 +161,7 @@ cards:
icon: mdi:shield-home
entities:
- automation.security_door_opened_while_away
- automation.security_door_opened_while_in_night_mode
- type: entities
title: Clock
+20
View File
@@ -26,6 +26,26 @@ script:
kelvin: 2400
automation:
- alias: Security · Door opened while in night mode
trigger:
- platform: state
entity_id: binary_sensor.front_door
to: "on"
condition:
condition: state
entity_id: input_select.bedroom_mode
state: "night"
action:
- service: light.turn_on
entity_id: light.all
- service: script.say_discretely
data:
message: "Caution: Front door opened during night mode!"
- service: notify.telegram
data:
title: "🛡 *Security Module · Front Door Detection*"
message: "Caution: Front door opened during night mode!"
- alias: Security · Door opened while away
trigger:
- platform: state