I’m struggling to get any motion sensor information from my Foscam C1. I have it set up to high sensitivity and ensured that no zones are blocked on the camera software.
I have it installed on a tinkerboard, stright in, no special setup like docker, etc.
Looked at log;
Only bit I think may refer to the camera sensor is possibly this;
File “/usr/local/lib/python3.7/site-packages/requests/sessions.py”, line 546, in get
return self.request(‘GET’, url, **kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/sessions.py”, line 533, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/sessions.py”, line 646, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/adapters.py”, line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: (‘Connection aborted.’, OSError("(104, ‘ECONNRESET’)"))
can you SSH into the hassio container itself and try to run the command from there? maybe it’s a permission error from running the command from the container itself.
OK, so are you saying that the sensor itself is working but the camera motion sensor itself never actually gets triggered (<motionDetectAlarm> never goes to 2)?
Or that the camera motion detection itself gets triggered but the sensor never shows the state as “Detected”?
And I’m not sure which code you are using for the sensor because the code I gave you will never result in the state of “Off”. Only “Disabled”, “None”, “Detected” or “Not Determined”.
Those results show that even tho you have the motion detection enabled you don’t have any times scheduled for the motion detection to actually run (all of the <schedule> lines are 0).
you can change that in a couple of ways depending on what you are most comfortable with.
you can go to the camera’s web ui and select the schedule for the motion detection there. I think if I remember correctly that the schedule block needs to be red in order for it to “activated”. That confused me at first too.
Or since you seem OK with the command line and you just want to turn on the schedule for 24/7 then just run the following command with your details:
once you run that command then re-run the previous “getMotionDetectConfig” command and you should see the new schedules show up and motion detection should (hopefully) work.