Window/Door Controlled Heater Solution

Hey everyone! I just wanted to share a really cool solution I came across for controlling heaters using window or door sensors. It’s such a neat way to automate heating and save energy. Here’s how it works:

  1. Blueprint Overview: The idea is to turn your heater on or off based on whether a window or door is open or closed. This can prevent heat loss and save energy!

  2. Setup: The blueprint uses a YAML file to define the automation. You can customize it to work with your specific heater and sensors. Here’s a snippet of the code:

yaml
blueprint:
name: window controlled heater
description: turn on/off heater when opening/closing window
domain: automation
input:
heating_target:
name: Heater
selector: entity

  1. Benefits: This setup is perfect for rooms where you might forget to turn off the heater when opening a window. It’s also great for drafty areas or rooms with large windows.

  2. Customization: You can group multiple window or door sensors together, so the heater responds to any of them. This makes it super flexible for different setups.

If anyone has tried this or has tips for improving it, I’d love to hear! It’s been a game-changer for my home heating setup. :blush: