I have two instances of Home-assistant running on different machines. My main instance running in Docker on a synology, with another instance running on a pi-3 with an rpi camera mounted atop a pan-tilt arm.
Here I show how I have configured my setup so that I can view the camera feed from my pi3 on my synology. Note that this isn’t video rate streaming, but a pretty usable 10 frames per-second. This approach doesn’t require installing any additional software (e.g. motion) on the pi3, and the streaming doesnt interuppt the performance of Home-assistant on either machine in any way. All configuration is via Home-assistant, and makes use of the ability of Home-assistant to display files placed in a www
folder in the main configuration - I can’t find any mention of this ability in the docs so am promoting its existence here!
On the pi3 with the rpi camera, I create a www folder in the main congifuration directory, and put in a dummy image capture.jpg. I setup the camera component as follows:
camera:
- platform: rpi_camera
timelapse: 100
file_path: '/home/pi/.homeassistant/www/capture.jpg'
Restart the pi and the captured image capture.jpg
is viewable at http://pi-ip:8123/local/capture.jpg.
Now on my second Home-assistant instance (the synology), I add a generic ip camera with config:
camera:
- platform: generic
name: rpi-camera-feed
still_image_url: http://pi-ip:8123/local/capture.jpg
I can now view the pi3 camera feed on the synology