Generic ip camera

Would any one please be able to provide me with info on how to set up an kamtron ip camera? The error message I get is, "valid config for [camera.generic]: required key not provided @ data[‘still_image_url’]. Got None.

You need to know the URL to retreive an image from your camera. For example mine is:

- platform: generic
  name: Front
  username: !secret camera_user
  password: !secret camera_password
  auhentication: basic
  still_image_url: http://10.1.1.20/cgi-bin/viewer/video.jpg  #<-- This is what you are missing according to the error you received
  scan_interval: 5

You could try this:

still_image_url: http://[your camera IP address]/tmpfs/auto.jpg

1 Like

Thanks so much for responding. I have this:

camera:

But it still doesn’t work. I don’t know how to create a file at the ip address, so I doubt there is a cgi bin. Was I suppose to do something elsewhere in hassio?

Did you try this?

Yes, I did. Is configuration.yaml the only place where the camera is referenced? Do I need some software on the backend to run it? When I access the IP address in my web browser, it comes up with a UI with the camera feed. Currently, I don’t have a micro sd in the camera so it’s not recording, but I can see things live. Ive been searching, and maybe I need something like Zmodo?

No further software is needed. If you can see a static image in your browser with that URL it should work with the generic IP camera component.

Anything relevant in your error log?

Also please post your HA IP camera config formatted as per the blue banner at the top of the page.

This is my default camera configuration for all my noname cheap IP cameras. I use it until I can find something better. :slight_smile:

camera: 
  - platform: mjpeg
      mjpeg_url: http://192.168.1.208:13108/videostream.cgi?user=admin&pwd=xxxxxxxx
      still_image_url: http://192.168.1.208:13108/mjpeg/snap.cgi
      username: admin
      password: xxxxxxxx
      authentication: digest
      name: 406_south

Use your own IP address, port and password. Stick with the admin login.

1 Like

Please edit your post and format your code as per the blue banner at the top of the page.

Thank you, I’m a newbie. how do I get the port?

Take a look at the configuration on your pc or cell phone camera viewing software. It will have the IP address and port listed. Typically it is port 80 or port 8080. Mine are off the wall for reasons outside of Home Assistant.
When you say newbe, I’m not sure how much of one so please don’t be offended if I mention that the format I used is http://your-local-ip-address:port-number

indent preformatted text by 4 spaces

Newbie here, my input should be suspect.

On my generic camera the biggest problem was finding the URL to get a still image. Here’s my config info:

# Porch Camera (Hoo Too, Model HT-IP212F)
- platform: generic
  still_image_url: http://192.168.1.215/snapshot.cgi
  mjpeg_url: http://admin:[email protected]/videostream.cgi?user=op&pwd=op&resolution=32&rate=0
  username: admin
  password: admin
  name: Porch
1 Like

I can’t tell you how much I appreciate all of your help. It is still not working - it seems to recognize the camera but cannot access a still image or mjpeg. The log says it “timed out getting camera image.”

Snapshots sometimes require the username and password to be received in digest mode. Just for giggles, try adding this line to your camera config right after the password:

  authentication: digest
1 Like

Sadly, Dixey, it didn’t work.

The other common port ip cameras default to is 81. If you do not specify a port HA will default to 80. Again, humor me and for an address try http://your-ip-address:81

1 Like

try this resource for potential commends: https://www.ispyconnect.com/man.aspx?n=Generic

basically if you can make a snapshot work from your browser, that should work for the generic camera component.

1 Like

Still no!! I’m going to have to revisit this tomorrow. Thank you so much for your help.

Thank you, I did. Maybe I’m missing something. I’ve been trying to get hassio to recognize and access the camerathe camera, I have hassio installed on a raspberry pi 3+. Does that mean I should be using ffmpeg?

Here is one of the ffmpeg entries I use on one of my generic cameras (actually a VStarcam):

- platform: ffmpeg
  name: 406_drive
  input: rtsp://admin:your-password@your-ip-address/11

I had to play with either 11 or 12 (11 worked for me) and make sure you have ffmpeg: loaded in your configuration.yaml

1 Like