I have many scenes and automations, I’ve had HA for several months, but I have no idea, I can’t cope with building automation, where:
- There are 10pcs window/door binary sensors
- I want the opening or closing of any of them, i.e. any change in the status of a single item, to send me a notification to my phone.
Maybe it’s something simple, I have many difficult projects, but somehow I can’t do it. Help!!!
reotto
(Rick Otto)
2
Here is how I did mine.
I setup a group helper with all my binary sensors that are there for my alarm.
Then I created this automation that shuts off my HVAC when any are open for more than 5 minutes.
Not exactly what you are doing, but I thought it would provide some guidance.
alias: Heating/Cooling-Change Temps If a Window is Open
description: ""
trigger:
- platform: state
entity_id: binary_sensor.windows_doors_alarm
from: "off"
for:
hours: 0
minutes: 5
seconds: 0
to: "on"
condition: []
action:
- service: climate.set_preset_mode
data:
preset_mode: away
target:
entity_id: climate.home
mode: restart
A few tweaks and you should be able to steal much of that.
Setting up the group helper and not forgetting any sensors is the biggest pain.