homebridge-switchbot
homebridge-switchbot copied to clipboard
Switchbot - Bot : Press-mode sets Switch to On
Problem
When you set a bot to "Press-mode" and press it, it goes briefly "On" - when it presses the button, and then goes back to "Off" when it is done pressing the button. However for press-buttons that switch a device on, this then doesn't represent the state of that device.
Solution
Add an option which enables Press-Mode to set the state of the device. If pressed once, it is set to On - again then Off. This means the device state needs to be remembered instead of the state of the Bot.
Alternatives
No response
Additional context
No response