Hi all:
I've renamed a few devices in Unifi when I swapped some cameras, after which I deleted the Unifi devices and re-added them. I quickly noticed some of device_track entity seems to stored somewhere and linked to old devices in Unifi before renaming. I then deleted Unifi integration and re-added the device that caused the issue, but unfotunately the problem still exists, so somehow some mis-mapping was remembered and there is no way I can change that.
One example is the camera, before renaming I used WiFi to connect, after renaming it uses ethernet, but device_tracker always show the device not_home, dispite that it's connected and shows "online" in Unifi. I have checked the entity in Developer Tool, it maps to the correct ip and mac address of the device. I'm not out of idea and would appreciate if anybody can give me a hand on where to look/try. I have already tried:
- Reinstall unifi integration
- Reconfigure the device that shows wrong state
- Restart HAOS
- Restart Unifi OS
Many thanks!