for example:
button:
- platform: ...
name: button
on_press:
then:
- switch.toggle: relay_1
- switch.toggle: relay_2
- switch.turn_on: relay_3
- switch.turn_on: relay_4
- switch.turn_off: relay_5
- switch.turn_off: relay_6
here is details: https://esphome.io/components/button/index.html
button:
- platform: ...
name: button
on_press:
then:
- switch.toggle: relay_1
- switch.toggle: relay_2
- switch.turn_on: relay_3
- switch.turn_on: relay_4
- switch.turn_off: relay_5
- switch.turn_off: relay_6
here is details: https://esphome.io/components/button/index.html