SmartThings Community

[RELEASE] Universal Foscam Camera Device Handler with Discovery, Live Video Streaming, Motion Sensor/Alarm Integration - SD (FI89xx), HD (FI98xx, FI99xx), Cx, Rx, Ex, Fosbaby

smartapp_cameras
dth_security
smartapp_security
dth_cameras
rboyapps
(www.rboyapps.com - Make your home your butler!) #290

I would suggest you start a new thread on Amcrest support. I’ve been looking at the docs for it. It’s very complex and very comprehensive but I see some serious limitations which would limit it’s effectiveness in the current ST platform (not that there aren’t workaround but needs some serious work). Lets discuss on a new thread focussed on Amcrest :smile:

#291

Hi RBoy,

Would this Reolink camera work with your Foscam device type and apps?

Also, I made a $10 donation and was able to use my Foscam with your codes. However, I didn’t have a HD camera to be able to test out the video feature. Can you explain how it works if I end up upgrading my camera? Does it take a 30 to 60 second video and then emails it to you? Or does it only show up in the SmartThings app?

(www.rboyapps.com - Make your home your butler!) #292

Unless it uses the Foscam SDK/Firmware no it wont work.

(www.rboyapps.com - Make your home your butler!) #293

Foscam Motion Alarm Monitor - Version 2.3.0
Added option to set camera to a preset based on people arriving (presence sensors).

(Patrick Musselman) #294

@RBoy Question. In another smart app I am running into weird issues similar to the jumbled images. The smartapp author came to the conclusion that I had switched from iPhone to Android around the time the problem occurred and he is indeed correct. I had not thought that this would become an issue. But could this be a reason why I am getting jumbled images. @wvtroutbum could this be something that you did as well?

(www.rboyapps.com - Make your home your butler!) #295

This issue had come up earlier a few months ago (see the posts above). If I remember correctly it was something to do with the hub timing. One solution a user found was to use an external IP with port forwarding (if I remember correctly) which seemed to resolve the issue. Not sure if it’s related.

(barry.dempsey) #296

@RBoy can you help me I just started using your code for my foscams (FI8904W) which appears to work I can grab a still frame with no issues but when I try to enable motion alarms.

get the following on the live logging… this is using your latest build.

this is a cheap SD cam but I am only looking to grab motion alerts when triggered your code seems perfect for what I need todo …

any ideas ?


08de0f8e-1f92-4373-afa5-8e5baad658ee 11:28:17 AM: error org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. @ line 784
08de0f8e-1f92-4373-afa5-8e5baad658ee 11:28:17 AM: trace Received response from Camera to hubAction
08de0f8e-1f92-4373-afa5-8e5baad658ee 11:28:17 AM: error org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. @ line 784
08de0f8e-1f92-4373-afa5-8e5baad658ee 11:28:17 AM: trace Received response from Camera to hubAction
08de0f8e-1f92-4373-afa5-8e5baad658ee 11:28:16 AM: error org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. @ line 784
08de0f8e-1f92-4373-afa5-8e5baad658ee 11:28:16 AM: trace Received response from Camera to hubAction
08de0f8e-1f92-4373-afa5-8e5baad658ee 11:28:16 AM: error org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. @ line 784
08de0f8e-1f92-4373-afa5-8e5baad658ee 11:28:16 AM: trace Received response from Camera to hubAction
08de0f8e-1f92-4373-afa5-8e5baad658ee 11:28:16 AM: error org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. @ line 784
08de0f8e-1f92-4373-afa5-8e5baad658ee 11:28:16 AM: trace Received response from Camera to hubAction
08de0f8e-1f92-4373-afa5-8e5baad658ee 11:28:15 AM: error org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. @ line 784
08de0f8e-1f92-4373-afa5-8e5baad658ee 11:28:15 AM: trace Received response from Camera to hubAction
08de0f8e-1f92-4373-afa5-8e5baad658ee 11:28:15 AM: trace IPAddress 192.168.0.10 is a private IP Address

(www.rboyapps.com - Make your home your butler!) #297

Try version 2.3.1 - put a potential fix for it. The camera appears to be sending UTF-8 formatted content with a BOM in it which isn’t expected.

(barry.dempsey) #298

Thanks so much looking much better :slight_smile: (still playing with that)

not sure if you have a similar issue with your smartapp not allowing to save changes from looks of things… your motion alarm app…

a5a0b61e-f0b6-4f6f-b6d3-83703ccf9be4 3:21:34 PM: error java.lang.NullPointerException: Cannot get property ‘authorities’ on null object @ line 584
a5a0b61e-f0b6-4f6f-b6d3-83703ccf9be4 3:21:34 PM: trace Creating Access Token for call back
a5a0b61e-f0b6-4f6f-b6d3-83703ccf9be4 3:21:34 PM: debug Selected Modes: null
a5a0b61e-f0b6-4f6f-b6d3-83703ccf9be4 3:21:34 PM: debug Initialize with settings: [picture:false, cameras:[Front Door CCTV], enablePush:true, push:true, alarmSilent:false, interval:5]
a5a0b61e-f0b6-4f6f-b6d3-83703ccf9be4 3:21:34 PM: debug installed called
a5a0b61e-f0b6-4f6f-b6d3-83703ccf9be4 3:21:28 PM: error java.lang.NullPointerException: Cannot get property ‘authorities’ on null object @ line 584
a5a0b61e-f0b6-4f6f-b6d3-83703ccf9be4 3:21:28 PM: trace Creating Access Token for call back
a5a0b61e-f0b6-4f6f-b6d3-83703ccf9be4 3:21:28 PM: debug Selected Modes: null

(Sean Kendall Schneyer) #299

That line there usually means that you forgot to turn on OAuth in the settings.

1 Like
(barry.dempsey) #300

apologies thanks for pointing that out…

#301

RBoy: Attempted to setup my Foscam FI9821P yesterday. The camera shows up in my “Things” but shows as “off”. After reading a multitude of posts, I went back to check some things and when I go to My Devices, I see the Device Network ID has changed from 2000 to Null:0050. I’m a bit of a novice with the ST hub AND the camera, so keep that in mind when responding. Thanks!

(www.rboyapps.com - Make your home your butler!) #302

That means the ip address is invalid in your settings. The device id should e hexa decimal number with a port. The null means the ip address is not correct. Check your settings in device preferences

#303

Okay. Corrected that and now have a null:0058

(www.rboyapps.com - Make your home your butler!) #304

Something isn’t right about the input. See your live logging (open it before you hit done), it’ll spit out the settings saved in the app and will tell you what’s going on. What version of the ST phone app are you using?

#305

My app version is 2.0.7 (iOS). Not sure where the to find live logging. App or online?

#306

Okay…chased down the live logging and resolved my bad IP address issue. My cam shows up on the dashboard as “OFF”. Is that normal?

#307

Hold the phone…fixed. All seems to be well now. I’m up and running!

(www.rboyapps.com - Make your home your butler!) #308

For my/everyone’s benefit, what was the issue?

#309

First of all, I had the “http” part of the IP address in. Took that out. Then, I had the :xx port number in at the end of the IP address. Took that out. I rebooted everything and still nothing. Why? Because I was too stupid to figure out the dashboard interface and press the “off” button to turn everything on. Amazing how well things actually work when you turn them on. Thanks for building a nice app.

1 Like