Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A4 digital input1 trigger relay1 output by ESPHome config demo
#1
switch:
  - platform: gpio
    pin: GPIO2
    name: "room lamp"
    id: lamp

binary_sensor:
  - platform: gpio
    pin: GPIO36
    name: "room lamp Toggle Button"
    on_press:
      then:
        - switch.toggle: lamp
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)