Problems configuring Generic Camera + MJPEG Camera

Hi all,
Hoping I can get some assistance with camera configuration. I have 2x cameras, they are model TrendNet IP311 (white labelled Hikvision 2132 basically). I’m trying to set them up using MJPEG as well as trying with just Generic and am having no luck. Here are the two configurations I have tried:

camera: platform: mjpeg mjpeg_url: http://username:[email protected]/Streaming/channels/1/httppreview name: Driveway
I also tried:
camera: platform: mjpeg mjpeg_url: http://192.168.69.150/Streaming/channels/1/httppreview name: Driveway username: username password: password

I’ve tried both options above using generic type as well, pointing the url to the jpeg URL which is http://192.168.69.150/Streaming/channels/1/picture and I’m getting an error each time. Nothing in the HA logs, but when I try to view on the states page each time I just see this:
https://dl.dropboxusercontent.com/u/50721185/error.png

I’ve tried WGET’ing the image from my HA server (A Raspberry Pi 2) and it pulls it down okay, and obviously have hit the URLs with a browser to make sure it’s got the correct username and password. To be honest I’m dumbfounded, can anyone offer any tips?

Thanks!

I’ve found this site to be invaluable in finding the correct URLs for many cameras:

https://www.ispyconnect.com/sources.aspx

as well as this one:

https://wiki.zoneminder.com/Hikvision

2 Likes

Thanks for that, I’m fairly sure I have the URLs correct since I’m able to get the JPG and MJPEG to display in a browser and have pulled the JPG down from the Pi on the commandline okay. Really pulling my hair out on this one and can’t seem to find any error information in the logs (maybe I’m not looking in the right place?)

I was never able to use the Foscam component for my older Foscam 8918’s and had to resort to this URL with the generic MJPEG camera. While it will generate an error in the logs, it works perfectly.

http://IPADDRESS/videostream.cgi?user=USRNAME&pwd=PASSWORD

Just a thought; many of the Chinese cams I have purchased were NOT set to http at the default port of 80; I assume you already checked this but if not… you’d have to alter the URL like so:

http://IPADDRESS:PORT/videostream.cgi?user=USRNAME&pwd=PASSWORD

Newb here

Trying to make use in HA of my hikvision camera.
rtsp://192.168.1.41:554/Streaming/Channels/1
works in VLC

not sure if any http:// is working (again I am a newb)

Everything works in hikvision (I register the streams in synology NAS) but still images are not working (can’t get it to work in hikvision setings)

found solution, the correct URL is this

camera 41:
  - platform: generic
    still_image_url: http://user:[email protected]:80/PSIA/Streaming/channels/1/picture

What was the solution for this for hikvision cameras?

I attempted all the options in this thread without any loading… I can however get it to load in chrome using the URL:

- platform: mjpeg
  mjpeg_url: http://admin:[email protected]/Streaming/channels/1/picture

I also tried generic platform, claudios URL ffmpeg - nothing seems to get it loading…

Try finding your camera here:

https://www.ispyconnect.com/sources.aspx

This site is the first place I look when trying to connect a camera; it has all of the direct URLs to most of the cameras out there.

I got it working in the tile but when you click to expand it doesn’t work…

I have a feeling it’s to do with hass rendering the image via the API anyone else had issues with this before?

I’ve only seen this when I had trouble connecting to a camera - you can check that your URL provides a stream in a browser, but it already looks like you are connected.

Works perfectly via URL :frowning:

Seems just a hass front end issue

Even if I could just hack the ui to click through to that URL it would be good (security wise not so many with the password in the URL) but at lease I could view it.

I had an old TrendNet cam that I couldn’t get to work for the longest time in HA and then I stumbled on this URL that seems to work. No promises, but it’s worth a try:

http://user:pass@CAM_IP/video/mjpg.cgi

I had a 7 month old post for support on that one that I was finally able to go back and close!

Thanks to you I got all my cameras working!! I was giving up on my TrendNet cameras in HA, but now everything works!! My cameras, my alarm… I am really happy!!! Thanks!!!

I have a Chinese PTZ camera what could my url be? I am using an app called V12

Hi I have setup a vivotek camera and streaming MJpeg on it on local network.
i added the camera mjpeg component for this and get it to display but only when clicking on the image.
if i close that image or try view as overview this is what i get. A small grey bar?
anyone know what causes this ?

problem solved by using correct url