rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.99k stars 565 forks source link

Local Tuya doesn't work locally for me #1325

Open Naro90029 opened 1 year ago

Naro90029 commented 1 year ago

I have setup everything correctly with access local key and all that; and it is integrated with HA and works fine, but only when I have internet. When the internet goes out, it works for a while but then reads the devices as "unknown" devices. It sometimes starts to work again when I do a restart of HA, so it may be an HA issue rather then a Tuya issue.

przybyju commented 1 year ago

Local Tuya suddenly stopped working for me. Errors are displayed in the log. I am attaching the log.

2023-03-09 23:57:40.088 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration localtuya which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-03-09 23:57:45.628 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry localtuya for localtuya File "/config/custom_components/localtuya/init.py", line 255, in async_setup_entry File "/config/custom_components/localtuya/cloud_api.py", line 104, in async_get_access_token File "/config/custom_components/localtuya/cloud_api.py", line 98, in async_make_request 2023-03-10 06:35:44.302 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry localtuya for localtuya File "/config/custom_components/localtuya/init.py", line 255, in async_setup_entry File "/config/custom_components/localtuya/cloud_api.py", line 104, in async_get_access_token File "/config/custom_components/localtuya/cloud_api.py", line 98, in async_make_request

renoirb commented 1 year ago

To confirm. Are you separating IoT Tuya devices on separate VLANs? Running on Docker?

Apparently not. You're talking about how/when to control devices without having them to go to the Internet. I haven't tried that just yet. We'll probably need firewall rules we can turn on/off