Hi! Rookie here
First of, thanks for great integration @anon63427907!
I’m really new with HA and with this integration and I (maybe?) found a problem? Or at least need help.
Issue is that I would want to turn motion detection off in automation. Problem is that for some reason my switch request end up in error.
So when I click this switch to off, it doesn’t work.
Log reveals following
2023-12-05 20:09:12.107 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'name': 'motionDetection', 'value': False, 'serialNumber': 'T811111111111111', 'command': 'device.set_property', 'messageId': 'device.set_property.7bd779019d3840189d48c18a32dfbc4c'}
2023-12-05 20:09:12.107 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'name': 'motionDetection', 'value': False, 'serialNumber': 'T811111111111111', 'command': 'device.set_property', 'messageId': 'device.set_property.7bd779019d3840189d48c18a32dfbc4c'}
2023-12-05 20:09:12.114 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.set_property.7bd779019d3840189d48c18a32dfbc4c', 'result': {'async': True}}
2023-12-05 20:09:32.233 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'station', 'event': 'connection error', 'serialNumber': 'T811111111111111'}}
2023-12-05 20:09:43.556 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'station', 'event': 'connected', 'serialNumber': 'T811111111111111'}}
2023-12-05 20:09:43.920 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'command result', 'serialNumber': 'T811111111111111', 'command': 'set_property', 'returnCode': -5, 'returnCodeName': 'ERROR_PPCS_INVALID_PARAMETER', 'customData': {'property': {'name': 'motionDetection', 'value': False}}}}
But weird thing is that for example Motion Detection Sensitivity change worked → so prove that something works
2023-12-05 20:13:28.156 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'name': 'motionDetectionSensitivity', 'value': 6, 'serialNumber': 'T811111111111111', 'command': 'device.set_property', 'messageId': 'device.set_property.5f0ae559244a4e669c9c37a15079e6ab'}
2023-12-05 20:13:28.156 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'name': 'motionDetectionSensitivity', 'value': 6, 'serialNumber': 'T811111111111111', 'command': 'device.set_property', 'messageId': 'device.set_property.5f0ae559244a4e669c9c37a15079e6ab'}
2023-12-05 20:13:28.162 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.set_property.5f0ae559244a4e669c9c37a15079e6ab', 'result': {'async': True}}
2023-12-05 20:13:31.662 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'station', 'event': 'connected', 'serialNumber': 'T811111111111111'}}
2023-12-05 20:13:33.413 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'property changed', 'serialNumber': 'T811111111111111', 'name': 'motionDetectionSensitivity', 'value': 6}}
2023-12-05 20:13:33.414 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] camera _handle_property_changed - motionDetectionSensitivity
2023-12-05 20:13:33.426 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'command result', 'serialNumber': 'T811111111111111', 'command': 'set_property', 'returnCode': 0, 'returnCodeName': 'ERROR_PPCS_SUCCESSFUL', 'customData': {'property': {'name': 'motionDetectionSensitivity', 'value': 6}}}}
Unfortunately I was not able to figure out what is the reason for ERROR_PPCS_INVALID_PARAMETER. Anyone experienced similar? I didn’t find similar issues earlier in this thread. I appreciate any help from anyone!