Skip to content

Instantly share code, notes, and snippets.

@AbleMonster
Last active November 23, 2025 17:38
Show Gist options
  • Select an option

  • Save AbleMonster/2eb1933ab60ef83b2bdd424619163321 to your computer and use it in GitHub Desktop.

Select an option

Save AbleMonster/2eb1933ab60ef83b2bdd424619163321 to your computer and use it in GitHub Desktop.
Turn Off Heating When Door or Window Is Open
blueprint:
name: Turn Off Heating When Door or Window Is Open
description: Turns off the heating if a door or window remains open for a defined duration.
domain: automation
input:
open_sensors:
name: Door or Window Sensors
description: Select the door and/or window sensors to monitor
selector:
entity:
domain: binary_sensor
device_class:
- door
- window
multiple: true
climate_device:
name: Climate Device
selector:
target:
entity:
domain: climate
open_duration:
name: Open Duration
description: How long a door or window must stay open before turning off the heating
default: "00:10:00"
selector:
duration:
trigger:
- platform: state
entity_id: !input open_sensors
from: "off"
to: "on"
for: !input open_duration
condition: []
action:
- service: climate.set_hvac_mode
target: !input climate_device
data:
hvac_mode: "off"
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment