dmamontov / hass-miwifi

MiWiFi for Home Assistant
https://community.home-assistant.io/t/xiaomi-miwifi-component-for-tracking-devices-and-managing-routers/288734
Apache License 2.0
154 stars 16 forks source link

Duplicate unique id #42

Closed dougiteixeira closed 2 years ago

dougiteixeira commented 2 years ago

When the integration is configured twice (eg main router + mesh repeater) the unique id of some entities are being ignored due to the unique id duplicity error.

Logs:

2022-04-10 19:59:15 ERROR (MainThread) [homeassistant.components.device_tracker] Platform miwifi does not generate unique IDs. ID miwifi-6E:43:3C:87:BF:B7 is already used by device_tracker.miwifi_6e_43_3c_87_bf_b7 - ignoring device_tracker.miwifi_6e_43_3c_87_bf_b7
2022-04-10 19:59:53 ERROR (MainThread) [homeassistant.components.device_tracker] Platform miwifi does not generate unique IDs. ID miwifi-6E:43:3C:87:BF:B7 is already used by device_tracker.miwifi_6e_43_3c_87_bf_b7 - ignoring device_tracker.miwifi_6e_43_3c_87_bf_b7
2022-04-10 19:59:53 ERROR (MainThread) [homeassistant.components.device_tracker] Platform miwifi does not generate unique IDs. ID miwifi-6E:43:3C:87:BF:B7 is already used by device_tracker.miwifi_6e_43_3c_87_bf_b7 - ignoring device_tracker.miwifi_6e_43_3c_87_bf_b7
2022-04-10 20:01:35 ERROR (MainThread) [homeassistant.components.device_tracker] Platform miwifi does not generate unique IDs. ID miwifi-30:CB:F8:29:80:7D is already used by device_tracker.miwifi_30_cb_f8_29_80_7d - ignoring device_tracker.miwifi_30_cb_f8_29_80_7d
2022-04-10 20:02:53 ERROR (MainThread) [homeassistant.components.device_tracker] Platform miwifi does not generate unique IDs. ID miwifi-30:CB:F8:29:80:7D is already used by device_tracker.miwifi_30_cb_f8_29_80_7d - ignoring device_tracker.miwifi_30_cb_f8_29_80_7d
2022-04-10 20:02:53 ERROR (MainThread) [homeassistant.components.device_tracker] Platform miwifi does not generate unique IDs. ID miwifi-30:CB:F8:29:80:7D is already used by device_tracker.miwifi_30_cb_f8_29_80_7d - ignoring device_tracker.miwifi_30_cb_f8_29_80_7d
dmamontov commented 2 years ago

This is not an error, but a warning. Does not affect performance. while I think how to get around. I think a solution will be found soon.

dougiteixeira commented 2 years ago

Ok. Thanks!