I'm trying to install the Eufy Security Integration as described in the manual, but I run into an unknown error when submitting my IP and port information.
To reproduce
Steps to reproduce the behavior:
Install Eufy Security Add-on
Verify Eufy Security Add-on running (port 3000) with configuration
Install RTSP Simple Server Add-on
InstallEufy Security Integration
Fill in host/port and submit
Expected behavior
Expect the integration to be configured.
Additional information
Homeassistant versions
Home Assistant 2023.7.3
Supervisor 2023.07.1
Operating System 10.3
This error originated from a custom integration.
Logger: aiohttp.server
Source: custom_components/eufy_security/config_flow.py:112
Integration: Eufy Security (documentation, issues)
First occurred: 7:03:16 PM (2 occurrences)
Last logged: 7:03:21 PM
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 181, in post
return await super().post(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 297, in async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 393, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/eufy_security/config_flow.py", line 89, in async_step_user
valid = await self._test_credentials(user_input[ConfigField.host.name], user_input[ConfigField.port.name])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/eufy_security/config_flow.py", line 112, in _test_credentials
api_client: ApiClient = ApiClient(config, aiohttp_client.async_get_clientsession(self.hass))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ApiClient.__init__() missing 1 required positional argument: 'on_error_callback'
HA Logging:
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 145, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 180, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 253, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 335, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/eufy_security/config_flow.py", line 89, in async_step_user
valid = await self._test_credentials(user_input[ConfigField.host.name], user_input[ConfigField.port.name])
File "/config/custom_components/eufy_security/config_flow.py", line 112, in _test_credentials
api_client: ApiClient = ApiClient(config, aiohttp_client.async_get_clientsession(self.hass))
TypeError: ApiClient.__init__() missing 1 required positional argument: 'on_error_callback'
No errors in Eufy Security Add-on. However I did notice the add-on was started on 0.0.0.0. So I tried this IP as well in the config.
Logs from Eufy Security Add-on (either from Add-ons page of Home Assistant or Docker output):
Would you share your device with me in case further debugging required? (Yes/No):
Yes
Describe the bug
I'm trying to install the Eufy Security Integration as described in the manual, but I run into an unknown error when submitting my IP and port information.
To reproduce
Steps to reproduce the behavior:
Expected behavior
Expect the integration to be configured.
Additional information
Homeassistant versions Home Assistant 2023.7.3 Supervisor 2023.07.1 Operating System 10.3
Eufy Security Add-on Version: 1.5.2-1
Eufy Security Integration Version: v6.3.2
Hardware Information;
HomeBridge 3
EufyCam 3
Live Streaming Protocol (RTSP/P2P): Tried both
Debug Logs from Home Assistant (https://github.com/fuatakgun/eufy_security/discussions/624) This is in the eufy-security-ws logs:![image](https://github.com/fuatakgun/eufy_security/assets/47896624/1aaef061-8843-4f7a-82c0-2b0d8ffbff56)
And this in the HA debug logs.
HA Logging:
No errors in Eufy Security Add-on. However I did notice the add-on was started on 0.0.0.0. So I tried this IP as well in the config.
Logs from Eufy Security Add-on (either from Add-ons page of Home Assistant or Docker output):
Would you share your device with me in case further debugging required? (Yes/No): Yes