Modbus write all coils

Hey, i have a Modbus RTU 4 Way 12V relay module connected to my ha. I can write to a single coil but i want a switch to control all coils.

  - name: hub1
    close_comm_on_error: true
    type: tcp
    host: ipadress
    port: 502
      - name: Coil1
        slave: 1
        address: 0
        write_type: coil
        unique_id: Coil1_1
      - name: Coil2
        slave: 1
        address: 1
        write_type: coil
        unique_id: Coil2_1