zachcheatham / ha-omada

Home Assistant TP-Link Omada Integration
183 stars 26 forks source link

Device Trackers lost on reboot #73

Open Ayuus opened 1 year ago

Ayuus commented 1 year ago

After restarting HA, device trackers that are not currently connected to an AP, are lost. Easy to reproduce: disable wifi on your phone, restart HA and observe that you as Person no longer have a wifi Device Tracker. Found using HA 2023.6.0, 2023.6.1

log:

Logger: homeassistant.components.device_tracker Source: helpers/entity_platform.py:570 Integration: Apparaattracker (documentation, issues) First occurred: 07:11:28 (1 occurrences) Last logged: 07:11:28

Platform omada does not generate unique IDs. ID 40-9C-28-06-32-EF already exists - ignoring device_tracker.iphone_emma_wifi

zachcheatham commented 1 year ago

I just updated today from 2023.5 2023.6.1 and did not see my disconnected devices disappear. Based on the error you posted, it seems that Apparaattracker is registering your device's mac addresses before Omada which could be causing some conflict. Also check that the missing devices still exist in the known devices section of the Omada web interface.

Ayuus commented 1 year ago

Tried again, same result. Device Tracker no longer exists after reboot, only in case device is not wifi connected at time of reboot. "Known devices" in Omada web interface only holds AP's, no clients. After reboot, client that is not connected is not found in Omada web iterface anymore (which is correct), but somehow, created Device Trackers are deleted, too, which is imho not desirable.

Ayuus commented 1 year ago

Nobody else experiencing this? Hard to imagine, as reproducing is so easy, and consequences are so annoying.

breitero commented 5 months ago

At my HA it's the same as Ayuus reported. All device trackers which are offline at the time HA restarts are lost and must be updated in der person section.

Ayuus commented 5 months ago

For me, this was solved in Omada Controller, Site, Clients, Click on Device Tracker Device, tab Config, entering a Name manually.

breitero commented 5 months ago

Thank you for the notice. I'm going to try that.

CAP-Team commented 3 months ago

I have numerous devices of which I have renamed manually, but after an update my device trackers linked to persons are gone. After given device is online again I can link it to the person again.