@psybernoid I also have Sonoff TRVZBs. I created the following sensor in configuration.yaml:
- binary_sensor:
- name: "Heating Demand"
device_class: heat
state: >
{% set radiators = [
states.climate.snug_radiator,
states.climate.kitchen_radiator,
states.climate.lounge_radiator_left,
states.climate.lounge_radiator_right,
states.climate.master_bedroom_radiator,
states.climate.landing_radiator
] %}
{{ radiators | selectattr('attributes.hvac_action','eq','heating') | list | count > 0 }}
I have a Sonoff Zigbee switch on my boiler’s demand wire. I then created a very simple automation that monitors the above sensor and turns on/off the boiler switch according to the heating demand.