Skip to content

Ecronika/ha-preheat

Repository files navigation

Intelligent Preheating for Home Assistant (v2.11.3)

Turn your heating into a Predictive Smart System.

This integration acts as a Stand-Alone Pilot for your heating. It learns the thermal physics of your room to calculate heating signals for any thermostat (actual control is done via a Blueprint or automation), without needing complex dependencies.

  • Goal: Reach your target temperature exactly when you arrive/wake up.
  • Goal: Stop heating before you leave ("Optimal Stop").

📚 Documentation

Detailed documentation is available in the docs/ folder:


🚀 Quick Start (Plug & Play)

Important: This integration calculates the optimal time. You need an automation or Blueprint to actually control your thermostat!

1. The Easy Way (Blueprint)

Use the official Smart Setpoint Controller Blueprint. It connects this integration with your thermostats (TRVs) in seconds:

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint URL.


✨ Features

🧠 Intelligence & Learning

  • Self-Learning Physics: Automatically calculates Thermal Mass, Thermal Loss, and Deadtime. Supports Euler Simulation for complex scenarios.
  • The Observer: Learns your habits to predict when you leave (Shadow Mode), providing "Next Departure" insights.
  • Calendar Intelligence: Auto-detects holidays and shifts via Calendar integration to skip preheating intelligently.
  • 🚀 Retroactive Bootstrap: On first install, the system automatically scans your Home Assistant history to learn your habits instantly. No more "cold start" week!

🏠 House Arrival Hub (New in v2.11)

  • Global Homecoming Prediction: A dedicated, automatically created "Preheat System" configuration entry manages a shared House Arrival Hub (device "Preheat House"). It aggregates occupancy data across all zones (or an optional global presence entity) to learn the typical homecoming patterns for the entire house once, robustly. Individual zone config entries reference this shared hub, and the System entry is created automatically (no manual step).
  • Global Entities:
    • sensor.<...>_next_arrival — Predicted next house arrival time (Timestamp).
    • sensor.<...>_arrival_confidence — Statistical confidence of the arrival pattern (%).
    • sensor.<...>_arrival_window — Expected arrival time window (e.g. 17:30-19:00).
    • binary_sensor.<...>_incomingThe "someone is coming home" preheat signal (ON within maximum preheat lead time before expected arrival).

🛡️ Safety & Responsiveness

  • Frost Protection: Heating is automatically forced ON if the temperature drops below 5°C, even if the system is disabled.
  • ⚡ Reactive Setpoints: The system re-calculates immediately when you change the target temperature (0 latency).
  • Physics Safety Net: The thermal model uses a physics-based model with stability protection (clamping, 20% jump limitation).

📉 Energy Saving

  • Optimal Stop (Coast-to-Vacancy): Turns off the heating early if the room stays warm enough until the schedule ends (opt-in).
  • Schedule-Free Operation: Works with Learned Patterns alone, without requiring a Schedule Helper, once arrival patterns are mature.
  • Adaptive Polling: Sleeps (5 min updates) when idle, sprints (1 min) when active—80% less system load.

🔌 Compatibility & Control

  • Stand-Alone: Works with any thermostat entity. No external "Scheduler Component" required.
  • Weather Forecast Integration: Looks ahead at the weather forecast to adjust heating power for incoming cold fronts.
  • Outdoor Sensor Precedence: Supports dedicated outdoor temperature sensors that take precedence over regional weather entities for local microclimate accuracy.
  • 🪟 Window Detection: Pauses operation if a rapid temperature drop is detected.
  • 🔥 Heat Demand Sensor: binary_sensor.<zone>_heat_demand signals when a zone needs active heat supply.

🔍 Transparency & Diagnostics

  • 15+ Repair Issues: Built-in health checks alert you to stale sensors, misconfigurations, or learning problems.
  • Decision Trace: Provides detailed Diagnostics, Confidence scores, and "Reason" attributes so you know why it acted.
  • UI Integration: Status sensor exposes climate_entity, operative_sensor, and integration_version as attributes for UI Auto-Discovery by the Smart Setpoint Card.
  • 🌎 Localized: Available in English and German.

🚀 Quick Start

  1. Install via HACS (Custom Repository).
  2. Add Integration in Home Assistant settings.
  3. Config: Select your Heating Profile, Climate Entity (Thermostat), and Occupancy Sensor.
  4. Done: The system auto-scans your history and starts learning immediately!

⚠️ Status / Known Limitations

This version is a stable release with the following feature maturity:

  • Preheating Start: Fully active, supports both Schedule Helper entities and Schedule-Free Autonomous Start (gated by arrival pattern maturity).
  • Optimal Stop / Coast-to-Vacancy: Available (opt-in via enable_optimal_stop option).
  • Schedule-Free Operation: Available (House Arrival Hub, opt-in).
  • Shadow Savings Metrics: Fully active and accumulated over time.
  • Autonomous Engine Cockpit Card: The original forum card is incompatible. An updated card is available as a diagnostic-only tool at docs/diagnostics/preheat_diagnostics_card.yaml (see docs/troubleshooting.md for details).

License: MIT

About

Intelligent preheating automation for Home Assistant

Topics

Resources

License

Stars

9 stars

Watchers

1 watching

Forks

Contributors

Languages