Hey guys, finally got my home assistant running on the Pi3. I currently have a honeywell thermostat and a DSC alarm panel with envisalink 4. After countless arguments with my wife about leaving our patio door open with the air conditioning on ,I decided to take the dive into automation. I was able to write an automation that solves the problem (AND WORKS!), but I think more can be done to it. The main issue is that this automation will need to be changed when heat is operational (vs cool). I tried using the climate.turn_off and climate.turn_on services, but can’t get them to work. Ideally I’d like to be able to turn the system on/off based on the trigger from the patio door. This is what I have so far.
alias: 'Door OPEN thermostat OFF'
trigger:
- platform: state
entity_id: binary_sensor.kitchen_door
from: 'off'
to: 'on'
for:
minutes: 3
action:
- service: climate.set_temperature
entity_id: climate.thermostat
data:
temperature: 80
- alias: 'Door CLOSED thermostat ON'
trigger:
- platform: state
entity_id: binary_sensor.kitchen_door
from: 'on'
to: 'off'
for:
minutes: 2
action:
- service: climate.set_temperature
entity_id: climate.thermostat
data:
temperature: 71