jaroschek / home-assistant-myuplink

Custom Home Assistant integration for devices and sensors in myUplink account.
44 stars 10 forks source link

Platform doesnt generate unique ids #106

Closed elden1337 closed 6 months ago

elden1337 commented 6 months ago

This error shows up a couple of times on each startup, and i've ignored it til now.

Example error logs (does this for all number. and sensor.), id obscured here but you get the picture:

Platform myuplink does not generate unique IDs. ID myuplink_emmy-r-00000-20240101-00000000000-00-00-00-00-00-00_40940 already exists - ignoring sensor.f730_cu_3x400v_magnus_nibef_f730_cu_3x400v_degree_minutes

however, today i stumbled upon something weird. In my

the new one has the unique_id 40940_dm, the old one did have the unique_id myuplink_emmy-r-00000-20240101-00000000000-00-00-00-00-00-00_40940 So while it's stating the error to ignore it, it is actually creating a new sensor which has the same entity_id but _2 in the end of it.

I've purged the entity-registry from these duplicates and rebooted. But then the problem comes back again, so i suspect some fix to this matter did start to duplicate the sensors?

elden1337 commented 6 months ago

it was my own HA-hickup i think.