Smart Climate with Occupancy Control (Self-Contained Schedule + Proximity + Power Fail-Safe)
Inspired by
Advanced Heating Control V5, I needed something that would turn on/off a switch connected to a dumb heater, A/C or fan with presence detection, so if I leave the room for x minutes, it will turn off!
My wife kept complaining that I would leave the heater on in her office, and it draws an enormous amount of power! I needed to scratch my own itch!
This blueprint is completely self-contained and designed to intelligently manage any "dumb" climate appliance plugged into a smart switch. It bridges the gap between basic motion-activated switches and advanced HVAC systems by packing scheduling, geo-fencing, multi-user rules, and bulletproof appliance safety loops into a single automation.
Key Features
100% Self-Contained Scheduling: Set your allowed runtime hours and active days of the week directly inside the blueprint. No external Schedule Helpers required!
Smart Room Occupancy: Automatically turns on the appliance when room presence is detectedβbut only if the right people are actually home.
Multi-User Match Rules: Flexibly tie the room to specific people. Choose whether the automation activates if Any assigned user is home or only when All assigned users are present.
Power consumption Fail-Safe Loop (Optional): If your smart plug monitors power, this loop protects your home. If the plug turns on but draws 0W (e.g., the heater is physically switched off or unplugged), it shuts down immediately to save components. It also kills the circuit if the appliance stops drawing power mid-run.
Vacancy Auto-Off & Manual Override: Forgot to turn something off? The customisable safety timeout turns it off for you. Want it to stay on continuously? Flip a simple dashboard toggle to override the countdown.
Targeted Mobile Notifications: Sends clean, grouped push alerts directly to your specific phone via the Home Assistant Companion App.
How the Logic Prioritizes Your Comfort
The blueprint evaluates your room using a strict smart hierarchy to maximize energy efficiency:
- Is the native schedule active? If no, stay off.
- Are the assigned users home or nearby? If no, stay off.
- Is someone in the room OR approaching the house via proximity? If yes, turn on and run the power check!
- Has the room been empty too long? Kick in the auto-off sequence (unless the manual override toggle is clicked on).
Configuration Requirements
To get the most out of this blueprint, you will need:
- A Switch entity controlling your climate appliance.
- A Binary Sensor tracking room occupancy/motion.
- One or more Person entities assigned to the room.
- (Optional) A Sensor entity measuring the smart plug's real-time power consumption.
- (Optional) A Proximity device tracking your home zone.
How to Import
Click the button below to add this blueprint directly to your local Home Assistant instance:
95% Vibe coded using Google Gemini (you can do this also) read the code; learn and have a go yourself.