Heating is one of the biggest energy consumers in the home. That makes it all the more convenient to be able to keep an eye on temperatures, operating statuses, and heating schedules not only directly on the heating control panel but also conveniently through your smart home system. With Home Assistant, you can view heating data centrally and—provided the system supports the relevant features—use it for smart automations as well.
In this tutorial, we’ll show you how to integrate an existing heating system into Home Assistant. We’ll start from the very beginning: by connecting the heating control unit to your home network via a LAN cable—and then we’ll set up the appropriate integration in Home Assistant, including creating a clear overview of the most important heating data.
Next, we’ll move on to automation. For example, Home Assistant can use a relatively simple automation to detect whether anyone is still at home and adjust the heating settings accordingly during extended absences. In addition, there are several other features that come with a smart heating control system—and that you can use for your smart home.
Which heating systems can be integrated into Home Assistant?
Basically, many modern heating systems can be integrated into Home Assistant. It doesn’t really matter whether you heat with pellets, firewood, gas, or a heat pump. What matters more is what interfaces the heating control system provides and whether Home Assistant can communicate with it through those interfaces.
Some manufacturers already offer their own integrations in the form of a proprietary app, while other systems require additional extensions or community projects. The connection can be established, for example, via the local network, through interfaces such as Modbus TCP, or via the manufacturer’s cloud service. However, a local connection always has the advantage that communication does not depend on an existing internet connection or the cloud.
However, a successful integration does not necessarily mean that all of the heating system’s functions can be controlled. Some interfaces provide only measurement values such as boiler temperature, buffer tank temperature, or operating status. Others also allow you to change setpoint temperatures or operating modes.
Connecting the Heating System to Your Home Network via LAN
Before we can integrate your heating system into Home Assistant, it first needs to be connected to your local network. With many modern heating systems, this is done quite simply via an Ethernet port directly on the heating controller. It’s best to avoid using Wi-Fi, as the signal in the boiler room is likely to be weak due to fire safety measures.
Depending on the manufacturer and model, an additional network module may also be required—it’s best to check the user manual or heating system configuration beforehand so you don’t waste time looking for a connection that isn’t there. There you’ll also find information on whether additional settings or a separate communication module are required for the network connection.
If a suitable port is available, connect the heating controller to your router or a network switch using a standard LAN cable. If the port is located behind a cover in the electrical compartment of the system, it’s best to have a qualified professional make the connection.
Important: Not every heating system with a network connection automatically provides a local interface for Home Assistant. For some manufacturers, the connection is initially intended solely for communication with their own app or cloud service.
Find the heating controller’s IP address
Once the LAN cable is connected, the heating system needs an IP address on your home network. In most cases, the router handles this automatically via DHCP. However, this requires that automatic address assignment be enabled in the heating control unit as well.
You can then check whether the connection worked via your router’s user interface. On a FRITZ!Box, for example, you’ll find the connected devices under “Home Network” and then “Network.” There, the heating control unit should appear with its own device name or at least as a new network device.
Make a note of the assigned IP address right away. We may need it later to set up the connection between Home Assistant and the heating system. It’s best to set up a static DHCP assignment in the router right away. This ensures that the heating system always receives the same IP address, even after a reboot—for example, by selecting “Always assign the same IPv4 address to this network device.” Alternatively, you can also enter a static IP address directly into the heating control unit if necessary.
Check the Network Connection
This completes the network setup. You can check whether the heating system is actually accessible by, for example, pinging its IP address. However, not all heating controllers respond to such requests. A failed ping therefore does not necessarily mean that the connection is not working. If your heating controller provides a local web interface, you can alternatively try accessing it directly through your browser.
So you can either use the following command in the Terminal—which you can access by right-clicking the Start button on the taskbar—where the IP address must match that of your heating system:
ping 192.168.0.167
or you can go to http://192.168.0.167 directly in your browser.
Setting Up Heater Control in Home Assistant
The heating system is connected to your home network and has its own IP address. Now you just need the right integration for your Home Assistant setup. Which one you need depends on the manufacturer and the built-in heating control system. Ideally, an integration already exists for your heating model or manufacturer. So first check under “Settings,” “Devices & Services,” and “Add Integration.” Search for your manufacturer in the search field and select the corresponding result.
Now, depending on the manufacturer, you can log in directly using your credentials from your heating control app, and Home Assistant will automatically take over all the settings. If you’d rather not do that, there’s another way to bring cozy warmth into your home without having to use the cloud.
During installation, Home Assistant will also ask you which area you want the heating system to appear in. Here, you can create a new room right away so you can control and monitor your heating system clearly in its own section. To do this, go to the Home Assistant Community Store (HACS) and search for your heating manufacturer. Then install the appropriate version for your device. However, HACS must already be set up in Home Assistant for this to work.
Didn’t find what you were looking for in HACS? Perhaps a plugin for your model hasn’t been released in HACS yet, but it might be available on GitHub or elsewhere on the web. After installation, don’t forget to restart your Home Assistant—preferably directly via “Settings,” “System,” and the power button in the top-right corner. The new extension will only be available after that.
Alternative: Integrating Heating via Modbus TCP
If your heating control system supports Modbus TCP, you may be able to integrate it even without a manufacturer-specific integration. Home Assistant includes its own Modbus integration for this purpose. However, the setup isn’t quite as simple as with an automatically detected outlet. You’ll need the Modbus register mapping for your heating system. This specifies which registers can be used to read values such as the boiler temperature, operating status, or setpoint temperature.
The connection and the desired sensors are typically configured in Home Assistant via the `configuration.yaml` file. The register addresses required for this vary from manufacturer to manufacturer. Therefore, a general configuration example cannot be easily applied to every heating system. If this is the only way to control your heating system, you should consult the manual and the manufacturer. In some cases, activation by the manufacturer may also be required to proceed.
Displaying Heating Data in Home Assistant
After setup, you’ll find the new integration under “Settings” and “Devices & Services.” Open this section to view the detected devices and entities. Depending on your heating system, the following values may appear there, for example:
- Boiler temperature and current operating status
- Buffer tank temperatures
- Hot water temperature
- Flow and return temperatures
- Outdoor temperature
- Status of individual heating circuits
You can tell whether you can also control the heating system via this interface by looking at the available entities. Pure temperature sensors only display measured values. A “climate” entity, on the other hand, can provide a setpoint temperature or an operating mode, for example. Other controllable entity types are also possible. It’s best to verify the displayed values directly against the information on the heating control panel. This way, you can immediately see whether the data is being transmitted correctly and how frequently it’s updated. You can then clearly organize the detected entities on a dedicated heating dashboard. There, you can view all temperatures and operating statuses without having to laboriously open the device overview every time.
Creating a Heating Dashboard in Home Assistant
The heating data is now available in Home Assistant. To avoid having to open the individual entities every time, you can create your own dashboard for your heating system. There, you can monitor the boiler temperature, the buffer tank, and the hot water system at a glance, for example. In Home Assistant, open “Settings” and “Dashboards,” then click “Add Dashboard.” Give it a name like “Heating” and select a suitable icon for this section. You can then access the new dashboard via the sidebar. Use the pencil icon or the menu in the top-right corner to switch to edit mode. Here, you can add cards and arrange them however you like.
Display Heating Data as Tiles
Home Assistant’s tile cards are ideal for the most important metrics. Click “Add Card,” select the tile card, and assign the desired entity from your heating control system. Depending on the data provided by your integration, you can, for example, create custom tiles for the boiler temperature, the hot water temperature, and the various buffer tank sensors. Operating statuses or error messages can also be displayed this way. If you want to combine multiple values into a single map, the Entities map is a good alternative.
Displaying Temperature Trends
In addition to the current readings, it’s also worth taking a look at temperature trends. Home Assistant offers a trend chart for this purpose. Add a new chart, select “Trend Chart,” and configure the desired temperature sensors. This is particularly interesting for the buffer tank, for example: Based on the trend, you can see how temperatures change during heating operation and how quickly the tank cools down afterward.
If no graph is displayed yet, Home Assistant may need to record a few more measurements first. If your heating integration also supports active control, you can further expand the dashboard with corresponding controls. For example, if a climate entity is available, you can use a thermostat card to directly adjust the set temperature. This way, you have the most important information—and, if needed, control over your heating system—all in one place.
Automating Your Heating System in Home Assistant
Once your heating system is integrated into Home Assistant, you can use its data not only for great visualizations but also for various automations. For example, you can set up a notification to be sent if the system reports a malfunction. If your integration also supports heating control, you can additionally adjust temperatures and heating schedules automatically.
Get Notified in Case of a Heating System Malfunction
If your heating system reports an error, you’ll probably want to know about it as soon as possible. In this case, Home Assistant can automatically send you a push notification to your smartphone. However, for this to work, the heating integration must provide a corresponding error status. You can check whether this is the case in the “Developer Tools” and “States” sections. Search for your heating system there and look for an entity that specifies the operating status or a malfunction.
In our example, we’ll assume there’s an entity named binary_sensor.heizung_stoerung. Its state changes from “off” to “on” when an error occurs. In your heating system, the entity may have a different name or, instead of “on,” may return text such as the specific error message. In this case, use the values that Home Assistant actually displays.
- Open “Settings” and “Automations & Scenes.”
- Click “Create Automation” and select a new, empty automation.
- Under “As soon as,” click “Add trigger” and select a state trigger.
- Under “Entity,” select your heater’s error sensor.
- Under “To,” enter the state “on.” If your sensor uses a different error state, use this one just to be safe.
- In the “Then” section, click “Add Action” and search for the notification action for your smartphone. It’s usually named something like notify.mobile_app_your_smartphone, where the last part is the name of your connected smartphone.
- For example, enter the following message: “The heating system is reporting a malfunction. Please check the system.”
- Save the automation under a descriptive name, such as “Report Heating System Malfunction.”
To ensure the message reaches your smartphone, the Home Assistant Companion app must be set up on it. You must also allow notifications for the app.
Automatically Adjust the Heating Temperature Based on the Time of Day
You can also set up a time-controlled temperature reduction via Home Assistant. However, this only works if your heating integration supports changing the setpoint temperature. Check the “Developer Tools” and “States” sections to see if your heating system or room control provides a `climate` entity. In our example, we’re using `climate.livingroom`. This entity controls the desired room temperature (not the boiler temperature). For example, we want to lower the setpoint temperature to 19 °C starting at 10:30 p.m. and raise it back to 21 °C at 6:30 a.m. To set up the nighttime temperature reduction, follow these steps:
- Under “Settings” and “Automations & Scenes,” create a new automation.
- Under “As soon as,” add a trigger of the “Time” type.
- Enter 10:30 p.m. as the time.
- Under “Then,” add the action “Climate: Set Temperature” (climate.set_temperature).
- Select your climate entity and enter 19 °C as the temperature.
- Save the automation.
To heat the house in the morning, simply create a second automation with the same settings. This time, set the time to 06:30 and the target temperature to 21 °C. Both automations will now run daily at the specified times. Note, however, that many heating systems already have their own schedules, which may conflict with your automation—and in most cases, the heating system’s controls take precedence.
Lowering the Heat When a Window Is Open
The combination of a window contact and a smart radiator thermostat is particularly handy. As soon as you open a window, Home Assistant can turn down the heat in that room. For our example, we need a window contact and a controllable thermostat entity. In Home Assistant, the window contact is named binary_sensor.window_living_room, and the thermostat is named climate.living_room. For example, we want to reduce the temperature to 16 °C if the window is open for more than 5 minutes.
- Create a new automation and choose an appropriate name.
- Add a state trigger.
- Select the window contact `binary_sensor.fenster_wohnzimmer`.
- Set the target state to “Open” or “on.”
- Enter a duration of 5 minutes in the “For” field.
- Under “Then,” add the action “Climate: Set Temperature.”
- Select the thermostat “climate.living_room” and set the temperature to 16 °C.
- Save the automation.
As long as the window remains open, the lower setpoint temperature is active. To ensure the room is heated again after the window is closed, we need a second automation with the target state “Closed” and a setpoint temperature of 21 °C.
Presence Detection: Automatically Lower the Heating When No One Is Home
The heating doesn’t necessarily need to run at full power when no one is home. With Home Assistant’s presence detection, you can automatically adjust the heating settings as soon as the last person leaves the house. When someone returns, the heating will resume at the usual temperature. To do this, however, Home Assistant needs to know who is currently at home. One option is detection via Wi-Fi: If your smartphone connects to the router, you’re considered present. If you leave the house and the Wi-Fi connection is lost, Home Assistant can detect that as well.
Many routers can be integrated directly into Home Assistant and provide information about the connected network devices. We use a FRITZ!Box for this. Setup works similarly with other routers, provided there’s a compatible integration with device detection.
- In Home Assistant, open “Settings” and then “Devices & Services.”
- Click “Add Integration” and search for FRITZ!Box Tools.
- Select the integration and enter your FRITZ!Box login credentials. If it has already been automatically detected, you can use the suggested entry.
- Complete the setup and then open the integration.
- Look for your smartphone under “Devices” or “Entities.”
For presence detection, we need what’s called a device_tracker. In our example, the entity is named device_tracker.smartphone_max. If the tracker is disabled, you can enable it in the entity settings. You can check whether detection is working under “Developer Tools” and “States.” Look for the tracker entity there. As long as your smartphone is detected as being at home, the state should be “home.” If it is no longer detected, the state will normally change to “not_home.” You can test this by briefly turning off Wi-Fi on your smartphone. Note, however, that some routers may take a few minutes to report a disconnected device as away.
Setting Up People in Home Assistant
Of course, you don’t want the heating to turn down as soon as you leave the house, even if someone else might still be home. Home Assistant can therefore assign multiple devices to individual people. Open “Settings,” then “People,” and create a profile for each resident if you haven’t already done so. Next, open the respective person’s profile and select the appropriate device_tracker under “Devices for Presence Detection.” Repeat this for all residents who should be taken into account by the heating control system.
Alternatively, you can also use the Home Assistant Companion app for presence detection, which saves you the step of going through the FRITZ!Box. The app can also transmit your smartphone’s location to Home Assistant. To do this, however, you must grant the appropriate location permissions and also enable location tracking. You can also assign multiple trackers to a single person, which is useful, for example, if Wi-Fi detection alone isn’t working reliably. Some smartphones disconnect from Wi-Fi when in standby mode or are briefly reported as offline by the router.
Detecting Whether Anyone Is Still at Home
Home Assistant creates a zone named “home” during setup. The associated entity `zone.home` shows how many of the configured people are currently at home. You can view the current value in the developer tools under the “States” section. For example, if two people are at home, it should show 2. If one person leaves the house, the value drops to 1. If everyone is out, it shows 0.
We use this exact value for our heating automation. This way, we don’t have to create a separate condition for every smartphone. Before setting up the automation, check to make sure the display is working correctly for you. To do this, all residents should be set up as people and linked to working trackers.
Automatically Lower the Heating When No One Is Home
We want to reduce the room temperature to about 18 °C as soon as no one has been home for at least 20 minutes. The delay prevents Home Assistant from immediately turning down the heat if a smartphone briefly loses connection.
For our example, we’ll use the `climate.livingroom` entity again. Your heating integration must support changing the setpoint temperature.
- Open “Settings” and “Automations & Scenes” and create a new automation.
- For example, name it “Lower Heating When Away.”
- Under “As soon as,” click “Add trigger” and select “Numeric state.”
- Select the entity `zone.home`.
- Enter the value 1 under “Below.” This ensures the automation triggers as soon as no one is in the home zone.
- Set a duration of 20 minutes under “For.”
- Under “Then,” add the action Climate: Set Temperature (climate.set_temperature).
- Select the desired entity, such as climate.livingroom, and set the target temperature to 18 °C.
- Save the automation.
As soon as all residents have left the house and no one has returned for 20 minutes, Home Assistant sets the target temperature to 18 °C.
Turn the heating back on upon return
Now we need a second automation that restores normal heating operation as soon as someone comes home.
- Create another automation named “Heating When Present.”
- Add “Numeric State” as the trigger again.
- Select the entity zone.home.
- Enter the value 0 in the “Over” field. The automation will then trigger as soon as at least one person is home.
- Add “Climate: Set Temperature” as the action.
- Select your heating or thermostat entity and set the desired temperature.
- Save the automation.
This will raise the temperature again when you return. However, if you’re already using different temperatures for day and night, you shouldn’t always switch back to 21 °C across the board. In this case, it makes more sense to exit away mode and reactivate the regular heating schedule. This way, the presence detection won’t interfere with the previously set nighttime temperature reduction.
Conclusion: Connecting Your Heating System to Home Assistant
Integrating a heating system into Home Assistant can take just a few minutes—or be a bit more involved—depending on the manufacturer. But once Home Assistant has access to temperatures, operating statuses, and, if applicable, control functions, the system can be seamlessly integrated into the rest of your smart home.
Whether it’s nighttime temperature reduction, window contacts, error messages, or presence detection: the automations that are possible ultimately depend on the data points your heating system provides. This is exactly where it’s worth experimenting a bit. After all, a few seemingly insignificant data points can quickly lead to some pretty practical automations.
