[OBSOLETE] Foscam Camera Device Handler Universal DTH with Motion Detection - SD (FI89xx), HD Ambarella FI98xx, FI99xx, Cx, Gx, Rx, Ex, Zx, Fosbaby

Yes you need to only use Admin accounts as other accounts don’t have permissions to modify the camera settings. This will also show up as an error in the IDE Live Logs (permission error).

Yeah that’s where I noticed the auth issue. Now do you know about the issue where it’s not able to take a picture when the alarm is triggered? I didn’t see anything in the logs that would lead me to a solution other than the notification that it was unavailable.

Most probably timing issue, try rebooting your camera, makes it more responsive.

Does this DTH allow us to use the DDNS url instead of the ip address? My external IP address changes every week or two so hard coding the ip is redundant.

Yes you can use URL’s however the DH caches the IP address once the URL is resolved to reduce the load on the ST platform and make the DH more responsive. You would need to disable the caching code to use it with DDNS.

###Foscam Camera Universal Device Handler - version 03.04.04

  • < no change >

###Foscam Motion Alarm Monitor SmartApp - version 02.07.02

  • Update due to change in ST phone app, now you can separate multiple SMS numbers by using a *

Can you provide the lines in the code to comment out?

Is the universal handler fully compatible with the Foscam R2?
i.e.

Yes see the configuration instructions here:

If I turn the switch on will the human detection come on as well?

Hey guys. Just working on getting this set up. Which IP am I supposed to use? I have 4x 9800 wireless Foscams and I’m un sure where to get the IP or which one is correct to use. Any guidance? I’ve got my cameras streaming to the foscam hub and the device handlers created and app installed in ST

Updated the guide to talk about IP address in the troubleshooting section.

i dont think that is the case. I was able to get it to work with the internal IP a few times on one camera but the other two did not work. So i port forwarded the three ports and tried to use the external IP with the proper port and that did not work. I can use a browser and put the external IP and port in the address bar and no issues. I really think there is something else going on. I also kept changing the NetworkID because whenever i put something in ST would change it. Now I got those to work but still can’t get any streaming

Update - What i had to do was delete all the devices and put them back in. now working fine

I’m still a little confused with what exact ip is required. I have the foscam base set up on my home network via ethernet. The cameras are connected directly to it. I can log into the hub and watch the cameras through that. I’m able to view the cameras if I am on the same local network through the foscam nvr app. So far I’ve had no luck viewing outside the network or adding the cameras to smart things. I’ve taken the IP from the foscam base for one of the 4 cameras and put that and port 88 into the device but it just gives an error. Do I need to change some sort of setting to allow devices outside my network access to the hub? I’ve tried taking the local ip and port and putting them into the browser bar to see if I can view the stream but it don’t seem to work. I’m not sure if that function is supposed to work but from my rudimentary understanding it should?

Just did some more reading. Seems like I wont be able to stream to my phone remotely without enabling port forwarding. Does this apply to smartthings too? I’d really like to get these motion alerts and live stream working so I can add it to my action tiles and security system

I think it does if you are remote in not in your home network. It appears that all this does is talks directly to your phone and not through the hub. Also I think this is less then Beta. I think it is more like Alpha. I am sitting here from my office and although everything was working this morning…now noting. Can’t retrieve URL

Here are the logs
cbc21f25-311d-4160-a140-06e447289634 2:15:29 PM: trace Video settings: [OutHomeURL:http://192.168.158.218:8891/videostream.cgi?user=admin&pwd=&resolution=32, InHomeURL:http://192.168.158.218:8891/videostream.cgi?user=admin&pwd=&resolution=32, ThumbnailURL:http://cdn.device-icons.smartthings.com/camera/dlink-hdpan@2x.png, cookie:[key:key, value:value]]
cbc21f25-311d-4160-a140-06e447289634 2:15:29 PM: trace Fetching video from: http://192.168.158.218:8891/videostream.cgi?user=admin&pwd=
&resolution=32
cbc21f25-311d-4160-a140-06e447289634 2:15:29 PM: debug Starting video streaming with High profile stream
cbc21f25-311d-4160-a140-06e447289634 2:15:29 PM: trace Called getInHomeURL, returning http://192.168.158.218:8891/videostream.cgi?user=admin&pwd=
&resolution=32

Correct video stream goes directly from phone to camera, so you need to ensure there’s a route from the phone to the camera. If you’re trying to access it from outside the house you need to setup port forwarding for your video ports (HTTP or RSTP as your camera needs along with the public IP address). (only 1 option)
Other camera command can go through the hub when using a LAN IP address and directly to camera when using a public IP address with port forwarding. (2 options)

More explanations here:

My camera does not have rtsp it is a f18918w so it is an older camera. If I have three cameras I can’t forward 554 to all three cameras

True but I believe you can configure the camera to use different ports (if they support it). Same goes for the http ports, you can use any port you want, that’s how we’ve setup 14 cameras in the lab and we’re able to access all of them remotely.

I did that

1 Like