fuatakgun / eufy_security

Home Assistant integration to manage Eufy Security devices as cameras, home base stations, doorbells, motion and contact sensors.
938 stars 79 forks source link

Eufy camera E220 and C120 none of the toggles in HA work #1225

Closed Dzoker2 closed 4 weeks ago

Dzoker2 commented 1 month ago

Hi,

i have multiple Eufy cameras (E220, C120) and they all have the same "issue". When using the toggle switch.bedroom_camera_enabled or switch.living_room_camera_enabled in the Controls section, it turns off and immediately turns on. Here is the debug log when attempting (twice per camera) to toggle that switch (I've replaced the serial number with CAMERA 1 & CAMERA 2).

2024-10-15 16:15:21.435 DEBUG (MainThread) [custom_components.eufy_security] image 1 - False - None 2024-10-15 16:15:21.435 DEBUG (MainThread) [custom_components.eufy_security] async_camera_image 5 - is_empty True 2024-10-15 16:15:22.913 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - device - EventSourceType.product - device.set_property - {'domain': 'device', 'serial_no': 'CAMERA 1', 'name': 'enabled', 'value': False} - {'name': 'enabled', 'value': False, 'serialNumber': 'CAMERA 1'} 2024-10-15 16:15:22.913 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'name': 'enabled', 'value': False, 'serialNumber': 'CAMERA 1', 'command': 'device.set_property', 'messageId': 'device.set_property.a71c737d909c49b884bb2e51efd8503a'} 2024-10-15 16:15:22.913 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'name': 'enabled', 'value': False, 'serialNumber': 'CAMERA 1', 'command': 'device.set_property', 'messageId': 'device.set_property.a71c737d909c49b884bb2e51efd8503a'} 2024-10-15 16:15:22.916 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.set_property.a71c737d909c49b884bb2e51efd8503a', 'result': {'async': True}} 2024-10-15 16:15:26.412 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - device - EventSourceType.product - device.set_property - {'domain': 'device', 'serial_no': 'CAMERA 1', 'name': 'enabled', 'value': False} - {'name': 'enabled', 'value': False, 'serialNumber': 'CAMERA 1'} 2024-10-15 16:15:26.414 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'name': 'enabled', 'value': False, 'serialNumber': 'CAMERA 1', 'command': 'device.set_property', 'messageId': 'device.set_property.eefa71952969483b8bfbf4635d6c2e8c'} 2024-10-15 16:15:26.414 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'name': 'enabled', 'value': False, 'serialNumber': 'CAMERA 1', 'command': 'device.set_property', 'messageId': 'device.set_property.eefa71952969483b8bfbf4635d6c2e8c'} 2024-10-15 16:15:26.417 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.set_property.eefa71952969483b8bfbf4635d6c2e8c', 'result': {'async': True}} 2024-10-15 16:15:33.352 DEBUG (MainThread) [custom_components.eufy_security] image 1 - False - None 2024-10-15 16:15:33.352 DEBUG (MainThread) [custom_components.eufy_security] async_camera_image 5 - is_empty True 2024-10-15 16:15:34.420 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - device - EventSourceType.product - device.set_property - {'domain': 'device', 'serial_no': 'CAMERA 2', 'name': 'enabled', 'value': False} - {'name': 'enabled', 'value': False, 'serialNumber': 'CAMERA 2'} 2024-10-15 16:15:34.420 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'name': 'enabled', 'value': False, 'serialNumber': 'CAMERA 2', 'command': 'device.set_property', 'messageId': 'device.set_property.bf649f8d305a4303aaeb949650df6874'} 2024-10-15 16:15:34.420 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'name': 'enabled', 'value': False, 'serialNumber': 'CAMERA 2', 'command': 'device.set_property', 'messageId': 'device.set_property.bf649f8d305a4303aaeb949650df6874'} 2024-10-15 16:15:34.424 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.set_property.bf649f8d305a4303aaeb949650df6874', 'result': {'async': True}} 2024-10-15 16:15:37.708 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - device - EventSourceType.product - device.set_property - {'domain': 'device', 'serial_no': 'CAMERA 2', 'name': 'enabled', 'value': False} - {'name': 'enabled', 'value': False, 'serialNumber': 'CAMERA 2'} 2024-10-15 16:15:37.709 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'name': 'enabled', 'value': False, 'serialNumber': 'CAMERA 2', 'command': 'device.set_property', 'messageId': 'device.set_property.283b62db875d4e67867112cd005008c0'} 2024-10-15 16:15:37.709 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'name': 'enabled', 'value': False, 'serialNumber': 'CAMERA 2', 'command': 'device.set_property', 'messageId': 'device.set_property.283b62db875d4e67867112cd005008c0'} 2024-10-15 16:15:37.711 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.set_property.283b62db875d4e67867112cd005008c0', 'result': {'async': True}}

As a matter of fact, all the toggles in the "Controls" and "Configuration" sections behave the same, they turn off and immediately turn on. none of the toggles have any affect on the cameras.

Thank you

clarky860 commented 4 weeks ago

try this https://github.com/fuatakgun/eufy_security/issues/1165#issuecomment-2203464428

Dzoker2 commented 4 weeks ago

Hi @clarky860, your link leads to nothing!

thx

clarky860 commented 4 weeks ago

Try now link

Dzoker2 commented 4 weeks ago

@clarky860, thank you for the fast reply and thank you for the FIX! It works now :-)