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
69.86k stars 28.96k forks source link

UniFi Protect shows cameras managed by another console. #118278

Open iclanton opened 1 month ago

iclanton commented 1 month ago

The problem

Cameras that are managed by another console show up in UniFi protect.

I have two devices running Protect, a UNVR and UCKP. The UNVR hosts security cameras around my house, and the UCKP has a few other cameras used for things like recording 3D print jobs for later analysis in case of a failure. I have both consoles set up in Home Assistant. They both see each other's cameras, and the HA integration lists devices managed by another console, so the camera devices in HA are polluted by the data provided by the other Protect console. For example, the name of the camera is taken from the console that isn't managing it, so it'll show up as the camera's model name instead of its label.

Explicitly removing the device from the non-managing instance of the UniFi Protect integration doesn't work long-term, as it comes back within a day.

See screenshot below: image

What version of Home Assistant Core has the issue?

core-2024.5.5

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

Diagnostics information

UCKP - config_entry-unifiprotect-e1d8b58867c5b69ff1cd628853832f9c.json UNVR - config_entry-unifiprotect-06d2cbf4d3d61bcf9900f721bf532b91.json

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 1 month ago

Hey there @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!

Code owner commands Code owners of `unifiprotect` 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 unifiprotect` 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)


unifiprotect documentation unifiprotect source (message by IssueLinks)