Heating Schedule with Window or Door Check
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.
Features
Works with both window and door sensors (
binary_sensor.device_class: window
ordoor
)Supports a time-based heating schedule
Sends a push notification if any window or door is open when heating is scheduled
Works with any
climate
device (e.g., thermostats, radiator valves)
Works Great Withโฆ
Turn Off Heating When Door or Window Is Open
This blueprint pairs perfectly with:
Turn Off Heating When Door or Window Is Open
Use both together to:
Automatically turn off heating immediately when a window or door is opened
Then resume scheduled heating when everything is closed again
Maximize energy savings while maintaining comfort
Tip: Use a
group
for multiple sensors and combine both blueprints for smart, automated climate control!
Blueprint Inputs
Input | Description |
---|---|
![]() |
The climate entity to control (e.g. thermostat) |
![]() ![]() |
A binary_sensor with device class window or door |
![]() |
A mobile app device to send notifications to |
![]() |
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
How it works
At each configured time:
- The blueprint checks whether the current time matches a scheduled entry.
- If so, it checks whether the window/door sensor reports โclosedโ (
off
). - If closed, it sets the target temperature and turns on heating.
- If open, it does not activate heating and instead sends a notification.
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.
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.
Import This Blueprint
To use this blueprint, import it in Home Assistant using the following link:
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