Exploring ESPHome and Relay Logic for Underfloor Heating

Hey everyone, I’ve been diving into the world of smart home automation lately, and I wanted to share some of my experiences and a question I’ve been pondering. I recently set up an ESPHome relay board to control my underfloor heating system, and it’s been working like a charm! I’ve detailed the project here, but there’s one little issue I’m trying to figure out.

I have 10 relays corresponding to valves in my heating system, plus a spare relay for the pump. The goal is to have the pump relay activate whenever any of the 10 valve relays are active, and turn off when the last valve relay deactivates. It’s essentially a boolean expression where the pump relay is active if any valve relay is active. The valve relays are controlled via the thermostat-card (climate-entity), but I’m not sure how to tie the pump relay into this setup.

I’ve heard about using boolean logic in ESPHome, but I’m not entirely sure how to implement it. Does anyone have experience with this kind of setup? Any advice or resources would be greatly appreciated! I’d love to get this working smoothly to ensure my heating system runs efficiently.

Also, if anyone has tips on integrating multiple devices or optimizing relay logic, I’d love to hear them. The journey into smart home automation is both exciting and a bit overwhelming, but it’s definitely worth it! Let’s keep the knowledge flowing. :blush: