pwesters / watts_vision

Custom home assistant integration for the Watts Vision Wireless Smart Home System
12 stars 6 forks source link

Integration stopped working #16

Closed soeter01 closed 7 months ago

soeter01 commented 7 months ago

After many months of perfect operation today the integration fails at start up with the following error in the HA log: "Something went wrong fetching user data. Code: 5, Key: ERR_ROUTE, Value: Route error, Data: {}"

Re downloading, re-configuring or restarting HA did not help.

Any ideas?

fabianteunissen commented 7 months ago

I'm in the same boat.

Interestingly, the setup with a second home, complete with another Home Assistant instance and Watts integration, runs flawlessly. Cannot find any diffrences core/firmware/setting wise. I've checked for discrepancies in core, firmware, and settings, but haven't found any.

pwesters commented 7 months ago

I have to do some final checks but it looks like there's a trailing slash missing at line 123 of watts_api.py So change the line from url="https://smarthome.wattselectronics.com/api/v0.1/human/smarthome/read", to url="https://smarthome.wattselectronics.com/api/v0.1/human/smarthome/read/", and it should not give any errors. I'll do some more investigating but if this is the solution i'll create a new release.

fabianteunissen commented 7 months ago

Verified your suggested modification, and it performs like a charm agian!

Unfortunately, I've already attempted to restore the second HA instance, but it's stuck in the restoration process for like an hour..

soeter01 commented 7 months ago

Thanks pwesters for such a quick fix - it is indeed working again!

xvb201 commented 7 months ago

I had the same issue and the suggested fix also worked for me.