E1 Zoom: 'enable' in "GetAlarm" response is set to 1602
See original GitHub issueHey there,
I was wondering why the motion detection for my E1 Zoom is not working in Home Assistant, neither does en/disabling it work (also made a post here: https://community.home-assistant.io/t/reolink-dev-cant-get-motion-detection-to-work-e1-zoom/217271).
I dug a bit and logged the response of get_settings
and turns out that data["value"]["Alarm"]["enable"]
is set to 1602 for my E1 Zoom!?
So an easy fix was replacing the check here: https://github.com/fwestenberg/reolink/blob/master/custom_components/reolink_dev/ReolinkPyPi/camera.py#L113
with if (data["value"]["Alarm"]["enable"] >= 1):
.
This fixed the motion detection in HA: binary_sensor is triggered and the motion detection switch is also set to on
.
However, what still doesn’t work is disabling the motion detection and that’s where I’m stuck a bit:
I logged the response of set_motion_detection
and it looks fine:
[
{
"cmd" : "SetAlarm",
"code" : 0,
"value" : {
"rspCode" : 200
}
}
]
But when get_settings
is called right after, data["value"]["Alarm"]["enable"]
is still set to 1602… Is something wrong with my E1 Zoom? Any other people with that camera with the same issue?
Bought the camera a few days ago, device info attached as screen shot from the Reolink app:
Also attached an example response of get_settings
: get_settings.txt
Any ideas?
Greetings,
Andy!
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (6 by maintainers)
Please check v0.8. Should be fixed!
I have the same problem with my E1 Zoom. Thank you for your investigation and update posts. Weired thing: it used to work for me