xZetsubou / hass-localtuya

🔹 A Home Assistant integration to handle Tuya devices locally "fork from localtuya"
https://xzetsubou.github.io/hass-localtuya/
GNU General Public License v3.0
430 stars 55 forks source link

[Bug]: Removed Device from Local tuya now I cannot re-add it #386

Open weezzer008 opened 2 weeks ago

weezzer008 commented 2 weeks ago

LocalTuya Version

2024.9.0

Home Assistant Version

2024.11.0

Environment

What happened?

I had my device (Lumary Outdoor Spotlight) connected and working to Local Tuya. Due to a connection issue with the lights on wifi, I had to remove the lights from my smart life app, as well as remove them from Local Tuya. I re-added the light to smart life successfully, however I cannot re-add them to Local Tuya. Local Tuya see's them and correctly provides the local key and all information, however I get an error when adding it: An unknown error occurred. [Errno 113] Host is unreachable ('192.168.1.89', '6668').

The lights appear in the Tuya development platform where I have no problem controlling them, as well as in the smart life app.

Steps to reproduce.

  1. Remove lights from Smart life app
  2. remove lights from local tuya (delete)
  3. Re add lights to smart life app
  4. re add to local tuya

Relevant log output

An unknown error occurred. [Errno 113] Host is unreachable ('192.168.1.89', '6668').

No relevant logs in system - log

In the diag logs, if you search for device ID: ebb24501d6eee39b8dsvtj, you will see it in there, but it will not show up in the config

Diagnostics information.

config_entry-localtuya-f4ef9b3889fc41a80cd06a1db83f27cf (1).json

xZetsubou commented 2 weeks ago

The IP is incorrect you may wants to restart HA or pull the device IP correctly. there is a chance the localtuya used the old cached device ID or IP or so.

weezzer008 commented 2 weeks ago

I have rebooted multiple times (home assistant as well as whole server)as well as completely uninstalled localtuya and reinstalled. The ip address of the device is the same as it was previously. I tried changing the ip on my router as well but it didnt make a difference. Is it possible for device information to remain cached even after a reinstall of tllocal tuya?

github-actions[bot] commented 1 day ago

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days.