I have taken a Shelly 4pm and connected it to 4 x outputs for a heating system:
(0) Boiler (Feeds a thermal store)
(1) Central Heating Pump (Rads)
(2) Underfloor heating Pump
(3) Plinth heater
All the outputs and the components they feed can be triggered via a live wire to the inputs on the 4pm.
I need the Under floor Heating and Plinth channels to be able to trigger the channel (0) Boiler so the thermal store is then heated at all times they are on. No problem, I created two actions to turn Boiler (0) on and off when channels (1, 2, 3) come on. So far so good.
The issue I have is that when the Boiler (0) output is triggered for Hot water only then another input triggers it say Underfloor Heating (2) if the hot water is turned off and the Boiler input goes off the Boiler channel is turned off.
I basically need to bind inputs (1) (2) (3) to output (0). So if any of these inputs is on then output (0) Boiler will stay on until they are all off.
I was really hoping I could solve this by some logic or a script but I'm getting stuck. Maybe I have been starring at it for too long!
If anyone has any ideas that would be great.