fuatakgun / eufy_security

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

Light switch not working (eufyCam 2C Pro) #1202

Closed Vinz87 closed 2 days ago

Vinz87 commented 2 months ago

Describe the bug

Turning on Light switch, the camera's light goes on briefly, then turns immediately off, while Light switch in HA remains on.

To reproduce

Steps to reproduce the behavior:

  1. Turn on Light switch of a camera

Expected behavior

Camera's light to go on and stay on, reflecting HA switch state.

Additional information

Go to Settings -> System -> Repairs -> Click on 3 dots (...) -> System Information and get Version and Installation Type to below fields;

Hardware Information;

moryoav commented 2 months ago

Perhaps I'm having the same issue - I have the Outdoor Cam E220, I can switch it on from Home Assistant, but the switch turns off automatically after a second. The light doesn't actually turn on in the camera. this is what I see in the debug log:

2024-09-16 10:56:21.228 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - device - EventSourceType.product - device.set_property - {'domain': 'device', 'serial_no': 'T8441P122402159B', 'name': 'light', 'value': True} - {'name': 'light', 'value': True, 'serialNumber': 'T8441P122402159B'}
2024-09-16 10:56:21.229 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'name': 'light', 'value': True, 'serialNumber': 'T8441P122402159B', 'command': 'device.set_property', 'messageId': 'device.set_property.2abf9218e497488f84f77b33f1f7a063'}
2024-09-16 10:56:21.229 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'name': 'light', 'value': True, 'serialNumber': 'T8441P122402159B', 'command': 'device.set_property', 'messageId': 'device.set_property.2abf9218e497488f84f77b33f1f7a063'}
2024-09-16 10:56:21.230 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.set_property.2abf9218e497488f84f77b33f1f7a063', 'result': {'async': True}}
sloanlipman commented 2 months ago

I think this is the same as I reported in https://github.com/fuatakgun/eufy_security/issues/1209

Interestingly, I also have Eufy Security linked directly into Google Home, and I see a similar sort of behavior. If I turn a light on, nothing happens. But if I turn it on AND adjust the brightness, it actually stays on.

moryoav commented 2 months ago

I think this is the same as I reported in #1209

Interestingly, I also have Eufy Security linked directly into Google Home, and I see a similar sort of behavior. If I turn a light on, nothing happens. But if I turn it on AND adjust the brightness, it actually stays on.

This led me to check it as well and it seems I can't change the brightness at all through the integration as well. So there's no way I can see to do on+brightness from home assistant in one command like that.

fuatakgun commented 2 days ago

https://github.com/fuatakgun/eufy_security/issues/1209#issuecomment-2495631088