I believe you can use RTSP streams with the ffmpeg component.
Other than getting the rtsp link from my hikvision cameras
How do I properly add it to HASS with ffmpeg component? Is there a guide I can refer to?
Nevermind, I think I found it here
https://community.home-assistant.io/t/rtsp-support/2306/22
Better question is, would I get smooth 720p or 1080p streaming on HASS?
I have the Hikvision DS-2CD2332-I and couldn’t come close to live streaming 1080p with Hassbian on Raspberry Pi 3. So I am using the secondary stream set to 640x480 and H.264 with a low framerate:
I initialise the ffmpeg component in configuration.yaml:
ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg
And finally have the following in my cameras.yaml:
- platform: ffmpeg
name: Camera Name
input: rtsp://username:password@cam_ip:554/Streaming/Channels/2
extra_arguments: -vf scale=640:360
For some unknown reason the my Hikvision substream does not provide a 16:9 resolution option so I need to have ffmpeg rescale the image aspect ratio so that it doesn’t look “tall and thin”. Let me know if you find a better solution.
Thanks Pete, it’s probably gonna consume too much resource for the HD streaming
Are you able to get the hikvision motion detection working with HASS?
Or do you just rely on the email/notification alert from the ivms app?
Also, is 2 fps enough? Is there a certain limit (like 15-20fps) for streaming on HASS before it gets bogged down?
I use BlueIris for Security Camera recording. BlueIris gets the Hikvision’s main stream at 1080p and records to NAS at 15 fps which is way more than needed. It has a pretty full set of motion detection options but it’s still a bit hit and miss for me as my cameras are outside and trees/shadows/rain play havoc with that. So I am looking to combine door/PIR/weather information from HA to improve the reliability of detection. In essence, I am using HA as a data source and to generate notifications rather than replace the main video security system. So 1-2 fps on the HA stream is fine for initial observation as I can always go into BlueIris to review in higher definition if needed.
Hey,
I’m using line crossing sensor to send a notification via pushbullet which works well, is there a simple way to add a snapshot to the notification as well?
I don’t know if the pushbullet platform supports images. If it does I would simply pass along the externally accessible snapshot url to the camera. You could either do this through the hass proxy or the camera itself.
How did you get the camera to send notifications thru home assistant?
I’m using Pushbullet with Line Crossing.
My Automation:
- alias: Doorbell
trigger:
- platform: state
to: 'on'
entity_id: binary_sensor.porch_sensor_line_crossing
action:
- service: notify.pushbullet
data_template:
title: Front Door Alert!
message: Someone is at the front door.
I did try notify but i need to move the cameras some first, and get the sensativity to work better.
I have some 4MP and some 2MP cameras, the 4MP is alot better i think.
How well does line crossing works for u? Alot off false alarms?
Line Crossing works great, 0 false alarms, except for the ocasional stray cat.
This would be the next project to keep them away hehehe.
I’m using the regular motion setup in the camera too. Lots of false alarms even with the sensitivity set to 20%. Seems to be when the sun go down or comes up. Think I will try out line crossing today and see how that goes. Do you know if you can do more then one line crossing?
I don’t see any option to add a second line, even though it shows Line 1 above the settings area.
Ya same here. Just playing around with the intrusion detection. I wonder how that works.
Works similar, but with more defined parameters.
Thnx for the automation script. Could you tell how this script should look like with Hikvision screenshot jpg?
See the following discussion.
You can only get an higher resolution sub stream if you lower the main stream resolution, its a bit of a trade off unfortnuatly. The higher end hik cameras have enough cpu power to enable both streams as high res, but then you’re paying more.
hope that helps
https://community.home-assistant.io/t/hikvision-setup/196/21?u=trinityeon
Hikvision cameras have two way audio capabilities. It would be awesome to receive the audio on your device through HA. I had another thought of using the mic input from the camera for Voice control. Eg “Hey Google… turn on this light”
Some useful info:
http://download.viakom.cz/HIKVISION/Manualy/Navod%20Hikvision%20URL%20streaming%20EN.pdf