Open Nikitian opened 2 years ago
Same phenomenon here with a Tuya led/CCT light entity which I wanted to remove. Log entry with the same error w.r.t. the Local Tuya integration, I have to check the rest of it (traceback etc.), though. Same version of integration (4.1.1), HAOS 2022.10.4, supervisor 2022.10.0 and operating system 9.2
I found the only way to remove a device was via the settings, integrations and then on the tuya integration click on devices and remove from there.
How did you remove it from there?
How did you remove it from there?
Its a while since I did it (a lot of releases ago) but as far as I recall from the integration click the "xx devices" .. with the list of devices click the device in in question, click on the device control to open the info properties then on the settings tab click advanced options and disable the device and then the "delete" option should be enabled .. if that does not solve it then maybe disabling the integration then doing the same ... hope it helps ... if it does not I don't have a different suggestion other than deleting the integration and starting again (tedious process I know)
How did you remove it from there?
Its a while since I did it (a lot of releases ago) but as far as I recall from the integration click the "xx devices" .. with the list of devices click the device in in question, click on the device control to open the info properties then on the settings tab click advanced options and disable the device and then the "delete" option should be enabled .. if that does not solve it then maybe disabling the integration then doing the same ... hope it helps ... if it does not I don't have a different suggestion other than deleting the integration and starting again (tedious process I know)
I delete the integration and start again, but some device cannot be added into ha, it shows"An unknown error occurred. See log for details." Btw, I can control those devices by tuya app.
My log: Traceback (most recent call last): File "/config/custom_components/localtuya/config_flow.py", line 580, in async_step_configure_device self.dps_strings = await validate_input(self.hass, user_input) File "/config/custom_components/localtuya/config_flow.py", line 245, in validate_input interface = await pytuya.connect( File "/config/customcomponents/localtuya/pytuya/init.py", line 704, in connect , protocol = await loop.create_connection( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection raise exceptions[0] File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection sock = await self._connect_sock( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock await self.sock_connect(sock, address) File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect return await fut File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') OSError: [Errno 113] Connect call failed ('192.168.0.145', 6668)
Is it an "always on" device.. some devices like leak detectors and level sensors only come alive to report a change and then go off line again.. for smartlife it's not an issue but I found them nearly impossible to get working on local.. in the end I decided to not bother.. i did manage to get one on local by keep triggering it but then it kept reporting an error while it was off line.
I managed to remove a device by reloading localtuya, then clicking on the device. then the three dots menu with the delete option became visible.
happens to me too when i try and remove a cree connected max 60w lightbulb
Can't remove a device by unchecking the entity:
2022-12-12 10:26:51.012 ERROR (MainThread) [custom_components.localtuya.config_flow] Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/localtuya/config_flow.py", line 580, in async_step_configure_device
self.dps_strings = await validate_input(self.hass, user_input)
File "/config/custom_components/localtuya/config_flow.py", line 247, in validate_input
data[CONF_DEVICE_ID],
KeyError: 'device_id'
happens to me too
The problem
Have some covers, that correctly working into tuya smart application, but unavailable into localtuya. Tried to remove this devices by uncheck checkbox "Entities (uncheck an entity to remove it)" for re-add and gets error:
An unknown error occurred. See log for details.
At logs see:Environment
Steps to reproduce
Configuration
configuration.yaml
orconfig_flow
DP dump
Provide Home Assistant taceback/logs