I have Homematic heating system using a Thermostat and TRV pair in each room to control the water pumps for each floor. Each TRV has a valve position sensor to indicate when it is calling for heat. This then activates a pump which turns on the oil-fired heating system. The automation currently runs on the Homematic CCU, but I want to move it to HA for greater flexibility.
So far, I have created an automation that triggers when any valve (level) is greater than 15% and turns on the pump - see below.
Where I’m stuck is that I need to turn off the pump when ALL the TRV valves are less than 15%, which is an AND condition, so I can’t use a trigger. What is the best way to achieve this?
The automation turns on the pump if any one TRV valve is open more than 15%. It does not turn off the pump until all TRV are below 15%. Here is the adapted automation which works but I still need to add a few features, so for the moment it just turns off a dummy input_boolean:
While the solution I posted above worked, it would occasionally fail if one of the TRVs failed to report the valve position. I went back to running the script on the CCU as it needed to be reliable and anyway, I will be tearing out the entire system shortly to install underfloor heating with an air to water heat pump and KNX controls.