I have just started building out my HASS setup so unsure if this is new or when it came into play. When I try to switch off Smart Detections for Unifi Protect cameras - various models - I get an error saying the camera is using global settings even though that is no longer the case. I was originally using global settings for the cams but turned that off days ago, multiple restarts and the error is still present. Any ideas? Thanks!
error text:
Failed to call service switch/turn_off. Camera is using global recording settings.
What version of Home Assistant Core has the issue?
2024.7.3
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
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:241
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 7:14:29 PM (3 occurrences)
Last logged: 7:19:21 PM
[140487533865584] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2731, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2774, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 999, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1071, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/group/switch.py", line 145, in async_turn_off
await self.hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 2731, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2774, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1024, in entity_service_call
raise result from None
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1606, in async_request_call
return await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1071, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/unifiprotect/switch.py", line 491, in async_turn_off
await self.entity_description.ufp_set(self.device, False)
File "/usr/src/homeassistant/homeassistant/components/unifiprotect/models.py", line 110, in ufp_set
await getattr(obj, self.ufp_set_method)(value)
File "/usr/local/lib/python3.12/site-packages/uiprotect/data/devices.py", line 1334, in set_person_detection
return await self._set_object_detect(SmartDetectObjectType.PERSON, enabled)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/uiprotect/data/devices.py", line 2310, in _set_object_detect
raise BadRequest("Camera is using global recording settings.")
uiprotect.exceptions.BadRequest: Camera is using global recording settings.
The problem
I have just started building out my HASS setup so unsure if this is new or when it came into play. When I try to switch off Smart Detections for Unifi Protect cameras - various models - I get an error saying the camera is using global settings even though that is no longer the case. I was originally using global settings for the cams but turned that off days ago, multiple restarts and the error is still present. Any ideas? Thanks!
error text:
Failed to call service switch/turn_off. Camera is using global recording settings.
What version of Home Assistant Core has the issue?
2024.7.3
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
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response