shauntarves/wyze-sdk

Error on newer Wyze vacuum firmware. I have this fix be committed? Firmware 1.6.306 vacuum

SpartanTech opened this issue · 3 comments

I'm not sure how to do this, but can someone modify vacuums to account for new data the wyze vacuum sends? I am getting an error when using the SDK and a home assistant custom component to tap into the vacuum. The change below fixes this (thx to Jerome). Firmware 1.6.306

vacuums.py -> change line 970 from

self.type.max_hours - self.usage
to
self.type.max_hours - int(self.usage or 0)

Screenshot_20230407_021127_Home Assistant

Also get:
image

Seems the data sent back is different in the newer firmwares. Is there a way to enable a dump of what its sending so I can post it here?

Interesting...yeah, if you want to see what the call is returning, you can turn on debug logging in the wyze-sdk.

Add wyze_sdk.set_stream_logger('wyze_sdk', level=logging.DEBUG) before the call is executed. I haven't updated my vacuum's recently, but I will do that soon and see what all has changed.

@SpartanTech did you ever give this a go so that we can try to patch it?