Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A32 Question
#1
Hi.
Can anyone help me with a code for ESPHome? I would like it for 1 digital input to turn off multiple relay outputs (lights) physically, without network.

Thanks.
Reply
#2
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
Reply


Forum Jump:


Users browsing this thread: