mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 17:12:59 +00:00
Front door detection at night
This commit is contained in:
@@ -161,6 +161,7 @@ cards:
|
|||||||
icon: mdi:shield-home
|
icon: mdi:shield-home
|
||||||
entities:
|
entities:
|
||||||
- automation.security_door_opened_while_away
|
- automation.security_door_opened_while_away
|
||||||
|
- automation.security_door_opened_while_in_night_mode
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
title: Clock
|
title: Clock
|
||||||
|
|||||||
@@ -26,6 +26,26 @@ script:
|
|||||||
kelvin: 2400
|
kelvin: 2400
|
||||||
|
|
||||||
automation:
|
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
|
- alias: Security · Door opened while away
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
|
|||||||
Reference in New Issue
Block a user