Skip to content
Projects

jmcollin78/versatile_thermostat

View on GitHub

About

A full featured Thermostat for Home Assistant: presets, window, motion, presence and overpowering management

Other Projects

How these counts are measured

Measured star growth

in 24h
+2
in 7 days
+14
in 15 days
+32
in 1 month
+61

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

GitHub Release GitHub Activity License hacs BuyMeCoffee

Versatile Thermostat

This README file is available in languages : English | Français | Deutsch | Čeština | Polski


Tip Versatile Thermostat is a highly configurable virtual thermostat that transforms any heating equipment (radiators, air conditioners, heat pumps, etc.) into an intelligent and adaptive system. It allows you to consolidate and centrally control multiple different heating systems, while automatically optimizing your energy consumption. Thanks to its advanced algorithms (TPI, auto-TPI) and learning capabilities, the thermostat adapts to your home 🏠 and your habits, providing you with optimal comfort and significant reduction in your heating bills 💰. This thermostat integration aims to greatly simplify your heating management automations. Since all typical heating events (nobody home?, activity detected in a room?, window open?, power load shedding?) are natively managed by the thermostat, you don't need to deal with complicated scripts and automations to manage your thermostats. 😉

This custom component for Home Assistant is an upgrade and a complete rewrite of the "Awesome thermostat" component (see Github) with added features.

Screenshots

Versatile Thermostat UI Card (Available on Github) :

Card1 Card2

What's New?

New

Release 11.0

  • Auto TPI rewritten (see Auto TPI):
    • Kint is learned over temperature-rise windows sized from the rise speed, towards a target speed set by the emitter's heating time. Noisy sensors or 0.1 °C steps no longer drive Kint downwards.
    • Kext is learned once the room is stable near the setpoint, as a weighted average. The continuous Kext keeps a fixed smoothing and is used immediately by the regulation.
    • The configuration keeps only the heating time and the continuous Kext. Heating capacity, bootstrap, learning type, advanced parameters, aggressiveness and cooling time are removed.
    • Coefficients learned before may be wrong: a repair asks you to start a new learning session. The auto_tpi_calibrate_capacity action is removed.
  • TPI thresholds: the high and low thresholds act as a hysteresis on temperature only and no longer depend on the temperature slope.
  • Features replaced by plugins: four core features are replaced by plugins. The configuration forms say so and point to the plugins catalog; the existing configuration keeps working:
  • Replaced features removed in early 2027: these core features will disappear in early 2027. It matters to prepare for it by switching to the plugins now.
  • VTherm Dashboard arrives: VTherm Dashboard adds a Versatile Thermostat page to the Home Assistant sidebar. It brings the whole-home overview, a detailed view of every thermostat and all their configuration in one place, with a preview of the effect of the settings before saving. It also centralises the configuration of every ecosystem plugin. Its goal is to eventually replace the current configuration flow (ConfigFlow).

Release 10.6

  • Enriched LLM/MCP diagnostic tools (see LLM/MCP integration): the readings exposed to the assistant include the central configuration and, for each VTherm, its inheritance groups; diagnostics distinguish central settings, effective values, central mode and boiler. Additional tools cover the diagnosis of a thermostat and the Recorder history in read-only mode.

The release history is available here

🍻 Thanks for the beers 🍻

"Buy Me A Coffee"

A big thank you to all my beer sponsors for their donations and encouragements. It means a lot to me and motivates me to keep going! If this integration has saved you money, buy me a beer in return; I would greatly appreciate it!

Native LLM/MCP integration

VTherm integrates with Home Assistant's native LLM platform and exposes its tools through the official Home Assistant MCP Server. Assistants can list VTherms exposed to Assist, read their state and obtain structured diagnostics based on VTherm's own messages and reasons.

MCP reads include central-configuration presence and each VTherm's inheritance; diagnostics distinguish central settings, effective values, central mode and boiler participation, subject to read permissions.

For explicit control requests, three tools can change the target temperature, preset or HVAC mode through standard climate.* services, with user permission and value checks. Diagnostic requests remain read-only; the MCP Server's Read only option hides action tools.

Classic TPI coefficients can also be analyzed from 7–14 usable days of Recorder history, with explicit application and additional confirmation for large changes. Analysis supports over_switch, over_valve and experimental over_climate_valve using recorded valve commands as a proxy, not measured heat. For all supported types, estimates are experimental and must be verified before application; they are not validated optimal settings.

Native adaptive TPI can be analyzed exploratorily with explicit assumption warnings, coherence checks and large percentage-change alerts; writes still require classic TPI.

See the LLM/MCP documentation for setup, safeguards and examples.

For help diagnosing or explaining a situation, or searching the documentation, try the VTherm Assistant.

Read-only Recorder history for CSV exports and charts created by the LLM client.

Glossary

VTherm: Versatile Thermostat as referred to in this document

TRV: Thermostatic Radiator Valve equipped with a valve. The valve opens or closes to allow hot water to pass.

AC: Air Conditioning. An AC device cools instead of heats. Temperatures are reversed: Eco is warmer than Comfort, which is warmer than Boost. The algorithms take this information into account.

EMA: Exponential Moving Average. Used to smooth sensor temperature measurements. It represents a moving average of the room's temperature and is used to calculate the slope of the temperature curve, which would be too unstable on the raw data.

slope: The slope of the temperature curve, measured in ° (C or K)/h. It is positive when the temperature increases and negative when it decreases. This slope is calculated based on the EMA.

PAC: Heat pump

HA: Home Assistant

underlying: the device controlled by VTherm

Documentation

The documentation is now divided into several pages for easier reading and searching:

  1. Introduction
  2. Installation
  3. Quick start
  4. Choosing a VTherm type
  5. Basic attributes
  6. Configuring a VTherm on a switch
  7. Configuring a VTherm on a climate
  8. Configuring a VTherm on a valve
  9. Presets
  10. Window management
  11. Presence management
  12. Motion management
  13. Power management
  14. Auto start and stop
  15. Centralized control of all VTherms
  16. Central heating control
  17. Advanced aspects, security mode
  18. Heating Failure Detection
  19. Self-regulation
  20. Auto TPI learning
  21. Algorithms
  22. Lock / Unlock
  23. Temperature synchronisation
  24. Timed preset
  25. Reference documentation
  26. Tuning examples
  27. Troubleshooting
  28. Release notes

Some results

Temperature stability around the target configured by preset:

image

On/off cycles calculated by the integration over_climate:

image

Regulation with an over_switch:

image

Strong regulation in over_climate:

image

Regulation with direct valve control in over_climate:

image

Some comments about the integration

testimonial 1 testimonial 2 testimonial 3
testimonial 4 testimonial 5 testimonial 6

⭐ Star history

Enjoy!

Contributions are welcome!

If you wish to contribute, please read the contribution guidelines.


Explore related projects

Loading…