The image capture looks like it will work but I don’t know about the motion detection or the camera movement buttons. I guess the only way to find out is to try it out and see. I’m looking to see if I can find the CGI commands for this camera but so far I haven’t found anything.
Please forgive my ignorance; I have just joined the SmartThings family. I jumped ship from Staples Connect the moment V2 was released. I also have a 5020L and would love to include it to my hub. Can you tell me how or point me to a FAQ on how to take this code and make it work on my hub? Thanks so much!
I hope to try it tomorrow I’m not a programmer so no promises. Even though the camera is supported, that’s why I bought it and the v2 hub, none of those features are enabled I would love to take still photos to save data, or use the motion detector or pan the camera.
Aaron, Like you I had the same result. Following the “FAQ: An Overview of Using Custom Code in SmartThings” I think I’m losing it at: DH6) Edit the Device so that it uses that device handler. I copied the code, made the device type and got it published. I made the camera in My Devices. But to edit the cam I made to use the device handler, I’m not understanding.
Just added the capability to adjust the motion sensitivity of the camera. I was getting too many e-mails with pictures of a slight flicker of light through a window and wanted to be able to turn down the sensitivity during the day if I needed to.
So I just had a few questions on these custom device types. First, where is the image being stored? Can I delete this image? Is it stored in the cloud or on the hub? Already tried deleting the device and device type. Image still stored somewhere as it shows up in the activity feed.
Second, how safe is the password sitting in plain text? Anyway to encrypt it so its just not plain text, you can clearly see it if you are in your hub/device under the preferences. Just wondering.
I changed the ‘Password’ field to be hidden text instead of being visible.
The image is stored in the smart things cloud, though I’m not 100% familiar with how it works. The images seem to only stay temporarily. I used code from other devicetypes to get that to work so I don’t really have many answers in regards to that. All I’ve done is add the ability to move the camera and turn on/off motion detection and adjust the sensitivity. I don’t know if there’s a way to store the pictures locally other than how you would normally do it outside of SmartThings using the D-Link app/website. Maybe @pstuart would know more about this?
I’m also new to the code side so I may be doing something incorrect. But when I paste the code in I get an error:
No signature of method: script1445630693425914954975.metadata() is applicable for argument types: (script1445630693425914954975$_run_closure1) values: [script1445630693425914954975$_run_closure1@2137098c] Possible solutions: getMetadata(), getState(), setState(java.lang.Object), metaClass(groovy.lang.Closure)
I have the 5029 set up using the officially supported setup you mentioned but the only tiles I get with it are refresh and reboot. Do I have to use the D-Link app to pan and tilt the camera? I would also love for the motion sensor in the camera to be used as a motion device for Smartthings. Is that possible?