Generic Camera - Old Foscam IP camera?

I tried to add an old Foscam camera FR4020A2 that I have using the Generic Camera integration. Any way that I’ve tried to add it gives me “Timeout while loading URL”.

This is the way that I login to the camera NOT using HA:

OldFoscamCamera

I first put the username and password into the form - got timeout
I’ve tried using http://username:password@IPaddress - got timeout
I even tried rtsp://ipAddress - got timeout
I tried to open a network stream using VLC and was unsuccessful.

Is there any hope of using this camera with Home Assistant? Should I just give up?

Thanks for your honest opinion.

You need to know which “path” to provide, xxx.ffmpg xxx.mjpg xxx.cgi xxx.asf xxx.mp4 ?
You also need to provide correct " :port " ?

@boheme61 does this mean I give the generic camera setting something other than the IP web address I use with port? Right now to access the camera webpage I just use http://192.168.X.X:XX

Yes but that webpage is designed to support your cam

Have a look here (or in your manual) how the url is suppose to look like ( search for the model number )

https://camlytics.com/camera/foscam/16

something like http://username:[email protected]:80/xxxx.cgi /asf / mjpg or whatever they recommend (i saw some with user/passwd after the file extension, never tried this (or had cams that needed this, maybe depends where you use it

This kind of urls should even be accessible in various APPS like VLS etc ( even direct in a browser, sometimes :slight_smile: ) depends upon which kind of stream/format etc it is

EDIT: i priviously had an old dlink camera where i used the camera integration ( dunno if this still works like that )

camera:
          - platform: mjpeg
            name: Dlink Camera
            still_image_url: http://username:[email protected]/image/jpeg.cgi
            mjpeg_url: http://username:[email protected]/mjpeg.cgi

well no port here, i see, thou it’s http which is 80 (some Cams have other than 80, then you definitely has to provide correct port

PS: i just notice the “intends” came out wrong, the - should start under the r in camera , move below in

Thank you @boheme61. I’ll give this a try.

Success! Thank you so much. I never thought I would get this working.

Just one note for anyone else that will be trying the generated code - you do need to change the port from 80 to what your camera actually uses to get this working.

1 Like