Automate Homematic Heating in Home Assistant: Better Thermostat & Weekly Schedule
In the first part we set up Homematic IP and integrated it into Home Assistant. Once you build a dashboard with heating cards for the thermostats, you quickly run into a problem that has been popping up in forums and GitHub issues for years: the card shows “Auto”, but the thermostat is clearly heating on a different schedule – or the other way round, switching to “Manual” does get applied, but the card briefly jumps back or throws an error like “preset is invalid”. This article shows you how to control your Homematic radiator thermostats reliably in Home Assistant: why the display is wrong, how the HACS integration Better Thermostat fixes that structurally, and how you rebuild a real weekly schedule with the Advanced Heating Control blueprint. Here’s our current dashboard, connected to Homematic, on our Shelly Wall Display.
For radiator thermostats, the Homematic integration only offers three HVAC modes in Home Assistant (Auto, Manual, Off), plus a list of presets (e.g. Boost, weekly program 1–3). Homematic devices internally know four operating modes (AUTO-MODE, MANU-MODE, BOOST-MODE, PARTY-MODE) and up to six weekly profiles. Because the list of valid presets changes depending on the mode, this collides with a well-known Home Assistant frontend rendering bug – the tile briefly shows a wrong or invalid state.
All the live tests and diagnostics in this article come from our own system, which runs a CCU3* with the Homematic(IP) Local integration – not the Homematic IP cloud connection from part 1. Better Thermostat itself works independently of whichever integration you use, since it only calls standard climate services. The CCU-specific findings in the section “Only two modes: heat and off – what happened to Auto or Manual?” were, however, verified exclusively on our own CCU3 – the Homematic IP cloud integration is technically a completely different codebase in Home Assistant and may behave differently. Better Thermostat option and mode names refer to version 2.0.0, which requires Home Assistant 2026.11.0 or later. We rebuilt the weekly-schedule part with Advanced Heating Control 5.5.10 on Home Assistant 2026.11.2.
Two systems, two state models
Home Assistant deliberately uses a lean climate model: a heater has an hvac_mode (for us auto, heat, off) plus a preset_mode for everything that isn’t a mode of its own. For Homematic thermostats these are different lists depending on the device generation. For the newer Homematic IP thermostats (e.g. HmIP-eTRV), the Home Assistant entity attributes look like this:
| HA attribute | Values on HmIP-eTRV (new) | Values on HM-CC-RT-DN (classic) |
|---|---|---|
hvac_mode |
auto, heat, off | auto, heat, off |
preset_mode in “heat” mode |
boost, none | boost, comfort, eco, none |
preset_mode in “auto” mode |
boost, none, week_program_1, week_program_2, week_program_3 | boost, comfort, eco, none |
Internally, though, the CCU thinks in its own categories: AUTO-MODE (weekly program active), MANU-MODE (fixed target temperature, weekly program paused), BOOST-MODE (briefly opening the valve fully), and PARTY-MODE (holiday/party period with a fixed temperature) – plus the question of which of up to six weekly profiles (P1–P6) is currently active. Home Assistant squeezes all of that into the two narrow fields above, and that’s exactly where the problem starts: depending on which hvac_mode the device is in, the list of valid preset_mode values changes. Two options become five, or the other way round.
The problem in practice
When you switch the mode on the thermostat card – say from “Manual” back to “Auto” – the following happens server-side: the command goes out over radio to the thermostat, the CCU reports the new state back, and Home Assistant updates the mode, the preset, and the list of valid presets at the same time. We reproduced this on one of our own thermostats: right after the switch command, the API briefly returned a state that matched neither the old nor the new mode – mode “auto”, but still the old target temperature and a preset value from the previous list. Only the next status push brought everything back in sync.
On top of that: the Homematic devices themselves don’t even know the Home Assistant mode “Off” as a state of their own – which, especially for anyone coming from Homematic’s own CCU interface, adds to the confusion at first.
Not a Homematic bug – a known frontend behaviour
It’s not your configuration. In GitHub issue #1788 for the Homematic(IP) Local integration, maintainer SukramJ has a user describing exactly this behaviour when switching from Manual to Auto. The maintainer’s answer is unambiguous: “This bug has existed for a very long time and across various integrations. I can’t do anything about it, since it’s a frontend issue.” He refers to an earlier discussion in his repository. The technical cause is described by a contributor in Home Assistant frontend issue #19620: if a dropdown’s option list (preset or fan speed) changes while a selection is active, and the previous index no longer fits into the new list, the card fires an invalid service call.
This isn’t limited to Homematic. Users of all kinds of climate integrations report the same symptom as soon as a device offers a different number of presets depending on the mode. It shows up especially reliably on Homematic thermostats with weekly-program presets (week_program_1 through _3), because the list length changes almost every time the mode does.
The fix: Better Thermostat (HACS)
If you want to keep things simple, stick to one manufacturer and its own built-in tools per domain – heating, in this case. The more manufacturers and components you combine (Homematic hardware, a HACS integration, a community blueprint – as in this article), the more moving parts, update dependencies, and potential failure points you add. The approach described here pays off if you want to reliably get rid of Home Assistant’s display quirks and have a flexible weekly schedule managed centrally in Home Assistant. If you’re fine living with Homematic’s own automation via the CCU, you can skip this extra effort.
We therefore went with the HACS integration Better Thermostat. You install it from Settings → Marketplace, or through HACS on Home Assistant 2026.10 and older – our HACS guide covers both. It takes care of window-sensor logic, TRV calibration, and the preset problem described above in one go, without you having to build your own buttons or scripts – and it works regardless of the manufacturer or radio protocol behind it. We set it up on our own CCU3 system for all twelve thermostats in the house and observed it for several days.
Why Better Thermostat creates a new entity instead of changing the existing one
During setup you’ll notice: Better Thermostat’s wizard asks for “the real thermostat” – i.e. exactly the Homematic entity this whole article has been about (e.g. climate.abstellraum_heizung). It then doesn’t change that entity at all, but creates a completely new, additional climate entity (for us, e.g. climate.heizung_abstellraum) that remotely controls the real entity behind the scenes.
On the same screen, the wizard also asks for a room temperature sensor, and you can’t finish setup without one. The developers recommend a separate sensor away from the radiator, because the thermometer inside the valve sits right next to the hot radiator and reads too high.
That screen also has a “Window sensor” field – add the room’s window contact there. If that contact has a direct link to the thermostat in the CCU, delete that link before you wrap the thermostat. In the CCU web interface, go to “Programs and connections” → “Direct device connections”, find the row with the window contact and the thermostat and click “Delete”. Otherwise, when you air the room, the thermostat turns itself down through the link and Better Thermostat turns it down on top of that. The developers generally advise switching off the thermostat’s own open-window detection and schedules so it doesn’t fight Better Thermostat.

