You can control a centralized boiler. As long as it's possible to trigger or stop the boiler from Home Assistant, Versatile Thermostat will be able to control it directly.
The basic principle is as follows:
- A new entity of type
binary_sensor
, named by defaultbinary_sensor.central_boiler
, is added. - In the configuration of the VTherms, you specify whether the VTherm should control the boiler. In a heterogeneous installation, some VTherms should control the boiler, and others should not. Therefore, you need to indicate in each VTherm configuration whether it controls the boiler.
- The
binary_sensor.central_boiler
listens for state changes in the equipment of the VTherms marked as controlling the boiler. - When the number of devices controlled by the VTherm requesting heating (i.e., when its
hvac_action
changes toHeating
) exceeds a configurable threshold, thebinary_sensor.central_boiler
turnson
, and if an activation service has been configured, that service is called. - If the number of devices requesting heating drops below the threshold, the
binary_sensor.central_boiler
turnsoff
, and if a deactivation service has been configured, that service is called. - You have access to two entities:
- A
number
type entity, named by defaultnumber.boiler_activation_threshold
, which gives the activation threshold. This threshold is the number of devices (radiators) requesting heating. - A
sensor
type entity, named by defaultsensor.nb_device_active_for_boiler
, which shows the number of devices requesting heating. For example, a VTherm with 4 valves, 3 of which request heating, will make this sensor show 3. Only the devices from VTherms marked to control the central boiler are counted.
- A
You therefore always have the information to manage and adjust the triggering of the boiler.
All these entities are linked to the central configuration service:
To configure this feature, you need a centralized configuration (see Configuration) and check the 'Add Central Boiler' box:
On the next page, you can provide the configuration for the actions (e.g., services) to be called when the boiler is turned on/off:
The actions (e.g., services) are configured as described on the page:
- The general format is
entity_id/service_id[/attribute:value]
(where/attribute:value
is optional). entity_id
is the name of the entity controlling the boiler in the formdomain.entity_name
. For example:switch.chaudiere
for a boiler controlled by a switch, orclimate.chaudière
for a boiler controlled by a thermostat, or any other entity that allows boiler control (there is no limitation). You can also toggle inputs (helpers
) such asinput_boolean
orinput_number
.service_id
is the name of the service to be called in the formdomain.service_name
. For example:switch.turn_on
,switch.turn_off
,climate.set_temperature
,climate.set_hvac_mode
are valid examples.- Some services require a parameter. This could be the 'HVAC Mode' for
climate.set_hvac_mode
or the target temperature forclimate.set_temperature
. This parameter should be configured in the formatattribute:value
at the end of the string.
Examples (to adjust to your case):
climate.chaudiere/climate.set_hvac_mode/hvac_mode:heat
: to turn the boiler thermostat on in heating mode.climate.chaudiere/climate.set_hvac_mode/hvac_mode:off
: to turn off the boiler thermostat.switch.pompe_chaudiere/switch.turn_on
: to turn on the switch powering the boiler pump.switch.pompe_chaudiere/switch.turn_off
: to turn off the switch powering the boiler pump.- ...
To find the correct action to use, it's best to go to "Developer Tools / Services", search for the action to call, the entity to control, and any required parameters. Click 'Call Service'. If your boiler turns on, you have the correct configuration. Then switch to YAML mode and copy the parameters.
Example:
In "Developer Tools / Actions":
In YAML mode:
The service to configure will then be: climate.sonoff/climate.set_hvac_mode/hvac_mode:heat
(note the removal of spaces in hvac_mode:heat
).
Do the same for the off service, and you’re ready to go.
Each successful boiler activation or deactivation sends an event from Versatile Thermostat. This can be captured by an automation, for example, to notify you of the change. The events look like this:
An activation event:
event_type: versatile_thermostat_central_boiler_event
data:
central_boiler: true
entity_id: binary_sensor.central_boiler
name: Central boiler
state_attributes: null
origin: LOCAL
time_fired: "2024-01-14T11:33:52.342026+00:00"
context:
id: 01HM3VZRJP3WYYWPNSDAFARW1T
parent_id: null
user_id: null
```yaml
event_type: versatile_thermostat_central_boiler_event
data:
central_boiler: true
entity_id: binary_sensor.central_boiler
name: Central boiler
state_attributes: null
origin: LOCAL
time_fired: "2024-01-14T11:33:52.342026+00:00"
context:
id: 01HM3VZRJP3WYYWPNSDAFARW1T
parent_id: null
user_id: null
Un évènement d'extinction :
event_type: versatile_thermostat_central_boiler_event
data:
central_boiler: false
entity_id: binary_sensor.central_boiler
name: Central boiler
state_attributes: null
origin: LOCAL
time_fired: "2024-01-14T11:43:52.342026+00:00"
context:
id: 01HM3VZRJP3WYYWPNSDAFBRW1T
parent_id: null
user_id: null
Software or home automation control of a central boiler may pose risks to its proper operation. Before using these functions, ensure that your boiler has proper safety features and that they are functioning correctly. For example, turning on a boiler with all valves closed can create excessive pressure.