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
|
||||
entities:
|
||||
- automation.security_door_opened_while_away
|
||||
- automation.security_door_opened_while_in_night_mode
|
||||
|
||||
- type: entities
|
||||
title: Clock
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user