Open Vinz87 opened 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}}
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.
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.
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:
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;
Camera Model: eufyCam 2C Pro
Debug Logs from Home Assistant (https://github.com/fuatakgun/eufy_security/discussions/624) - Without this, I will automatically resolve this issue
2024-09-11 22:44:51.642 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - device - EventSourceType.product - device.set_property - {'domain': 'device', 'serial_no': 'T8142T7224170EA6', 'name': 'light', 'value': True} - {'name': 'light', 'value': True, 'serialNumber': 'T8142T7224170EA6'} 2024-09-11 22:44:51.644 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'name': 'light', 'value': True, 'serialNumber': 'T8142T7224170EA6', 'command': 'device.set_property', 'messageId': 'device.set_property.916f262bee434e83bec7f306eea45a8f'} 2024-09-11 22:44:51.648 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'name': 'light', 'value': True, 'serialNumber': 'T8142T7224170EA6', 'command': 'device.set_property', 'messageId': 'device.set_property.916f262bee434e83bec7f306eea45a8f'} 2024-09-11 22:44:52.257 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.set_property.916f262bee434e83bec7f306eea45a8f', 'result': {'async': True}} 2024-09-11 22:44:54.043 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'property changed', 'serialNumber': 'T8142T7224170EA6', 'name': 'light', 'value': True}} 2024-09-11 22:44:54.054 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] camera _handle_property_changed - light 2024-09-11 22:44:54.181 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'property changed', 'serialNumber': 'T8142T7224170EA6', 'name': 'light', 'value': False}} 2024-09-11 22:44:54.181 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] camera _handle_property_changed - light 2024-09-11 22:44:55.650 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'property changed', 'serialNumber': 'T8142T7224170EA6', 'name': 'light', 'value': True}} 2024-09-11 22:44:55.651 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] camera _handle_property_changed - light 2024-09-11 22:44:55.685 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'command result', 'serialNumber': 'T8142T7224170EA6', 'command': 'set_property', 'returnCode': 0, 'returnCodeName': 'ERROR_PPCS_SUCCESSFUL', 'customData': {'property': {'name': 'light', 'value': True}}}} 2024-09-11 22:44:55.686 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] event not handled -T8142T7224170EA6 - Event(type='command result', data={'source': 'device', 'event': 'command result', 'serialNumber': 'T8142T7224170EA6', 'command': 'set_property', 'returnCode': 0, 'returnCodeName': 'ERROR_PPCS_SUCCESSFUL', 'customData': {'property': {'name': 'light', 'value': True}}}) 2024-09-11 22:45:49.320 DEBUG (MainThread) [custom_components.eufy_security] image 1 - False - None 2024-09-11 22:45:49.320 DEBUG (MainThread) [custom_components.eufy_security] async_camera_image 5 - is_empty False 2024-09-11 22:45:49.320 DEBUG (MainThread) [custom_components.eufy_security] async_camera_image 6 - 15840
Logs from Eufy Security Add-on (either from Add-ons page of Home Assistant or Docker output): nothing at the time of the issue