Hey everyone, I’ve been working on a cool automation to help keep my energy usage in check. I’ve set up a system where if the front door or windows are left open, and the weather is just right—between 62°F and 78°F—the HVAC turns off to save energy. It’s pretty handy, but I’m looking for ways to tweak it further. I’ve also added alerts to remind us to close the doors if it’s too hot or cold outside. Here’s how I’ve got it set up so far:
yaml
Front Door Open Automation
alias: Front door open
trigger:
platform: time_pattern
event: seconds: /15
condition:
condition: state
entity_id: binary_sensor.front_door
state: ‘on’
action:
- service: tts.google_translate_say
data:
message: The front door is open. Please close the front door.
HVAC Adjustment Based on Weather
alias: HVAC Weather Check
condition:
condition: and
- condition: state
entity_id: sensor.dark_sky_temperature
above: 62
below: 78 - condition: or
entity_id: binary_sensor.front_door
state: ‘on’
action: - service: climate.set_hvac_mode
data:
hvac_mode: ‘off’
I’d love to hear if anyone has similar setups or tips to make this even more efficient! ![]()