Heating control: gas boiler, Moes thermostat, Sonoff TRVZB and Better Thermostat

Hello,

I need some advice in order to set up my heating control with home assistant: I’ve a gas boiler that’s controlled by a Zigbee Moes Star Ring thermostat; then, I’ve Sonoff TRVZB in each room and I created one entity per room in Better Thermostat, coupling the TRVZB with room Zigbee thermometer and window sensor(s).
Now, I’m not sure on how to proceed: I want that each room has its own schedule (maybe the two bathrooms can share the same schedule, but that’s not very relevant at the moment) and of course I want that Moes thermostat will turn on the boiler when one TRVZB will request heat (based on its schedule). Of course, I want to shut down the boiler if all TRVZB are closed.

So, how I should proceed? I think I need to create a schedule for each room, then create an automation for each room that refers to the schedule I created, or am I mistaken? And what about the thermostat that controls the boiler? How can I turn on it when a valve requires heat? And how can I shut down it?

Thanks in advance!

See if there is a blueprint you can either use or get inspiration from if you take control of it.

1). Create an input_boolean Helper which is ON if any TRV needs Heat and Off if not.
2). Create an Automation that is triggered by the state of the input_boolean (step 1). If it is On set the Moes Thermostat to a high value (should turn the boiler on), if Off set to a low value (should turn the boiler off).
3) Set up a schedule on the TRV’s / allow manual temperature setting on the TRV’s.