pawlizio / my_velux

Custom component of velux integration for Home Assistant
32 stars 9 forks source link

After some time my devices dissappear #40

Closed evilmumi closed 6 months ago

evilmumi commented 10 months ago

After some time my devices dissappear then i press reboot KLF200 After it, i have each device 2 times. What can I do? with _2

pawlizio commented 10 months ago

Yes, this issue is the same as reported here: https://github.com/pawlizio/my_velux/issues/39 Finally the covers does not provide a serial number, so a node id (simple integer number) was used in the past to identify the covers. In my last release I enabled full typing support and figured our that HomeAssistant requires a string (Text) as unique_id, not a number. That's why now the entities are created new but the old one still are in the database. Please remove the one without "_2" at the end and rename all with "_2" (just remove the "_2") please. Ad the moment I do not have another way to fix this.

evilmumi commented 10 months ago

Hi, How often can this happen?

pawlizio commented 10 months ago

This should not repeat, so only once after last update and reboot.

evilmumi commented 10 months ago

But not after every reboot or?

pawlizio commented 10 months ago

No, the unique_id logic was just changed in the last update. It will not happen after each reboot, just after the first after the last update installation.

evilmumi commented 10 months ago

Today I've got 2 devices back one with entities one without but with connection to my automations. image