#Turn off or on floorheating pump when at leat one out of 12 relays are turned on or off

1 messages · Page 1 of 1 (latest)

real falcon
#

I have a 12 relay floor heating system. My floorheating pump is connected to a relay switch too. Now I want to turn on the pump when at least one out of the 12 relays have been turned on. If all 12 are off, the pump can be switched off too. I have been searching a bit to this but don't really come to anything and creating an automation with 24 triggers seems a bit over-doing it, most probably must be an easier method to do so. The relays all start with swtich.vloerverwarming_kamer_xxx. Does anybody got a pointer?

alpine vortex
#

If all 12 relays are in home assistant as binary sensors, make a group from them. It will be on if any of the underlying sensors is on, and off if all of them are off - you can then just use the group state to control your pump

real falcon
#

That's a good idea! Thanks. I was trying to figure out a script / template, something like that, but this is way easier.

alpine vortex
#

it's doable with a template - something like

{{ states.switch | selectattr('entity_id', 'search', 'switch.vloerverwarming_kamer') | selectattr('state', 'eq', 'on') | list | count > 0 }}

Will select any switches with an entity ID starting with that text that are on, and be true if there are more than 0 on, false otherwise