-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intermittent failures in Home Assistant - "error while get mqtt config" #50
Comments
Many people with such problem last few days, but no way to fix it (( |
Same issues here. All devices seems to lose connection, after restarting Tuya integrations it works again for some time (a few hours). It's absolutely not stable at this moment. Problem with 11.5 and with 2021.1.12. It looks that there are problems with the Tuya API/ Tuya Cloud and has nothing to do with the version of Home Assistant nor OS-version. I have same problems with my test-box (used old version and new version and different versions of OS). |
I'm also having the same issue all of a sudden. Added in some logging to the openmqtt method
So it would appear the auth token is expiring and not being correctly refreshed by the client. |
I asked IOT.tuya support about this, they ask me "Where did you see the API you called,Could you please provide the address you saw" ;))) |
This was fixed in tuya-iot-python-sdk v0.6.6 which was included in Home Assistant 2021.12.6. |
it is still happening here 17 March 2022 fully patched |
Looks like the url to refresh mqtt config is wrong : https://developer.tuya.com/en/docs/cloud/c2c2630d7c?id=Kb68mozbi3foh
These URLS are used at lines 62-81:
This code doesn't match the actual documentation |
I am seeing intermittent issues in Home Assistant that started 2-3 days ago.
The logs show the following errors:
Once this occurs, devices no longer reflect their current state in Home Assistant and changing the state (turning on\off\etc) does not work either.
Reloading the integration in Home Assistant works fine for a few hours which implies that the issue is intermittent but seems to put tuya_iot in a bad state until reloaded.
I've already checked the project on Tuya IoT to ensure all needed APIs are enabled as per instructions (also it was working fine for many weeks until the issues started a couple of days ago).
Given that the integration reload in Home Assistant fixes the issue, it seems that tuya_iot should be able to handle this as well by retrying\reconnecting\etc.
The text was updated successfully, but these errors were encountered: