HmIP-MOD-OC8: How can I tie multiple channels together?

Hello.
I am using the HomematicIP HmIP-MOD-OC8 relais board for my garden watering.
The wiring is:

  • Relais 1: pump
  • Relais 2: 24V supply for my valves
  • Relais 3-6: four different valves / watering circuits

In this setup, I always need to pull the relais 1 and 2 together with one of the other “valve relais”.
I currently have 6 switch buttons on my dashboard and do this manually.
(activate 1 and 2, active 3, deactivate 3, activate 4, …, deactivate 6, deactivate 1 and 2)

How should this be done in Home Assistant in a manner that 1 and 2 are always active automatically with one of the other relais?

Thank you.

Best regards,
Marcus

Ah, sorry. Forgot to mention that I was playing with the automations already:

description: ""
trigger:
  - platform: device
    type: turned_on
    device_id: a7dc976d07499e28f54b97a45f15a761
    entity_id: switch.hmip_mod_oc8_000d1d89a09874_ch18
    domain: switch
condition:
  - condition: device
    type: is_off
    device_id: a7dc976d07499e28f54b97a45f15a761
    entity_id: switch.hmip_mod_oc8_000d1d89a09874_ch10
    domain: switch
action:
  - type: turn_on
    device_id: a7dc976d07499e28f54b97a45f15a761
    entity_id: switch.hmip_mod_oc8_000d1d89a09874_ch10
    domain: switch
mode: single

This is actually working, but this seems extremely cumbersome when I have to consider all the possible switch on/off combinations.

I assume there is a smarter way to implement this :slight_smile:

Ok, I am making slow progress, but things feel still cumbersome. Is this approach correct or am I over-complicating things?

What I have now done:

  • created a helper item of type “counter”
  • created four, unconditional automations.
  1. An activation of any of those valves increments my counter variable
  2. A deactivation of any the valves decrements the counter
  3. When counter > 0: activation the other two relais
  4. When counter < 1: 15s delay and deactivation of the two relais

This is working now, but it really feels wrong.
What do you think?