The Shelly RGBW2 offers the possibility to als be controlled by a physical switch on GPIO5 (Input-Connector).
I have configured the switch like this:
binary_sensor:
- platform: gpio
name: "${device_name}_button"
pin:
number: GPIO5
# mode: INPUT_PULLUP
on_state:
then:
- light.toggle: light01
If I directly switch the connection between ground and input, everything works fine.
If I use the alternate method to connect an AC switch through the provided optocoupler, I can see in the ESPHome-log, that the switch just constantly turns the ligts On and Off, if the physical switch is in position βONβ.
If I activate the mode-line in the config (s.above) no events register in the ESP-Home log.
Did anybody manage to get a physical AC-Switch working with the shelly RGBW2 or has any hints how to solve this?