core
core copied to clipboard
Fibaro integration not removing devices in HA
The problem
The Fibaro integration now creates Devices in HA which is very good. But when I remove a device completely from Home Center 2, it does not reflect this and removes the device in HA. The entities are being disabled but still exists - they can be removed in HA manually - but the Device is not removeble as I can see.
What version of Home Assistant Core has the issue?
Home Assistant 2022.8.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
Fibaro
Link to integration documentation on our website
https://www.home-assistant.io/integrations/fibaro
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Cannot find anything usable, but can provide logs if needed. Hopefully this error should be easy to test and replicate for the integration owner.
Additional information
No response
fibaro documentation fibaro source (message by IssueLinks)
Hey there @rappenze, mind taking a look at this issue as it has been labeled with an integration (fibaro
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
You are right, the fibaro integration currently does not remove entities nor devices from the registry if they do not exist anymore. This is an optional feature which needs to be implemented by each integration separately. HA provides methods to remove devices / entities from the registry but does not support in finding entities / devices which are not delivered anymore by the API.
See also here for some detailed discussion: https://community.home-assistant.io/t/how-can-i-delete-devices-i-dont-want-in-ha/236080/21
Any help in implementing that feature is very welcome.
The workaround is to remove and add the fibaro integration again, but I'm aware that this solution is not what you like to hear. At least the fibaro integration creates stable unique ids for entities so you should not loose your manual configurations.
I understand. When reading the discussion I don’t find a manual way to delete the Device – is that correct? I don’t have the skills to implement this feature either, is there anyone else we can ask for help?
Removing and re-adding the integration will work as you say, but I have modified the names a bit too much for this to be worth it 😊
From: rappenze @.> Sent: 09 August 2022 22:43 To: home-assistant/core @.> Cc: Johan Schelin @.>; Author @.> Subject: Re: [home-assistant/core] Fibaro integration not removing devices in HA (Issue #76495)
You are right, the fibaro integration currently does not remove entities nor devices from the registry if they do not exist anymore. This is an optional feature which needs to be implemented by each integration separately. HA provides methods to remove devices / entities from the registry but does not support in finding entities / devices which are not delivered anymore by the API.
See also here for some detailed discussion: https://community.home-assistant.io/t/how-can-i-delete-devices-i-dont-want-in-ha/236080/21
Any help in implementing that feature is very welcome.
The workaround is to remove and add the fibaro integration again, but I'm aware that this solution is not what you like to hear. At least the fibaro integration creates stable unique ids for entities so you should not loose your manual configurations.
— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/76495#issuecomment-1209864365, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APTUQJQ6JL2GRVHWT6XRAPDVYK7FJANCNFSM556VOWLQ. You are receiving this because you authored the thread.Message ID: @.@.>>
According to https://community.home-assistant.io/t/how-to-delete-a-device-entity-in-ha/348754/8 it should be possible to delete devices when they are not detected anymore by the pencil in the upper right corner. So are you sure that the devices are completely removed in fibaro and also you did a restart of HA afterwards to reflect the changes in fibaro as well in HA? Then it should really be possible to delete the device as well.
The problem is in the integration which still populates the device somehow. Removing the device is not available with the pencil.
Removing and readding the integration should solve it but I have too many modifications on the devices so it is too much work atm.
Från: rappenze @.> Skickat: Tuesday, October 11, 2022 8:44:56 PM Till: home-assistant/core @.> Kopia: Johan Schelin @.>; Author @.> Ämne: Re: [home-assistant/core] Fibaro integration not removing devices in HA (Issue #76495)
According to https://community.home-assistant.io/t/how-to-delete-a-device-entity-in-ha/348754/8 it should be possible to delete devices when they are not detected anymore by the pencil in the upper right corner. So are you sure that the devices are completely removed in fibaro and also you did a restart of HA afterwards to reflect the changes in fibaro as well in HA? Then it should really be possible to delete the device as well.
— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/76495#issuecomment-1275124346, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APTUQJSJNOWUZHKQY3RQNTDWCWYSRANCNFSM556VOWLQ. You are receiving this because you authored the thread.Message ID: @.***>