This is the story about how a copy paste programmer got this cheap Chinese camera working with HA.
I bought it from banggood for $29.70 AUD, not a bad little camera, but its kinda locked down with their crappy software but it does have rtsp and onvif support. However there are some nasty port and a telnet service open on the camera.
I have it working via FFmpeg on my HASS install, the guides aren’t the best so I will show how I got it to work
Setup your camera and have it working via the app
Install FFmpeg I had issues here per the install guide, this is how i got it done.
cd /etc/apt/
sudo nano sources.list
copy "deb http://ftp.debian.org/debian jessie-backports main" to the list and save
sudo apt-get update
sudo apt-get -t jessie-backports install ffmpeg
That should get FFmpeg installed
Check your camera is working via VLC, open a network stream
The address for the DIGOO camera is
rtsp://admin:password@IP_ADDRESS/onvif1
(admin will always be the user name)
Add FFmpeg to your configuration.yaml
ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg
add your FFmpeg camera
- platform: ffmpeg
name: Garage ffmpeg
input: rtsp://admin:password@IP_ADDRESS/onvif1
(Above is taken direct from my config minus the password and ip address)
Then promptly ban internet access in your router for your device, and also fix its IP address as well.
This should get it working, I’m writing this post for a bit of a one stop, haven’t seen anyone do it yet, and I spent a lot of time trying to get it to work over many web pages and posts.
Thanks HASS community! And I hope this helps someone.