I currently have my Honeywell home security system connected via Envisalink 3 and my Ecobee Thermostat. What I want is when a first floor window or deck door is open for more than 5 minutes and the heat/cooling is on, I want it to turn the Ecobee to Off and announce via Alexa what it did and why.
The automation above works fine with ANY listed sensor until I add the for: and minutes/seconds (currently set to 15 seconds for testing). Once I add the time to the trigger, the only item I have found so far that will actually trigger it is the living room left window. The others don’t set it off.
Can anybody see something wrong? Other than going to a trigger for each binary sensor I’m not sure what else to do.
Thanks, I will give it a shot. That popped in my head last night after I posted it but I liked being able to announce why the Ecobee was turned off and it seems there’s no way to get what caused the group to flip to use in an announcement. However having it work is better than it not working
Thanks for the ideas. I haven’t seen the status ever not Off or On. I have added them all to a group for testing purposes and simplified the conditions. I will see how this works.
- id: '1549214578776'
alias: Turn off HVAC
trigger:
- platform: state
entity_id: group.hvac
from: 'off'
to: 'on'
for:
seconds: 15
condition:
conditions:
- condition: state
entity_id: 'climate.home'
state: 'heat'
action:
- data_template:
entity_id: media_player.Living_Room
message: 'Turning off thermostat because first floor is open'
service: media_player.alexa_tts
- service: climate.set_operation_mode
data:
entity_id: climate.home
operation_mode: 'off'
First test is promising. Set it to 5 minutes and will see what happens. The next thing I would like to figure out is storing the state so that when the first floor is closed up it returns to cool or heat, whatever it was before it was disabled. I’m not sure if doing it through YAML is the way to go or if NODERED or something would be better