eufy_security icon indicating copy to clipboard operation
eufy_security copied to clipboard

Integration configuration window is rendered wrong

Open eranvana opened this issue 1 year ago • 12 comments

hello I have Eufy Doorbell and I installed eufy-security-ws and everything worked great. Yesterday I removed the and reinstalled and the integration just doesn't connect. What did I do wrong? Please help me to install successfully Thanks

346631821_1905646443146933_1923380603464623070_n 346324042_1222325821767670_2115166428458746403_n 346331896_970991400921028_9021021547933964800_n 345611688_635464201312551_2172202772124321311_n 346590837_245831544694308_3772604993585645830_n

eranvana avatar May 11 '23 06:05 eranvana

Same here

0R2YPsALXTVed6y avatar May 11 '23 09:05 0R2YPsALXTVed6y

Same here

StijnQ avatar May 11 '23 21:05 StijnQ

try unchecking then rechecking the ffmpeg logs button. Or just leave it unchecked. That has worked for in the past. I dont know that the other issue is related to the ffmpeg thing. I get stuck also where your at. Rolling back or installing eufy ws 1.35 is the only way currently I have found to get it working again. 1.41 and 1.51 are producing the same issues for me.

kdill00 avatar May 12 '23 18:05 kdill00

+1 on the above about unchecking the FFMPEG because that worked for me with a Eufy camera but, I'm also having an issue with integrating the Eufy doorbell since I got it 2 days ago. Unchecking the FFMPEG doesn't resolve it for me in this case.

c0nt4x avatar May 16 '23 12:05 c0nt4x

Same here.

itaysp avatar Jun 04 '23 06:06 itaysp

+1 (After update to v6.3.0)

2023-06-12 03:19:55.782 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] on_open - executed 2023-06-12 03:19:55.783 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - server - EventSourceType.server - set_api_schema - {'schema_version': 17} - {'schemaVersion': 17} 2023-06-12 03:19:55.783 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'schemaVersion': 17, 'command': 'set_api_schema', 'messageId': 'set_api_schema.d07f151dc6d04bf19874697256b2e91a'} 2023-06-12 03:19:55.783 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'schemaVersion': 17, 'command': 'set_api_schema', 'messageId': 'set_api_schema.d07f151dc6d04bf19874697256b2e91a'} 2023-06-12 03:19:55.784 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'version', 'driverVersion': '2.4.0', 'serverVersion': '1.3.0', 'minSchemaVersion': 0, 'maxSchemaVersion': 16} 2023-06-12 03:19:55.801 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': False, 'messageId': 'set_api_schema.d07f151dc6d04bf19874697256b2e91a', 'errorCode': '**schema_incompatible**'}

2023-06-12 03:19:55.801 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 127.0.0.1 for eufy_security
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/eufy_security/__init__.py", line 50, in async_setup_entry
    await coordinator.initialize()
  File "/config/custom_components/eufy_security/coordinator.py", line 39, in initialize
    await self._api.connect()
  File "/config/custom_components/eufy_security/eufy_security_api/api_client.py", line 72, in connect
    await self._set_schema(SCHEMA_VERSION)
  File "/config/custom_components/eufy_security/eufy_security_api/api_client.py", line 150, in _set_schema
    await self._send_message_get_response(OutgoingMessage(OutgoingMessageType.set_api_schema, schema_version=schema_version))
  File "/config/custom_components/eufy_security/eufy_security_api/api_client.py", line 350, in _send_message_get_response
    return await future
           ^^^^^^^^^^^^

custom_components.eufy_security.eufy_security_api.exceptions.FailedCommandException: {'type': 'result', 'success': False, 'messageId': 'set_api_schema.d07f151dc6d04bf19874697256b2e91a', 'errorCode': 'schema_incompatible'} ``

dewoert avatar Jun 12 '23 01:06 dewoert

@dewoert please move into bropat's version of add-on (Current version: 1.5.2)

fuatakgun avatar Jun 12 '23 04:06 fuatakgun

After update to 6.3.0 with bropat's 1.5.2 This error originated from a custom integration.

Source: custom_components/eufy_security/eufy_security_api/api_client.py:350
Integration: Eufy Security (documentation, issues)
First occurred: 07:07:28 (1 occurrences)
Last logged: 07:07:28

Error setting up entry 127.0.0.1 for eufy_security
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/eufy_security/__init__.py", line 50, in async_setup_entry
    await coordinator.initialize()
  File "/config/custom_components/eufy_security/coordinator.py", line 39, in initialize
    await self._api.connect()
  File "/config/custom_components/eufy_security/eufy_security_api/api_client.py", line 73, in connect
    await self._set_products()
  File "/config/custom_components/eufy_security/eufy_security_api/api_client.py", line 100, in _set_products
    result = await self._start_listening()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/eufy_security/eufy_security_api/api_client.py", line 147, in _start_listening
    return await self._send_message_get_response(OutgoingMessage(OutgoingMessageType.start_listening))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/eufy_security/eufy_security_api/api_client.py", line 350, in _send_message_get_response
    return await future
           ^^^^^^^^^^^^
asyncio.exceptions.CancelledError

I get verification code in the mail but I don't have where to put it because the integration fails

eufy-security-ws logs

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
2023-06-12 03:46:12.650  INFO  Eufy Security server listening on host 0.0.0.0, port 3000 
2023-06-12 03:46:13.249  INFO  Requested verification code for 2FA 
2023-06-12 03:48:18.594  INFO  Client disconnected with ip: 127.0.0.1 port: 35682 code: 1000 reason: Normal Closure 
2023-06-12 03:50:08.845  INFO  Client disconnected with ip: 127.0.0.1 port: 60360 code: 1000 reason: Normal Closure 
2023-06-12 04:01:55.064  INFO  Client disconnected with ip: 127.0.0.1 port: 60372 code: 1006 reason: Abnormal Closure 
2023-06-12 04:01:55.071  INFO  Client disconnected with ip: 127.0.0.1 port: 35696 code: 1006 reason: Abnormal Closure 

itaysp avatar Jun 12 '23 04:06 itaysp

Please follow #795

fuatakgun avatar Jun 12 '23 05:06 fuatakgun

@dewoert please move into bropat's version of add-on (Current version: 1.5.2)

Removed and installed the bropat add-on, and that working now. Only left with issue with the true/false in the RTSP stream. Looking into that issue now. Saw allready other info about it.

dewoert avatar Jun 12 '23 09:06 dewoert

I do not have a solution for true/false in config window, please manually update /config/.storage/core.config_entries file carefully.

fuatakgun avatar Jun 13 '23 11:06 fuatakgun

I do not have a solution for true/false in config window, please manually update /config/.storage/core.config_entries file carefully.

i would but i cant seem to find that file

EDIT i now realize its a "hidden" file. i am not good at linux at all and not comfortable in command line editors. i will have to see if there is a easier/safer way for me to find that file and edit it.

perhaps its time to get a new doorbell cam :(

EDIT 2 i found the file and was able to change the "false" to the ip address however after i did that my HA would not fully boot up. i could see the terminal was up and supervisor started but could not access my HA at my normal address or the local address either. i was able to revert my change and HA now boots up. could you post a pic of the code you changed? perhaps the whole section as maybe there is another change that needs to be made?

Menz01 avatar Jun 13 '23 12:06 Menz01