That’s not a workaround, it’s technically the only way this can work: a Home Assistant entity always belongs to exactly one integration – here homematicip_local. A third-party integration can’t take it over or redefine it, it can only call perfectly normal services on it from the outside, like climate.set_temperature or climate.set_hvac_mode. Better Thermostat automatically does what you’d otherwise have to rebuild yourself with scripts and automations – for window, calibration, and off/heat logic all at once.
The advantage of this wrapper architecture comes down to three points:
- Removable without risk: because the original Homematic entity stays untouched, you can delete any Better Thermostat instance at any time without changing anything about the heating itself or the Homematic connection. We were able to build and test the new setup in parallel, without touching our existing heating control at all.
- Independent of the radio protocol: since Better Thermostat only calls standard climate services, it doesn’t matter whether an HmIP-RF device (e.g. HmIP-eTRV*) or a classic BidCos-RF device (HM-CC-RT-DN) is behind it – both cases from this article work with the same configuration.
- Fixes the core problem structurally: dashboards and automations now only talk to the new entity controlled by Better Thermostat – the preset-list problem described at the start (chapter “Two systems, two state models”) now only affects the internal original entity, which is no longer visible on the dashboard.
In practice this means: if you use Better Thermostat, you wire your dashboard cards to the new entity (e.g. climate.heizung_abstellraum), not the original Homematic entity anymore. The matching Better Thermostat UI Card (also from the Marketplace) also shows window status, summer mode, humidity and heating/cooling state right on the card.
Only two modes: heat and off – what happened to Auto or Manual?
If you’re coming from the original Homematic entity (three modes: Auto, Manual, Off), you’ll find that the new Better Thermostat entity only knows heat and off. That’s not a display bug, it’s Better Thermostat’s deliberately simplified model: heat takes over the role of “Manual” – a fixed target temperature that you set directly. The old “Auto” (the CCU’s weekly program) doesn’t show up as an HVAC mode at all anymore – if you want a weekly schedule, you need a separate automation building block for that.
Something else we noticed while testing: switch the Better Thermostat entity to “Off”, and the displayed target temperature does not automatically drop back to 5 °C – it stays at the last heat setpoint (18 °C in one of our tests, for example). That’s intentional: Better Thermostat remembers the last comfort temperature so it’s immediately available again the next time you switch back to “Heat”.
We also checked the real device live: on our system, the underlying Homematic entity didn’t switch to off when “Off” was selected. It stayed in heat mode the whole time, with the target temperature lowered to the minimum (5 °C in our case). Whether Better Thermostat handles “Off” this way or passes the “Off” command on to the device depends on the modes the device reports and on the “Use the minimum temperature instead of ‘off’” option. Going via the minimum temperature has one upside: on HmIP-RF devices, “Off” would otherwise jump back to “Heat” by itself after about 1.3 seconds, because Home Assistant raises the target temperature shortly afterwards to the minimum reported by the integration (min_temp, 5 °C) – and 5 °C no longer counts as “Off”.
A second, independent cause of a jump-back doesn’t involve Better Thermostat at all, but your CCU setup: if a window or door contact (e.g. an HmIP-SWDO-2*) has a direct link to a thermostat, the thermostat automatically and repeatedly lowers its own target temperature whenever the contact is open – completely independent of Home Assistant. If a thermostat keeps jumping back on its own despite Better Thermostat, check first whether that link still exists (see setup above) before assuming a software bug.
During setup, Better Thermostat also asks for a “calibration type” for each thermostat (Target Temperature Based, Offset Based or Direct Valve Based, depending on what the thermostat supports) and a “calibration mode” ((AI) Time Based by default, plus TPI Controller, PID Controller, Aggressive and External Sensor Offset Only, among others). You can change both later without recreating the instance: go to Settings → Devices & services → Better Thermostat and open the options of the instance, where each thermostat has its own settings. The developers recommend Direct Valve Based as the type if your thermostat offers it, otherwise Offset Based, and (AI) Time Based or the TPI Controller as the mode.
The same step has the option “If you use HomematicIP, you should enable this …”, which is already ticked for thermostats from a Homematic integration. Keep it on for Homematic IP thermostats: Better Thermostat then sends commands less often, and the devices stay within their duty cycle.
Weekly schedules: automation with the Advanced Heating Control blueprint
Better Thermostat has no built-in schedule: it only knows heat, off and selectable presets such as Comfort or Eco. If you want to rebuild the comfort/eco automation of the old Homematic “Auto” mode, you need an extra building block for that. We went with the blueprint Advanced Heating Control – not a HACS package, but a Home Assistant blueprint from the community. Here’s how to add it:
- Advanced Heating Control needs the Uptime integration. Add it under Settings → Devices & services → Add integration – it doesn’t ask for any settings.
- Under Settings → Automations & scenes → Blueprints, click “Import blueprint” and paste the GitHub link as the “Blueprint address”:
https://github.com/panhans/HomeAssistant/blob/main/blueprints/automation/panhans/advanced_heating_control.yaml. Confirm with “Preview” and then “Import blueprint”. The forum thread’s address doesn’t work here – the import fails with a YAML error.
Two controllers, cleanly separated responsibilities
Advanced Heating Control ships with its own calibration feature, which is on by default. We deliberately turned it off (in the “Calibration” section, switch off “Enable Calibration”; in YAML that’s input_is_calibration_enabled: false). Otherwise two automations would try to calibrate the same climate entity at the same time, and we’d be right back at this article’s core problem: two controllers on one valve. The division of labour is therefore clear: Better Thermostat decides how to heat (calibration, window detection, safe off), Advanced Heating Control only decides when comfort temperature should apply instead of eco. Only the Better Thermostat entity is ever addressed – never the raw Homematic device directly.
The real CCU schedules as a foundation
Instead of inventing comfort and eco times ourselves, we read the already-existing weekly programs directly off the Homematic devices. Every HmIP-RF climate entity (the newer eTRV and wall-thermostat devices) carries its current CCU profile in the schedule_data attribute – visible under Settings → Tools → States (formerly Developer Tools). From that we built a normal Home Assistant schedule helper for every room and fed it into Advanced Heating Control – the family’s real, years-old heating routine, just now living in Home Assistant instead of in the CCU.
Our older BidCos-RF radiator thermostats (HM-CC-RT-DN) don’t provide schedule_data. Where a room also has an HmIP wall thermostat (as in two of our kids’ rooms), we reuse its schedule for that room. Where no schedule source exists at all, manually entering the desired times is the only option.
Here’s how to set up the schedule and the automation:
- Under Settings → Devices & services → Helpers → Create helper → Schedule, create one schedule per room, e.g. “Living room heating”. Mark the times when the comfort temperature should apply. Outside those blocks, Advanced Heating Control switches to the eco temperature.
- Under Settings → Automations & scenes → Blueprints, click “Advanced Heating Control V5”. This opens a new automation with the blueprint’s inputs.
Fill in these inputs and leave everything else at its default:
- “Thermostats & Sensors” → “Thermostats / Climates”: the room’s Better Thermostat entity, not the Homematic entity
- “Comfort Mode Settings” → “Fallback Comfort Temperature”: e.g. 21.5 °C
- “Eco Mode Settings” → “Fallback Eco Temperature”: e.g. 18 °C
- “Scheduling” → “Schedules”: your schedule
- “Calibration” → “Enable Calibration”: off
- Leave “Window & Door Detection” empty – Better Thermostat handles the windows
Save the automation. In YAML (three-dot menu → “Edit in YAML”) it looks like this – entity names and temperatures are examples:
alias: Living room heating
use_blueprint:
path: panhans/advanced_heating_control.yaml
input:
input_trvs:
- climate.living_room_heating
input_temperature_comfort_static: 21.5
input_temperature_eco_static: 18
input_schedulers:
- schedule.living_room_heating
input_is_calibration_enabled: false
More than two tiers: the trick with a dynamic comfort temperature
A schedule helper only knows “on” or “off”; Advanced Heating Control turns that into comfort or eco – two tiers. Our living-room schedule in the CCU, however, had three: cooler at night, a short warmer boost on weekday mornings, and the actual comfort temperature during the day. The fix is an input_number helper as the comfort-temperature source: Advanced Heating Control reads the currently valid comfort value from it, and a tiny separate automation with two time triggers sets that value to the higher intermediate value on weekday mornings and back shortly after. That way there’s still only a single automation that writes to the climate entity – Advanced Heating Control itself – while the mini automation merely updates a number.
Create the helper under Create helper → Input number, e.g. “Living room comfort temperature” from 15 to 25 °C in steps of 0.5. In the Advanced Heating Control automation, add it under “Comfort Mode Settings” → “Comfort Temperature” (in YAML: input_temperature_comfort: input_number.living_room_comfort_temperature). For the mini automation, go to Settings → Automations & scenes → Create automation → Create new automation, switch to “Edit in YAML” via the three-dot menu and paste:
alias: Living room morning boost
triggers:
- trigger: time
at: "06:00:00"
id: boost
- trigger: time
at: "07:00:00"
id: normal
conditions:
- condition: time
weekday: [mon, tue, wed, thu, fri]
actions:
- action: input_number.set_value
target:
entity_id: input_number.living_room_comfort_temperature
data:
value: "{{ 22.5 if trigger.id == 'boost' else 21.5 }}"
mode: single
It raises the comfort value to 22.5 °C at 6 am on weekdays and drops it back to 21.5 °C at 7 am. Advanced Heating Control passes the new value on to the thermostat within a few seconds.
Rooms without comfort/eco logic: a simple time automation is enough
Not every room needs the full comfort/eco machinery. Our bathroom runs on a fixed daily curve with four temperature tiers (cooler at night, warmer for morning and evening showers, a medium value in between) – with no presence or eco logic at all. A lean automation with four time triggers that calls climate.set_temperature directly on the Better Thermostat entity is enough. No blueprint or schedule helper needed. Here it is in YAML, with example times and temperatures:
alias: Bathroom heating curve
triggers:
- trigger: time
at: "05:30:00"
variables:
temp: 22
- trigger: time
at: "08:00:00"
variables:
temp: 20
- trigger: time
at: "18:30:00"
variables:
temp: 23
- trigger: time
at: "22:00:00"
variables:
temp: 18
actions:
- action: climate.set_temperature
target:
entity_id: climate.bathroom_heating
data:
temperature: "{{ temp }}"
mode: single
Each trigger brings its own temperature via variables, so a single action covers all four.
Conclusion
Controlling Homematic radiator thermostats reliably in Home Assistant isn’t a Homematic problem, it’s a question of using the right tools: the wrong status display goes back to a long-known rendering problem in the Home Assistant frontend itself and can’t be fixed with a different Homematic setup. Better Thermostat solves that structurally by wrapping every affected climate entity in a new, robust entity with just two clear modes (Heat, Off), and takes over calibration and window-sensor logic along the way. For a real weekly schedule, Advanced Heating Control adds comfort and eco times on top, without the two automations getting in each other’s way. Together, the two building blocks fully replace Homematic’s own automation.
Because the list of valid presets (e.g. Boost, weekly program 1-3) changes depending on the HVAC mode. A well-known rendering bug in the Home Assistant frontend (GitHub issue #19620) causes the thermostat card to briefly show an invalid or stale state when switching modes, whenever the previously selected option no longer exists in the new, shorter list.
The maintainer of the Homematic(IP) Local integration clarified this in GitHub issue #1788: it’s a frontend problem in Home Assistant itself that occurs across various integrations – not a bug in the Homematic connection.
Most reliably with the HACS integration Better Thermostat: it wraps the Homematic climate entity in a new entity with only two HVAC modes (Heat, Off) and automatically takes over calibration and window-sensor logic. The error-prone preset dropdown no longer appears on the dashboard at all, because only the new, wrapped entity is shown.
Yes. Better Thermostat only calls standard climate services and is therefore independent of the radio protocol – whether an HmIP-RF device (e.g. HmIP-eTRV) or a classic BidCos-RF device (HM-CC-RT-DN) is behind it makes no difference for the setup.
Better Thermostat itself works independently of the integration, since it only calls standard climate services. The CCU-specific findings about the off mode (window-contact coupling, TEMPERATURE_MINIMUM discrepancy) were, however, tested exclusively on a CCU3 with the Homematic(IP) Local integration – the Homematic IP cloud integration is technically a completely different codebase and may behave differently.
On HmIP-eTRV devices (HmIP-RF interface), Home Assistant correctly sets 4.5 °C when switching to “Off”, but adjusts the value within about 1.3 seconds to the min_temp of 5 °C stored in Home Assistant – and 5 °C is no longer recognised as “Off”. Classic BidCos-RF devices like the HM-CC-RT-DN are not affected by this and stay stable at “Off”.
No, these are two independent causes. The wrong preset display is caused by the Home Assistant frontend (GitHub issue #19620). The jump-back from “Off” to “Heat” has two other causes: either an active window/door-contact link (HmIP-SWDO-2) that makes the thermostat lower its own setpoint without Home Assistant involved, or a discrepancy between the device’s real TEMPERATURE_MINIMUM and the min_temp reported by Home Assistant on HmIP-RF thermostats.
Better Thermostat’s own entity deliberately knows only two HVAC modes: heat and off. “Heat” takes over the role of the old “Manual” (fixed setpoint). The old “Auto” (weekly program) is not represented by Better Thermostat as its own HVAC mode; if you want a weekly schedule, you need an additional automation building block.
The displayed temperature attribute in Better Thermostat’s Off mode is the last heat setpoint that was set – the entity remembers the last comfort temperature for the next switch back to Heat. On our system, the real Homematic device stayed in heat mode the whole time, with the target temperature lowered to the minimum (5 °C). Whether Better Thermostat handles “Off” this way or passes the “Off” command on depends on the modes the device reports and on the “Use the minimum temperature instead of ‘off’” option. Going via the minimum temperature avoids the jump-back behaviour of HmIP-RF devices.
Better Thermostat has no built-in schedule, but it offers several presets (including Comfort, Eco and Sleep), each with its own temperature. For a weekly schedule, use the developers’ official “Weekly Heating Schedule” blueprint or, as we did, the community blueprint Advanced Heating Control, which switches between comfort and eco times based on schedule helpers. Better Thermostat stays in charge of calibration and window detection.






