# Anyone have a working foscam FI9826W?

**URL:** <https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934>\
**Category:** Devices & Integrations\
**Created:** [February 9, 2015, 8:52pm UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934 "2015-02-09T20:52:32Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ron](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ron/32/80532_2.png) [@Ron](https://community.smartthings.com/u/Ron)\
**Post date:** [February 9, 2015, 8:52pm UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934/1 "2015-02-09T20:52:32Z")

</div>

I am trying to add my foscam FI9826W to my smartthings hub.

Searching for foscam returns so many different versions of device code that I am lost as to which might work. I have tried a few but don’t know if my settings are wrong of if the device code just isn’t right for my device.

So I am wondering if anyone has this camera working in ST ?  
If so can you share with me which device code you are using.

Also I would expect to have to use an external IP but I notice references to “hubAction” in some of the drivers. Is ST able to work in local ip’s from the hub ?

---

<div class="post-metadata">

**Author:** ![tgauchat](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tgauchat/32/49516_2.png) [@tgauchat](https://community.smartthings.com/u/tgauchat)\
**Post date:** [February 9, 2015, 10:56pm UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934/2 "2015-02-09T22:56:16Z")

</div>

@RBoy is charging some sort of code access fee (loooong story…), but his work is getting some positive reviews and might support your requirements.

**See** :

> [@\[OBSOLETE\] Foscam Camera Device Handler Universal DTH with Motion Detection - SD (FI89xx), HD Ambarella FI98xx, FI99xx, Cx, Gx, Rx, Ex, Zx, Fosbaby](http://community.smartthings.com/t/foscam-ip-camera-integration-with-smartthings/10695):
>
> This is an [Integration for Foscam Cameras with SmartThings](http://smartthings.rboyapps.com/#a3) and works with all [Foscam cameras](https://amzn.to/3zAt3mj) (Standard Definition, High Definition, Ambarella, etc) [image] [IMG\_7050] Classic App We’ve created a customized version for the Foscam Device Type which allows for integration of the IP Camera’s into SmartThings. We’ve also been touch with Foscam to add new features to their upcoming lineup for cameras. [Installation instructions and troubleshooting tips](http://www.rboyapps.com/InstallFoscam.htm) can be found here Feature Summary (varies by model) Turn on/off motion detection Turn on/off sound detection Get notified on motion/sound alarms Detect flip/mirror settings configured through Foscam app/camera web console Detect motion detection areas/sensitivity confi…

* * *

**NB** :  
I’m just suggesting the first published solution that comes to mind and was easy to link to. There are likely a few other good ones.

If there are alternatives (free or otherwise), then the Community will point them out here, I presume. There are a good variety of contributors here.

And I think we’ll soon have a SmartApp / SmartDevice Type recommendation library, FAQs, etc…

---

<div class="post-metadata">

**Author:** ![geko](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/geko/32/34862_2.png) [@geko](https://community.smartthings.com/u/geko)\
**Post date:** [February 9, 2015, 11:15pm UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934/5 "2015-02-09T23:15:47Z")

</div>

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

---

<div class="post-metadata">

**Author:** ![April](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/april/32/15314_2.png) [@April](https://community.smartthings.com/u/April)\
**Post date:** [February 9, 2015, 11:49pm UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934/6 "2015-02-09T23:49:55Z")

</div>

Let’s stay on topic. if there’s alternative suggestions on working with Foscam, please link here.

😉 Play nice.

---

<div class="post-metadata">

**Author:** ![puttingg](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@puttingg](https://community.smartthings.com/u/puttingg)\
**Post date:** [February 10, 2015, 12:46am UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934/7 "2015-02-10T00:46:06Z")

</div>

I gave up and added them to my behome247 hub and I have 6 H.264 cams on it. Just switch back and forth when I want to see my cams. Best thing is I can view them on my Windows phone, iPad and Kindle. Sweet. Wish ST would work with these guys. Would love to have them all on the same screen. I am contemplating moving all of stuff over to their hub but I just can’t bring myself to doing it … Love my ST

---

<div class="post-metadata">

**Author:** ![Ron](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ron/32/80532_2.png) [@Ron](https://community.smartthings.com/u/Ron)\
**Post date:** [February 10, 2015, 1:07am UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934/8 "2015-02-10T01:07:01Z")

</div>

> [@tgauchat](#):
>
> @RBoy is charging some sort of code access fee (loooong story…), but his work is getting some positive reviews and might support your requirements.

The thought of paying for code that I have no way to test turns me off. I hate that he is doing that but I don’t know the “long story”. Everyone here shares such wonderful code and support. I also have no way to know if his stuff will work or not so how can I pay before I try.

Thanks for the suggestion but I will pass.

---

<div class="post-metadata">

**Author:** ![April](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/april/32/15314_2.png) [@April](https://community.smartthings.com/u/April)\
**Post date:** [February 10, 2015, 1:09am UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934/9 "2015-02-10T01:09:26Z")

</div>

@pstuart might be able to assist with this : I know there was a pretty awesome integration here.

> [@Foscam Universal Internal Device Type (HD\\Non-HD with Alarm\\LED\\PTZ Control)](http://community.smartthings.com/t/foscam-universal-internal-device-type-hd-non-hd-with-alarm-led-ptz-control/3733):
>
> I mostly did a rewrite of my Foscam HD device type. This device type should support all Foscam cameras using an internal IP address, HD and non-HD versions. The alarm and IR lights can be controlled. PTZ functionality is also included. This will still work with SmartApps that I created for Foscam cameras. Thanks to posts by @scottinpollock and @pstuart I was able to get this done. Notes & Issues: Polling for the non-HD cameras is currently not working. It looks like this an issue with either the system not being able to handle the large amount of data that is returned or there is something in the data that is causing a problem. I have contacted support regarding this so hopefully we’ll be able to figure it out. Non-HD cameras only support on and off for LED controls. Foscam does not s…

😃

---

<div class="post-metadata">

**Author:** ![Ron](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ron/32/80532_2.png) [@Ron](https://community.smartthings.com/u/Ron)\
**Post date:** [February 10, 2015, 1:15am UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934/10 "2015-02-10T01:15:30Z")

</div>

> [@April](#):
>
> @pstuart might be able to assist with this : I know there was a pretty awesome integration here.
> 
> [Foscam Universal Internal Device Type (HD\Non-HD with Alarm\LED\PTZ Control)](http://community.smartthings.com/t/foscam-universal-internal-device-type-hd-non-hd-with-alarm-led-ptz-control/3733)
> 
> 😃

Thanks, I found that thread and actually read the whole thing 🙂 I started with the first code in the thread and it didn’t work, then I noticed a few more copies in the same thread by different people. That is what prompted this post. I was hoping someone had this model camera and had one of the very many copies of code I have found.

The worst part is I don’t even know what to expect from these. One says it’s only to use the camera as a motion sensor, others say you can take a picture ?

So I am testing code I don’t know if I have the correct version, I don’t know what it is supposed to do for me, and I don’t know if I configured it correctly. Too many variables to debug why it doesn’t do anything I expect.

---

<div class="post-metadata">

**Author:** ![kevintierney](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/kevintierney/32/95651_2.png) [@kevintierney](https://community.smartthings.com/u/kevintierney)\
**Post date:** [February 10, 2015, 1:27am UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934/11 "2015-02-10T01:27:37Z")

</div>

I have the 9821W HD and I’m using the device type from @eparkerjr . It uses the internal address so you don’t have to port forward if you don’t want to

> <https://github.com/skp19/st_foscam_hd/blob/master/st_foscam_hd.groovy>

---

<div class="post-metadata">

**Author:** ![Ron](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/ron/32/80532_2.png) [@Ron](https://community.smartthings.com/u/Ron)\
**Post date:** [February 10, 2015, 2:24am UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934/12 "2015-02-10T02:24:27Z")

</div>

Thanks @kevintierney I will try that version.

---

<div class="post-metadata">

**Author:** ![jody.albritton](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jody.albritton/32/220661_2.png) [@jody.albritton](https://community.smartthings.com/u/jody.albritton)\
**Post date:** [February 10, 2015, 4:11am UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934/13 "2015-02-10T04:11:33Z")

</div>

[https://github.com/gouldner/ST-Projects/tree/master/ST-Devices/src](https://github.com/gouldner/ST-Projects/tree/master/ST-Devices/src)

---

<div class="post-metadata">

**Author:** ![acastal](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/acastal/32/98947_2.png) [@acastal](https://community.smartthings.com/u/acastal)\
**Post date:** [February 10, 2015, 5:35am UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934/14 "2015-02-10T05:35:38Z")

</div>

It also depends on what you are wanting to do. AFAIK there is no working device type to enables motion detection on the camera (and send you email with pictures) when there a mode change (away, night) for the high def cameras like this one (I did not pay to get access to @RBoy code…yet…don’t know if they have it fixed). If you want to use Photo Burst based on a motion sensor or contact sensor it might work. If you get the issue where you can control the camera but not use the “take” button I would try to poke a hole in the firewall and use that just to test. If that works decide if that is a “workaround” that you are comfortable with. Use a goofy external port number for this, not 80 or 88 😄

---

<div class="post-metadata">

**Author:** ![RBoy](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/rboy/32/62677_2.png) [@RBoy](https://community.smartthings.com/u/RBoy)\
**Post date:** [February 10, 2015, 2:33pm UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934/15 "2015-02-10T14:33:46Z")

</div>

actually @acastal that’s is possible, atleast tested with the FI9821 camera and from what I see with the specs of some of the HD cam’s from Foscam based on their SDK. The device type code in the thread @tgauchat pointed out does that, you can enable motion detection with a mode change (or though any smart app) and through the preferences configure it to send an email with the pictures. (note the email and server details need to be configured on the cam directly through the web interface, you can only enable/disable the features like taking snapshots, emails, sound alarm etc through the device code)

As you pointed out I too found it’s better to use a random port like 88 instead of the standard 80 which may be used by other UPnP software like Skype, Teamviewer or a webserver etc to reduce connectivity issues. So here’s an example of the ports configuration one can use to avoid conflicts yet be easy to remember:  
HTTP -\> 88  
HTTPS -\> 8888  
ONVIF -\> 888

---

<div class="post-metadata">

**Author:** ![nattyb](https://avatars.discourse-cdn.com/v4/letter/n/aeb1de/32.png) [@nattyb](https://community.smartthings.com/u/nattyb)\
**Post date:** [June 24, 2015, 5:53pm UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934/16 "2015-06-24T17:53:25Z")

</div>

Hey guys - I’m new to Smartthings, but have added other apps via the IDE using some GitHub codes. However, for some reason I can’t seem to get any of the Foscam ones to work (or any of the codes for Nest for that matter). I always get an error. Am I needing to enter any of my information into the code before submitting or something like that? I’m not an expert programmer by any means. Below is the message I received when entering the code:skp19/st\_foscam\_universal

No signature of method: script1435152749383289503705.metadata() is  
applicable for argument types:  
(script1435152749383289503705$\_run\_closure2) values:  
[script1435152749383289503705$\_run\_closure2@5b30d3de]  
Possible solutions: getMetadata(), getState(),  
setState(java.lang.Object), metaClass(groovy.lang.Closure)

---

<div class="post-metadata">

**Author:** ![RBoy](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/rboy/32/62677_2.png) [@RBoy](https://community.smartthings.com/u/RBoy)\
**Post date:** [June 24, 2015, 6:58pm UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934/17 "2015-06-24T18:58:01Z")

</div>

it’s a smart device and not a smart app

---

<div class="post-metadata">

**Author:** ![Simian](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@Simian](https://community.smartthings.com/u/Simian)\
**Post date:** [January 4, 2019, 12:52am UTC](https://community.smartthings.com/t/anyone-have-a-working-foscam-fi9826w/10934/18 "2019-01-04T00:52:56Z")

</div>

I have Pan/Tilt working and being able to take a picture for this camera - code is here for free. I have tested this on a Foscam FI9826W. I have created a Pull Request to the original author too. [https://github.com/ross-p-smith/st\_foscam\_universal](https://github.com/ross-p-smith/st_foscam_universal)

Would love to get live streaming working if I can spare some time
