๐ŸŒก๏ธ Heating Schedule with Window or Door Check

:thermometer: Heating Schedule with Window or Door Check

:house: Smart heating control based on schedule and open sensors

This blueprint automatically controls your heating based on a customizable time schedule, but only if all selected windows or doors are closed.
If a window or door is open, the heating will remain off and a mobile notification will be sent to alert you.


:hammer_and_wrench: Features

  • :white_check_mark: Works with both window and door sensors (binary_sensor.device_class: window or door)
  • :stopwatch: Supports a time-based heating schedule
  • :iphone: Sends a push notification if any window or door is open when heating is scheduled
  • :hotsprings: Works with any climate device (e.g., thermostats, radiator valves)

:link: Works Great Withโ€ฆ

:jigsaw: Turn Off Heating When Door or Window Is Open

This blueprint pairs perfectly with:

:point_right: Turn Off Heating When Door or Window Is Open

Use both together to:

  • :arrows_counterclockwise: Automatically turn off heating immediately when a window or door is opened
  • :date: Then resume scheduled heating when everything is closed again
  • :zap: Maximize energy savings while maintaining comfort

:brain: Tip: Use a group for multiple sensors and combine both blueprints for smart, automated climate control!


:jigsaw: Blueprint Inputs

Input Description
:hotsprings: Climate Device The climate entity to control (e.g. thermostat)
:window::door: Window or Door Sensor A binary_sensor with device class window or door
:iphone: Notification Device A mobile app device to send notifications to
:date: Time & Temp Schedule A list of times and target temperatures throughout the day

Example schedule format:

- time: "05:00:00"
  temperature: 21
- time: "22:00:00"
  temperature: 18

:gear: How it works

At each configured time:

  1. The blueprint checks whether the current time matches a scheduled entry.
  2. If so, it checks whether the window/door sensor reports โ€œclosedโ€ (off).
  3. If closed, it sets the target temperature and turns on heating.
  4. If open, it does not activate heating and instead sends a notification.

:calling: Notification Example

If the heating is skipped because a door or window is open:

Title: Heating schedule interrupted!
Message: A door or window is open. Heating remains off until it is closed.

:speech_balloon: Use Case Examples

  • Stop the heater from running while a window is open for fresh air.
  • Prevent heating an empty room with a forgotten door open.
  • Schedule different temperatures for morning, work hours, and night.

:inbox_tray: Import This Blueprint

To use this blueprint, import it in Home Assistant using the following link:

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

:handshake: Feedback & Contributions

Suggestions and improvements are welcome!

This blueprint can be extended to:

  • Retry heating automatically once all windows/doors are closed
  • Include multiple sensors via groups or automation triggers
  • Send reminder notifications if sensors stay open for too long