Tired of basic "if-then" thermostat rules that fight your physical hardware, get stuck in logic loops, or fail to protect your expensive HVAC equipment?
I originally set out to solve the classic "cool hallway, hot bedroom" problem, but the project quickly evolved. I am excited to share the Advanced Climate Controller—not just another scheduling app, but a full-fledged, commercial-grade Building Management System (BMS) logic engine built natively for Hubitat.
It handles everything from multi-zone averaging and predictive pre-cooling to live refrigerant Delta-T diagnostics and strict hardware deadband enforcement.
Core Philosophy: Bulletproof Logic
Most residential automation apps are purely reactive. This app is designed to be proactive and self-healing. It features a "Universal Deadband Enforcer" and "Buffer Shields" that constantly run math in the background to ensure the app never sends conflicting setpoints to your physical thermostat, gracefully handles manual human overrides, and actively prevents compressor short-cycling.
Built-In Live HTML Dashboard
You don't need to build a complex SharpTools or Hubitat Dashboard to see what the app is doing. The app generates a live, color-coded HTML dashboard right in the settings menu.
- Live System Metrics: View the true calculated house average vs. your physical thermostat sensor.
- Internal Logic State: Instantly see exactly what the BMS engine is doing (e.g., Buffering, Free Cooling Pending, Peak Shaving Active, System Idle).
- Calculated Deadband: Monitors the gap between your heating and cooling setpoints in real-time to ensure hardware stability.
- Recent Action History: A transparent, rolling log of the last 30 commands the BMS sent to your thermostat.
Comfort & Multi-Zone Logic
- Dynamic Occupancy Weighting: Averages the temperature across up to 12 zones using temp/motion sensors. If a room has no motion for a set timeout, it is mathematically dropped from the home's average to stop wasting energy on empty rooms.
- Dynamic Setpoint Alignment: Solves the "cool hallway" problem safely. Uses a proportional offset to temporarily shift the physical thermostat's setpoint to force it to keep running until the true house average reaches your target.
- App-Driven Auto Changeover: Takes changeover control away from the wall stat. It automatically swaps between Heat and Cool modes based on your home's Calculated Average, preventing rapid bouncing with a customizable deadband.
- Multi-Stage Dehumidification: Stage 1 triggers standalone smart-plug dehumidifiers. Stage 2 slightly overcools the house with the main AC to force the compressor to wring excess moisture out of the air.
Economy, ROI & Predictive Climate
- The Economizer (Free Cooling): Suspends the AC and sends a push notification to open your windows if outdoor weather is favorable. Failsafe: If windows are not opened within the timeout period, it aborts Free Cooling and resumes normal AC.
- Predictive Pre-Conditioning (Thermal Battery): Checks tomorrow's forecast. If a heatwave is predicted, it sub-cools your house during the early morning (when electricity is cheap) to coast through the hot afternoon.
- Time-of-Use (Peak Shaving): Automatically drifts your target temperatures up or down during expensive utility Time-of-Use (TOU) hours to reduce peak demand charges.
- Adaptive Recovery (Smart Start): Input the time you get home from work, and the app calculates exactly when to start the HVAC based on how fast your specific unit heats or cools (Glide Rate).
- 7-Day Energy Cost & Savings Tracker: Tracks exact compressor and Aux heat runtimes to estimate your utility costs. It also calculates the runtime you avoided while using Free Cooling to prove your ROI.
Commercial-Grade Hardware Protection
- Live Delta-T Efficiency Monitoring: Monitors system health by measuring the temperature drop across your return and supply vents. Triggers a warning or an Emergency Shutoff if efficiency drops (indicating a frozen coil or refrigerant leak).
- Oversized Unit / Short-Cycle Protection: Protects oversized compressors from damaging short-cycles by tracking live temp-drop rates and artificially shifting the setpoint to force a minimum, safe runtime.
- Universal Deadband Enforcer: A master logic gate that intercepts every command before it reaches your thermostat to ensure modifications (like Dehumidification or Buffering) never push Heat and Cool targets too close together, preventing hardware lockouts.
- Open Window / Door Defeat: Automatically intercepts and shuts off the HVAC if a monitored perimeter contact sensor is left open past a threshold. Restores operation once closed.
- Smart Filter Tracking: Calculates filter life not just by calendar days, but by multiplying actual blower fan run-hours against Indoor/Outdoor Air Quality (AQI) dust metrics.
- Routine Setpoint Enforcement: Acts as a self-healing loop to re-transmit targets periodically in case a Z-Wave/Zigbee mesh command was dropped.
Open Source & Free to Use
This project is completely free, open-source code. I know every smart home is unique, so please feel free to use it, tear it apart, edit the math, or adapt any part of the logic to perfectly fit your own setup. If you find a way to improve it, let me know!
Legal Disclaimer: ShaneAllen is not responsible for any damage or liability associated with the use of this application. This application directly controls high-voltage HVAC equipment. This is a user-created custom application; please use it at your own discretion and test thoroughly with your specific hardware.


