Closed raetha closed 3 years ago
In looking a little more, and comparing to the similar GoSense library code, it looks like just changing the assert to an if statement might resolve this without having to actually handle the packet. From what I can tell (which isn't a ton on this hardware side of things), the sensors generating this seem to be fine, they are just occasionally generating a packet that the library can't handle.
I did hear follow up from my users that another one of their successfully paired sensors triggered this same error when they open and closed a door. But that after restarting my service things seemed to work again. So it is sporadic.
Hi. I'm not positive if this is something you might be able to help with or not, but I have a project (https://github.com/raetha/wyzesense2mqtt) that uses this library as its base to talk to WyzeSense devices and integrate with HA.
Recently one of my users hit an error while pairing a sensor. I'm including the messages they got below, including debug logging from my code.
Wondering if you might have any ideas on if there's something I need to do to fix this, or if maybe it is a bad sensor/bridge, or if maybe something on your side.
Happy to help troubleshoot any way I can, though they did tell me they unpaired the sensor and then paired other sensors without issue. Waiting to hear back if they were able to repair the original sensor or not.