home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.67k stars 30.8k forks source link

Knx Covers loose their Labels when knx Router is offline during a Power loss. #121867

Open pos-ei-don opened 4 months ago

pos-ei-don commented 4 months ago

The problem

I love Labels ans use them to Decide which Covers should be close in the evening. Yesterday, the knx Router got offline and so my Devices got unavailable for a short time the Problem for me is that all Labels are lost. No Cover moved down this evening.

What version of Home Assistant Core has the issue?

2024-07-2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Core

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 3 months ago

Hey there @julius2342, @farmio, @marvin-w, mind taking a look at this issue as it has been labeled with an integration (knx) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `knx` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign knx` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


knx documentation knx source (message by IssueLinks)

farmio commented 3 months ago

Hi 👋! I can't reproduce this on my local test setup. @pos-ei-don can you provide steps how to reproduce this issue?

Also, I think from an integration point of view there is nothing to do regarding labels, is there @joostlek ?

joostlek commented 3 months ago

I would think only when an entity gets removed and added again I would think it would remove labels

farmio commented 3 months ago

Yeah, this is stored in entity registry, so since we use unique_id in knx entities it should be fine.

issue-triage-workflows[bot] commented 2 weeks ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

pos-ei-don commented 2 weeks ago

It seems that sometimes the interna unique-id gets lost. Sometimes, after a reboot, a Single entity gets recreated with _2 suffix. I think, this is the time when attributes and Labels get lost.

farmio commented 2 weeks ago

Have a look at https://www.home-assistant.io/integrations/knx/#duplicate-entities

pos-ei-don commented 2 weeks ago

I know that, and I had no change made as I was not at home. I just rebootet. But i think, this automatic calculation is not a good idea, at least it should be possible to overwrite this. At least this is the idea behind HA unique_id as I understand it. IT should be possible to change Group-Adresse without loosing al statistics and history data and without the need to Update all automationa.

farmio commented 2 weeks ago

I'd be happy to see a proposal for a better idea 😃

Statistics and history data are entity_id bound, not unique_id bound. You can change that in the more info dialog of the entity.