Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Motion detection and Human detection not works in my home assitant #139

Open
malloc32 opened this issue Jan 19, 2025 · 0 comments
Open

Motion detection and Human detection not works in my home assitant #139

malloc32 opened this issue Jan 19, 2025 · 0 comments

Comments

@malloc32
Copy link

malloc32 commented Jan 19, 2025

Hello

Version is 1.0.15

Home Assistant core: 2025.1.2
Supervisor 2024.12.3
Operating system 14.1
Frontend 20250109.0

Cameras are bullet 3, IPC-S3E-3M0WE They has the feature Human detection.

Describe the bug

I have problems to turn on motion detection and human detection.

  • I turn on motion detection, but Imou app does not refresh the new state.
  • When turn on "Human detection" then Home assitant shows an Unknown error. (40999)

Debug log

2025-01-19 20:29:30.790 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139981205818528] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/core.py", line 2795, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2838, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1006, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1078, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/imou_life/switch.py", line 75, in async_turn_off
await self.sensor_instance.async_turn_off()
File "/usr/local/lib/python3.13/site-packages/imouapi/device_entity.py", line 346, in async_turn_off
await self.api_client.async_api_setDeviceCameraStatus(self._device_id, self._name, False)
File "/usr/local/lib/python3.13/site-packages/imouapi/api.py", line 372, in async_api_setDeviceCameraStatus
return await self._async_call_api(api, payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/imouapi/api.py", line 227, in _async_call_api
raise APIError(error_message)
imouapi.exceptions.APIError: 40999: Unknown error.
2025-01-19 20:29:51.939 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139981205818528] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/core.py", line 2795, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2838, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1006, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1078, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/imou_life/switch.py", line 63, in async_turn_on
await self.sensor_instance.async_turn_on()
File "/usr/local/lib/python3.13/site-packages/imouapi/device_entity.py", line 328, in async_turn_on
await self.api_client.async_api_setDeviceCameraStatus(self._device_id, self._name, True)
File "/usr/local/lib/python3.13/site-packages/imouapi/api.py", line 372, in async_api_setDeviceCameraStatus
return await self._async_call_api(api, payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/imouapi/api.py", line 227, in _async_call_api
raise APIError(error_message)
imouapi.exceptions.APIError: 40999: Unknown error.
2025-01-19 20:29:54.122 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139981205818528] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/core.py", line 2795, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2838, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1006, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1078, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/imou_life/switch.py", line 75, in async_turn_off
await self.sensor_instance.async_turn_off()
File "/usr/local/lib/python3.13/site-packages/imouapi/device_entity.py", line 346, in async_turn_off
await self.api_client.async_api_setDeviceCameraStatus(self._device_id, self._name, False)
File "/usr/local/lib/python3.13/site-packages/imouapi/api.py", line 372, in async_api_setDeviceCameraStatus
return await self._async_call_api(api, payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/imouapi/api.py", line 227, in _async_call_api
raise APIError(error_message)
imouapi.exceptions.APIError: 40999: Unknown error.
2025-01-19 20:42:24.229 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139981205818528] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/core.py", line 2795, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2838, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1006, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1078, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/imou_life/switch.py", line 63, in async_turn_on
await self.sensor_instance.async_turn_on()
File "/usr/local/lib/python3.13/site-packages/imouapi/device_entity.py", line 328, in async_turn_on
await self.api_client.async_api_setDeviceCameraStatus(self._device_id, self._name, True)
File "/usr/local/lib/python3.13/site-packages/imouapi/api.py", line 372, in async_api_setDeviceCameraStatus
return await self._async_call_api(api, payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/imouapi/api.py", line 227, in _async_call_api
raise APIError(error_message)
imouapi.exceptions.APIError: 40999: Unknown error.

Image

Image

Image

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant