TRVZB thermostatic valves on Z2M with remote sensor and thermostat

Good evening everyone and well done on your work!
I’ve been going through your various posts for several hours now without really finding it. I may be looking in the wrong place.. :thinking:

I haven’t installed Gladys yet, I know it’s bad! But I’ve done my research!

The project is to control thermostatic valves(sonoff TRVZB) from a temperature sensor(sonoff SNZB-02D) via a thermostat controlled by a scheduler. Retrieve from MQTT the mode of each valve (heat, off, etc) to actuate a relay(Aqara T2) connected to the boiler circulator demand.
In each room there is a sensor and thermostatic valve(s).

In operation I want that:
-Un thermostat for each room.
-That this thermostat can retrieve its associated ambient sensor.
-That if one or more valves are open it triggers the circulator relay.
-That I can take control remotely via the interface.(with more?)

I managed to run this project under Home Assistant (HA) but I’m not a fan of YAML and I generally find it heavy for doing something simple.

After study, it seems to me that the most critical part is having a thermostat that can add an offset for valve control because the temperature must be based on that of the sensor and not that of the valve, which is inaccurate due to proximity to the radiator.

Thanks in advance for your feedback.

So personally I did almost the same thing

but instead of thermostatic valves I have a 6-order pilot wire (fil pilote 6 ordres)

each room has a temperature sensor, a window sensor, and a pilot-wire controller

activation is programmed according to a schedule and temperatures

the schedule lets me define the times when I want a certain type of heating — for example, on vacation I heat during the day too, whereas on workdays I don’t heat as much, but I still used a schedule to know when I want higher or lower temperatures

so your project seems feasible under Gladys, although I’m not the biggest Gladys expert

@Prof_Techno Thanks for your feedback, that’s encouraging!
I just watched a video about the possibility of retrieving the MQTT stream from Home Assistant (HA) (connecting to an existing installation). So, I’ll be able to run my tests in parallel.