make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.22k stars 490 forks source link

Every device went to wrong after update 2023.3.x #484

Closed fischrobi closed 1 year ago

fischrobi commented 1 year ago

Logs:

Home Assistant Core 2023-03-02 23:38:37.298 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration tuya_local 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-02 23:39:10.830 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'localtuya', 'mass', 'default_config', 'search', 'waze_travel_time', 'diagnostics', 'input_number', 'config', 'withings', 'logbook', 'scene', 'person', 'open_meteo', 'my', 'alarm_control_panel', 'image_upload', 'mobile_app', 'energy', 'repairs', 'rpi_power', 'raspberry_pi', 'conversation', 'device_automation', 'input_boolean', 'media_player', 'tts', 'upnp', 'homeassistant_alerts', 'tuya', 'media_source', 'blueprint', 'input_text', 'trace', 'icloud', 'auth', 'radio_browser', 'cast', 'switch', 'hacs', 'plex', 'synology_dsm', 'sun', 'local_ip', 'google_assistant_sdk', 'xiaomi_airfryer', 'scrape', 'input_select', 'tag', 'google', 'sensor', 'speedtestdotnet', 'group', 'timer', 'daikin', 'ipp', 'tuya_local', 'camera', 'history', 'dlna_dms', 'input_datetime', 'ffmpeg', 'mqtt', 'zone', 'homeassistant_hardware', 'hardware', 'samsungtv', 'homeassistant_sky_connect', 'shell_command', 'zha', 'watchman', 'onboarding', 'file_upload', 'androidtv', 'analytics', 'thread', 'jellyfin', 'persistent_notification', 'cpuspeed', 'input_button', 'script', 'system_health', 'smartthings', 'application_credentials', 'xiaomi_miot', 'schedule', 'counter', 'lovelace', 'panel_custom', 'automation', 'map'} 2023-03-02 23:39:15.437 INFO (MainThread) [homeassistant.setup] Setting up tuya_local 2023-03-02 23:39:15.437 INFO (MainThread) [homeassistant.setup] Setup of domain tuya_local took 0.0 seconds 2023-03-02 23:39:15.576 INFO (MainThread) [custom_components.tuya_local.device] Creating device: bfb42871b042248b25mxz7 2023-03-02 23:39:15.577 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Mosógép konnektor for tuya_local File "/config/custom_components/tuya_local/init.py", line 238, in async_setup_entry File "/config/custom_components/tuya_local/device.py", line 543, in setup_device File "/config/custom_components/tuya_local/device.py", line 65, in init 2023-03-02 23:39:15.584 INFO (MainThread) [custom_components.tuya_local.device] Creating device: bf7d45aa4a47b2c585t2nx 2023-03-02 23:39:15.585 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Torolkozoszarito konnektor for tuya_local File "/config/custom_components/tuya_local/init.py", line 238, in async_setup_entry File "/config/custom_components/tuya_local/device.py", line 543, in setup_device File "/config/custom_components/tuya_local/device.py", line 65, in init 2023-03-02 23:39:15.589 INFO (MainThread) [custom_components.tuya_local.device] Creating device: 22156617ecfabc609099 2023-03-02 23:39:15.590 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Konyhai menyezeti lampa for tuya_local File "/config/custom_components/tuya_local/init.py", line 238, in async_setup_entry File "/config/custom_components/tuya_local/device.py", line 543, in setup_device File "/config/custom_components/tuya_local/device.py", line 65, in init 2023-03-02 23:39:15.594 INFO (MainThread) [custom_components.tuya_local.device] Creating device: 22156617ecfabc60952c 2023-03-02 23:39:15.594 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Nappali menyezeti lampa for tuya_local File "/config/custom_components/tuya_local/init.py", line 238, in async_setup_entry File "/config/custom_components/tuya_local/device.py", line 543, in setup_device File "/config/custom_components/tuya_local/device.py", line 65, in init 2023-03-02 23:39:15.599 INFO (MainThread) [custom_components.tuya_local.device] Creating device: bf4c143d28fefd43f4dla6 2023-03-02 23:39:15.600 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Ablak feloli olvasolampa for tuya_local File "/config/custom_components/tuya_local/init.py", line 238, in async_setup_entry File "/config/custom_components/tuya_local/device.py", line 543, in setup_device File "/config/custom_components/tuya_local/device.py", line 65, in init 2023-03-02 23:39:15.603 INFO (MainThread) [custom_components.tuya_local.device] Creating device: 22156617ecfabc608a23 2023-03-02 23:39:15.604 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Bejarat feloli eloszoba lampa for tuya_local File "/config/custom_components/tuya_local/init.py", line 238, in async_setup_entry File "/config/custom_components/tuya_local/device.py", line 543, in setup_device File "/config/custom_components/tuya_local/device.py", line 65, in init 2023-03-02 23:39:15.608 INFO (MainThread) [custom_components.tuya_local.device] Creating device: 22156617ecfabc608858 2023-03-02 23:39:15.609 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Haloszoba feloli eloszoba lampa for tuya_local File "/config/custom_components/tuya_local/init.py", line 238, in async_setup_entry File "/config/custom_components/tuya_local/device.py", line 543, in setup_device File "/config/custom_components/tuya_local/device.py", line 65, in init 2023-03-02 23:39:15.613 INFO (MainThread) [custom_components.tuya_local.device] Creating device: 22156617ecfabc608bde 2023-03-02 23:39:15.615 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Haloszoba nagylampa for tuya_local File "/config/custom_components/tuya_local/init.py", line 238, in async_setup_entry File "/config/custom_components/tuya_local/device.py", line 543, in setup_device File "/config/custom_components/tuya_local/device.py", line 65, in init 2023-03-02 23:39:15.618 INFO (MainThread) [custom_components.tuya_local.device] Creating device: 20268362d8bfc0080ec9 2023-03-02 23:39:15.619 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry BlitzWolf BWSH2 humidifier for tuya_local File "/config/custom_components/tuya_local/init.py", line 238, in async_setup_entry File "/config/custom_components/tuya_local/device.py", line 543, in setup_device File "/config/custom_components/tuya_local/device.py", line 65, in init 2023-03-03 00:35:04.154 INFO (MainThread) [custom_components.tuya_local.device] Creating device: bf4c143d28fefd43f4dla6 2023-03-03 00:35:04.159 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Ablak feloli olvasolampa for tuya_local File "/config/custom_components/tuya_local/init.py", line 238, in async_setup_entry File "/config/custom_components/tuya_local/device.py", line 543, in setup_device File "/config/custom_components/tuya_local/device.py", line 65, in init 2023-03-03 00:35:36.688 INFO (MainThread) [custom_components.tuya_local.device] Creating device: 20268362d8bfc0080ec9 2023-03-03 00:35:36.695 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry BlitzWolf BWSH2 humidifier for tuya_local File "/config/custom_components/tuya_local/init.py", line 238, in async_setup_entry File "/config/custom_components/tuya_local/device.py", line 543, in setup_device File "/config/custom_components/tuya_local/device.py", line 65, in init 2023-03-03 00:36:40.310 WARNING (MainThread) [custom_components.tuya_local.config_flow] Connection test failed with <class 'OSError'> [Errno 98] Address in use 2023-03-03 00:39:11.307 WARNING (MainThread) [custom_components.tuya_local.config_flow] Connection test failed with <class 'OSError'> [Errno 98] Address in use

make-all commented 1 year ago

I'm not sure what the problem is, as the details of the exception are not shown in the log, only the trace of where it is thrown from which is the call to the device constructor in tinytuya. The last two messages come from the config flow. When you tried to change the settings of the devices, did you try setting the IP Address to "Auto"? Or was it set to "Auto" already? If the IP address is set to Auto, then I think bug #408 is probably the cause of the last two messages, and might be the cause of the earlier ones if the "Auto" setting was there already.

fischrobi commented 1 year ago

I figured out the issue. After i uninstalled the localtuya everything came back :)