I came across this great post about configuring an android phone as a web camera.
The docs for the android_ip_webcam component are a bit sparse. Should we be using the new component to configure camera? What’s the “right” way to configure android_ip_webcam?
Although the old way worked, using android_ip_webcam is much better and show many more features. The overlay has the wrong time showing. It is off by 1/2 hour which is odd. Not sure what sets that.
Now I am trying to configure motion detection. Previously, I simply had this set as follows:
binary_sensor:
- platform: ffmpeg_motion
name: Front Door
input: http://192.168.2.92:8080/video
changes: 1
This worked, but I think it will work better if I can figure out the correct settings to use android_ip_webcam again here also.
Since the motion value is exposed by android_ip_webcam, an alternative would be to use the binary_sensor_threshold component, without using ffmpeg_motion which is for sure computationally more intensive (and replicating the work already performed by the android app)
motion_sensor
(boolean)(Optional)
Create a binary_sensor._motion_active entity. Note that auto_discovery may also create this sensor.
Default value:
false