Apologies if this is in the wrong section, i wasnt sure if it counted as hardware, or configuration, but figured that configuration was closest, anyway, here goes…
4 days ago i setup HA for the first time ever, and have been reading ever since. I already have a few smart speakers, sockets, bulbs, door sensors, temp sensors, routines all setup, so this seems like the next natural step
one thing i just couldnt seem to find though, was how to implement my cctv cameras into it. ive read every thread that mentions swann on this forum, and many others, and all seem to either speak of NVR and IP based cameras, or simply have no replies
So, i figured that id have to work it out myself. Time to open a beer (or 3)
Anyway, after a bit of messing about, its actually quite simple. First off, you need to build a link to the stream from each of your cameras, this is done in the following way
rtsp://[DVR username]:[DVR password]@[DVR IP Address]:554/[camera channel]/[0{for HD} or 1{for SD}]
So, for example, the links to a 4 camera system, assuming that your DVR IP address is 192.168.0.5, and the login details are username - admin, and password - password, would be as follows
rtsp://admin:[email protected]:554/ch01/0
rtsp://admin:[email protected]:554/ch02/0
rtsp://admin:[email protected]:554/ch03/0
rtsp://admin:[email protected]:554/ch04/0
this will connect to the HD stream. To connect to the SD stream, change the last /0 for /1
To add these to your HA, enter the following into your configuration.yaml file
camera:
- platform: ffmpeg
name: CCTV cam 01
input: rtsp://admin:[email protected]:554/ch01/0
camera 2:
- platform: ffmpeg
name: CCTV cam 02
input: rtsp://admin:[email protected]:554/ch02/0
camera 3:
- platform: ffmpeg
name: CCTV cam 03
input: rtsp://admin:[email protected]:554/ch03/0
camera 4:
- platform: ffmpeg
name: CCTV cam 04
input: rtsp://admin:[email protected]:554/ch04/0
restart HA (click the check config button first to ensure no mistakes)
to add them to your dashboard, click the ‘edit dashboard’ button, then the + button
select the ‘Picture entity’ card
Click ‘Entity’ and find your new CCTV cameras in the list, and select one
delete the text in ‘image path’
turn off the ‘show name’ and ‘show state’ buttons
save
repeat for the other 3 cameras
hope this helps someone out there
dd