cdpuk / ha-bestway

Home Assistant integration for Bestway / Lay-Z-Spa hot tubs
MIT License
73 stars 18 forks source link

device went offline and never recovered #37

Closed wyntrblue closed 1 year ago

wyntrblue commented 1 year ago

i have been using an older version of this integration for months (since march-ish) and its worked flawlessly with my lazyspa milan. honestly this integration was the single best thing in the world!

Bestway device

lazy spa milan

Describe the bug

a few days ago i noticed that my automation that sets the spa temp and turns it on stopped working. Upon investigation i noticed that all the entities were offline. I checked for updates to the integration this morning and installed the latest version (1.2.0) this duplicated all my entities but they still show as offline.

i went ahead and removed all the devices within the integration and confirmed that my username and password were correct in the bestway mobile app.

i then added a new device entered my details and now have 1 device and 11 entities. (screenshot 1)

if i look at the entities themselves i can see they all have a warning status except for spa connected. (screenshot 2)

Logs

looking under logs and searching for bestway im not seeing any logging at all. i have enabled debug logging.

as i said before this was working perfectly for months. Im guessing something has changed with the spa or the api you call in bestway. happy to get some packet sniffing done or anything else to try and get to the bottom of it. but i would need some direction on how to do it.

thanks

James screenshot 1 screenshot 2

wyntrblue commented 1 year ago

Morning guys.

so this morning I got up to find my automation was working and the tub was showing as online in HA.

Very strange behaviour.

cdpuk commented 1 year ago

Unfortunately the HTTP API used by the integration seems a bit flaky at times. I think the app uses a websocket connection which explains why the app can seem fine when the integration does not. Anyway, glad to see it working again.