Open artem-zinnatullin opened 5 months ago
Just to add to this my internet went down for 15 minutes, when it came back localtuya had failed to load and my devices were offline. HA hadn't been restarted so it was just a case of the internet dropping for me causing the issue. A re load of localtuya resolved the issue, but i put this on so it would work offline!!
I also have this issue. Localtuya "failed to set up" with no internet regardless of how many times I restart. I managed to make it by work by in configuration, reconfigure the cloud api access and selecting do not use cloud api. It now works smoothly, though will likely need cloud reconfiguring to easily add new devices.
This should really be something that doesn't prevent the integration from setting up or running at all though, I would have imagined it would be an easy thing to detect if there is no connection and skip the cloud api polling which is only required for easy adding of new devices.
I had a similar problem when adding a new device. But restarting the integration did not help. Is it possible to somehow solve this without removing the integration? I do not have a current backup copy.
Hi!
Almost every time after machine reboot HA boots normally, but
localtuya
crashes withFailed to set up
and doesn't reload automatically causing ALL Tuya related automations to fail.Environment
Steps to reproduce
sudo restart
Integrations
localtuya
Failed to set up
Or:
Integrations
localtuya
Failed to set up
Provide Home Assistant traceback/logs
Additional information
To fix the issue I have to manually navigate to Integrations -> localtuya -> Reload.
Few thoughts:
openapi.tuyaus.com
or other Tuya internet API is not available, simply because it's a local-first integration. No one wants their home not to work if some external API is down, that's why we dolocaltuya
!