Closed Blueforcer closed 7 months ago
I have two identical devices and each get a own id with device.setUniqueId(mac, sizeof(mac));
unfortunally only one device is registered in HA at a time. I need to delete the first one in in order register the second device.
in HA logs i found this when i try to register the second one:
2023-03-27 23:19:10.475 ERROR (MainThread) [homeassistant.components.sensor] Platform mqtt does not generate unique IDs. ID battery already exists - ignoring sensor.battery 2023-03-27 23:19:10.479 ERROR (MainThread) [homeassistant.components.sensor] Platform mqtt does not generate unique IDs. ID temperature already exists - ignoring sensor.temperature 2023-03-27 23:19:10.480 ERROR (MainThread) [homeassistant.components.sensor] Platform mqtt does not generate unique IDs. ID huminity already exists - ignoring sensor.humidity 2023-03-27 23:19:10.482 ERROR (MainThread) [homeassistant.components.sensor] Platform mqtt does not generate unique IDs. ID illuminance already exists - ignoring sensor.illuminance
what is wrong here?
Check out issue #124 and #149
Each device must have a unique id and each sensor name must be globally unique, regardless of the device name they are associated with.
Thanks, I will try that
I have two identical devices and each get a own id with device.setUniqueId(mac, sizeof(mac));
unfortunally only one device is registered in HA at a time. I need to delete the first one in in order register the second device.
in HA logs i found this when i try to register the second one:
what is wrong here?