THANK you for this code. This became my “hello world” project for my ST.
Question. Does your code capture the motion as a status? I can sense if the motion is turned on or off, but I cannot seem to capture a motion event.
I ‘thought’ I had it working correctly. I could add the device type, and I could add a device, but the snapshot was not working to taka picture. I had set up motion zones, but I did not configure an FTP server or an SMTP server. Once I did this (even with dummy settings), the snapshot worked.
Unfortunately due to how SmartThings interacts with the camera there is no way for the camera to ‘send’ a status update without SmartThings first requesting it. The motion on/off only turns on the ability for the camera to automatically send images/video to an email or FTP which is set up within the D-link menus for the camera.
(Different Computers. So happy with Indigo.)
Fairly low res but a low price so not bad, do these support PoE? They have an Ethernet port but no mention of PoE so I’m thinking no, I could use one of the TP-Link PoE splitters here but that adds $15 to the cost.
I’m brand new to SmartThings and working with code. When I cut and past the text you provided into the New SmartApp - From Code box and hit the Create button, I get the following error:
No signature of method: script14528091358441860061825.metadata() is applicable for argument types: (script14528091358441860061825$_run_closure1) values: [script14528091358441860061825$_run_closure1@55e425bf] Possible solutions: getMetadata(), getState(), setState(java.lang.Object), metaClass(groovy.lang.Closure)
Any help explaining what I’m doing wrong would be greatly appreciated.
Now that it’s added as a devicetype you’ll need to create a new device by clicking the ‘My Devices’ tab in IDE and using the “+New Device” button in the upper right corner. From there you’ll fill out all the information (you can ignore ZigBee ID) and choose the devicetype you just created from the “Type” dropdown menu. Once this is done, you can go into your app and assign it to a room and add all the required information (IP, Port, Username, Password).
This is my first attempt at adding a device…new to smart things
I have several 930L’s, I installed the code but only the first cam works (it does work properly), the other three cams do not take pictures. Is it necessary to have one instance of the code per cam (changing the name in the definition).
The second and subsequent devices all show up with No States Found in the current states
I see. I initially added 2 cams, one worked the other did not. I added a third cam, worked like a charm…The second cam was actually a DCS-931L. Will that version of the cam work with this device type (might be rhetorical).
It looks like the DCS-931L might use different REST commands. If you can figure out what URL you can use to get a jpeg image then I can point you in the right direction for a devicetype that will work.