diff --git a/config/lovelace/advanced_dashboard/08_automations.yaml b/config/lovelace/advanced_dashboard/08_automations.yaml index 7e384d7..336f842 100644 --- a/config/lovelace/advanced_dashboard/08_automations.yaml +++ b/config/lovelace/advanced_dashboard/08_automations.yaml @@ -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 diff --git a/config/packages/modules/security.yaml b/config/packages/modules/security.yaml index b40823a..eca600e 100644 --- a/config/packages/modules/security.yaml +++ b/config/packages/modules/security.yaml @@ -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