Hello all, I just got the switchbot Bot (https://a.co/d/aHm6y2r) and installed the switchbot integration in home assistant. I have the switchbot set in press mode (it opens my garage door) and works perfectly fine from the switchbot app. However, when I go to the device in HA, it shows as a “switch” with “on/off” options but also shows it as “switch mode: momentary”. When I choose either the “on/off” option, I get an error:
Failed to call service switch/turn_on. bytearray index out of range
My guess is because the index sees the switch as either 0 or 1 for on/off and press is something like index 2 or whatever and the integration doesn’t know what to do with it. Regardless, does anyone know what I’m missing or doing wrong here? Any advice is appreciated? I’ve tried changing the device type to something like “cover” to no avail.
Looks like I’ve found the answer here, although the post is 9mo old:
There is no implementation for momentary/push mode, only switch mode at the moment which is disappointing, hope that changes soon. In the meantime, what I think I’ll end up doing is setting up an automation with the device in “switch mode” which will flip the device “on” to press the garage door button and then immediately flip it “off” to release the button, that way it doesn’t just hold the button. Hopefully that will work, if so I’ll post the automation.