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.31k stars 30.62k forks source link

Unifi protect motion sensor/switch unavailable when Recording is disabled on a camera #93847

Closed Robbe-B closed 1 year ago

Robbe-B commented 1 year ago

The problem

I'm not entirely sure if this has something to do with the integration. But let me explain it anyway. I have these G3 Instant cameras inside my house since forever. Those are integrated in Unifi Protect and set to never record any footage. They are just used for live view and also motion detection. But now the motion sensing is unavailable trough HA as long as the camera is set to "Never Recording" (I have no clue since when, probably Unifi or HA update) In the unifi dashboard itself, I can still see the last motion events even if the cam is not recording any footage. This is a pity since my motion based automations stopped working.

Unifi Controller: UDM Pro v3.0.20 Unifi Protect Version: v2.7.34

What version of Home Assistant Core has the issue?

core-2023.5.4

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

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

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

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.

(message by CodeOwnersMention)


unifiprotect documentation unifiprotect source (message by IssueLinks)

AngellusMortis commented 1 year ago

Dupe of https://github.com/home-assistant/core/issues/89157 and https://github.com/home-assistant/core/issues/83912#issuecomment-1376061354

AngellusMortis commented 1 year ago

@home-assistant close

Robbe-B commented 1 year ago

@AngellusMortis thats not it , Privacy mode is off, disabled

AngellusMortis commented 1 year ago

Read the comments. Entities are disabled when they are not capable of detecting events. If you disable recording, no motion events are triggered and therefore the camera does not detect motion.

Robbe-B commented 1 year ago

Wait what :D, this functionality is removed ? Why is it still working inside the unifi protect dashboards then ?
image

Robbe-B commented 1 year ago

Oh nevermind, for the "Last Motion Detected" sensor this is still working, if you enable it yourself again. image

@AngellusMortis thanks for the clarification 😄