Skip to content

Instantly share code, notes, and snippets.

@heppstux
heppstux / presence_detection_comfort_mode_heater.yaml
Last active December 28, 2025 19:28
heater comfort/minimal mode detection for sensors with permanent presence detection (eg. mm wave sensors)
blueprint:
name: Heater Presence Automation with Comfort Mode
description: >
Automates heater temperature based on presence detection and comfort mode toggle.
Features:
- Activates comfort mode after presence detected for configurable duration
- Returns to minimal temperature after no presence for configurable duration
- Manual comfort mode toggle via input boolean
- Periodic reset to minimal temperature at configurable intervals
- Separate temperature settings for comfort and minimal modes
@heppstux
heppstux / comfort and minimal temperature with presence detection.yaml
Last active December 20, 2025 16:00
comfort and minimal temperature with presence detection
blueprint:
name: Presence-Based Thermostat Temperature Control (Multi-Trigger)
description: >
Automatically adjusts thermostat target temperatures based on presence detection.
To avoid false triggers from passing through, this blueprint requires multiple
occupancy detections within a time window before considering the room occupied.
When presence is confirmed (threshold reached), sets thermostats to comfort temperature.
Once in comfort mode, any single trigger resets the no-presence timeout.
@heppstux
heppstux / template thermostates sensors.yaml
Created December 19, 2025 13:14
Homeassistant blue print to turn off thermostats automatically when sensors show open windows or doors
blueprint:
name: Thermostat Control on Window/Door Open
description: >
Automatically turns off selected thermostats when any monitored door/window sensor opens.
Restores previous thermostat states when all sensors close.
Prevents thermostats from being turned on while any sensor is open.
domain: automation
input:
door_window_sensors:
name: Door/Window Sensors
@heppstux
heppstux / sync_thermostates.yaml
Last active December 19, 2025 12:57
Homeassistant Template so Synchronize the state of a bunch of thermostates
blueprint:
name: Sync Thermostats
description: >
Synchronizes target temperature and HVAC mode across multiple thermostats.
When any thermostat in the group changes, all others will be updated to match.
domain: automation
input:
thermostats:
name: Thermostats to Sync
description: Select all thermostats that should stay synchronized
@heppstux
heppstux / Motion-Activated Light with Illuminance Threshold.yaml
Last active December 17, 2025 22:23
Motion-Activated Light with Illuminance Threshold
blueprint:
name: Motion-Activated Light with Illuminance Threshold
description: >
Turn on a specific light when motion is detected and illuminance is below a threshold.
Only activates if no lights in the room are already on.
Turns off all lights after no motion is detected for a configurable time,
regardless of how the lights were turned on.
domain: automation
input:
motion_sensor: