1) Turn physical switch to on position (3.3v to GPIO)
2) Bulb (via HomeKit automation) switches on
3) Switch bulb off using Siri/Homekit/another switch
4) Turn physical switch to off position (0v to GPIO)
4) Bulb switches on
So the switch is then a toggle and the GPIO state doesn't reflect the bulb state?
Is the following possible?
1) Turn physical switch to on position (3.3v to GPIO) 2) Bulb (via HomeKit automation) switches on 3) Switch bulb off using Siri/Homekit/another switch 4) Turn physical switch to off position (0v to GPIO) 4) Bulb switches on
So the switch is then a toggle and the GPIO state doesn't reflect the bulb state?