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
71.05k stars 29.72k forks source link

Removed Unifi Camera in Unifi Protect still listed as HA Device & cannot be removed nor disappears #65555

Closed joergbattermann closed 2 years ago

joergbattermann commented 2 years ago

The problem

Removed a Unifi G4 Dome camera days ago from my Unifi Protect / Cloud Key Gen2 setup, however the Unifi Protect HA integration still lists the device and there is no way to remove it. Restarting HA (core and also the system and also Unifi Protect) did NOT help.

Is there any way I can remove the device from my HA setup without removing the ingration and re-adding it doing all the setup and automations etc etc over and over again?

What version of Home Assistant Core has the issue?

core-2022.2.0

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

Unifi Protect

Link to integration documentation on our website

https://www.home-assistant.io/integrations/unifiprotect

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

unifiprotect documentation unifiprotect source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @briis, @angellusmortis, @bdraco, mind taking a look at this issue as it has been labeled with an integration (unifiprotect) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

bdraco commented 2 years ago

We don't have support for removing devices that have been removed from Unifi Protect automatically in Home Assistant. You'll have to remove and re-add the integration until we add support for this.

Thank you for reaching out. We use GitHub for tracking issues, not for providing support or tracking feature requests.

If you want to suggest a feature, you should try our Community Forum: Feature Requests.

If you have additional questions, feel free to join our Discord chat server.

Thanks! 👍

AngellusMortis commented 2 years ago

You should also be able to disable the device to make it no longer visible to the UI (unless you turn off the filter):

image

joergbattermann commented 2 years ago

The actual reason for me to wanting to remove the device (from HA and Unifi protect) was that apparently renaming a device in Unifi Protect did not go well with the unifiprotect HA integration.. as I then had (I think I remember that correctly) some entities of the device twice, some just one time... but I cannot and do not want to reproduce it on my 'real' HA system...

But anyway, there are some lingering entities pre-rename and my attempt to remove did not go well.. so disabling and leaving even more entities (disabled or not) certainly does not help either.

But at least I know that there's no way to remove, thanks

AngellusMortis commented 2 years ago

The orphaned entities can be removed manually one at a time. If you click on them, there should be a button to delete the entity from the settings page for the entity. After you remove all of the entities for the device, it should not cause any more issues.

image