Synology Diskstation & Cameras

I am having the exact same issue. I have the correct IP, Port, Username and Password, yet when I hit Next, it returns “Error communicating with the Diskstation. Please check your settings and network connection.”

I am logged into my DS and looking at the logs and see a successful log in from my user as soon as I make the attempt, but still get this error.

Ideas?

Here is what I’m seeing in logging for ST:
444c37c6-7488-4da7-96a4-7e765bca77a9 11:14:55 AM: trace DISKSTATION REPONSE TYPE: Content-Type: text/html; charset="UTF-8"
444c37c6-7488-4da7-96a4-7e765bca77a9 11:14:53 AM: debug Executing GET /webapi/_______________________________________________________entry.cgi?api=SYNO.SurveillanceStation.Camera&method=List&version=1&_sid=Knvqf4eGE1Awk1480LTN994800&additional=device HTTP/1.1
HOST: 192.168.1.6:5000

on Home Hub via sendHubCommand
444c37c6-7488-4da7-96a4-7e765bca77a9 11:14:53 AM: trace sending message to _______________________________________________________entry.cgi
444c37c6-7488-4da7-96a4-7e765bca77a9 11:14:53 AM: debug getChildDevices(false), children=0
444c37c6-7488-4da7-96a4-7e765bca77a9 11:14:53 AM: trace DISKSTATION REPONSE TYPE: Content-Type: text/plain; charset="UTF-8"
444c37c6-7488-4da7-96a4-7e765bca77a9 11:14:52 AM: debug Executing GET /webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=2&account=*****&passwd=*******&session=SurveillanceStation&format=sid HTTP/1.1
HOST: 192.168.1.6:5000

Hmm. I’ll try to give a quick summary of what the app does and then we can try to interpret from your full logs where the error is coming.

The app will do the following when you enter your info and hit next:

  • Do 4 /webapi/query.cgi commands to verify how it should talk to the DS
  • Login using /webapi/auth.cgi
  • List your cameras using /webapi/SurveillanceStation/camera.cgi?..&method=List
  • Get the capabilities for the first camera using /webapi/SurveillanceStation/camera.cgi?..&method=GetCapability
  • Get presets and patrols (if needed) for the first camera (method=ListPreset & method=ListPatrol)
  • Repeat the last 2 steps for each camera

If there is an error in one of these steps or if the process times out before it is complete (could happen with slow network connection or tons of cameras?), you will see the error message.

I am using the main DiskStation port and not a separate port for SurveillanceStation. If it’s possible for those ports to be different, then it’s possible there could be an error with that configuration.

See anything that fits what you are seeing with your errors?

Hi @swanny I’m having the same issue. I’m using the DiskStation port 5000 and it appears from the logs that I successfully logon from the SmartThings hub. I get different errors.

“Error communicating with the Diskstation. Please check your settings and network connection.”
“Network Timeout. Check your ip address and port. You must access a local IP address and a non-https port”
"logon error. check logon credentials.

Hi @swanny, After the SurveillanceStation upgrade to new version, I can not use the device and Apps that you create, and I also try to re-setup the device and program, but just as previoous description. the exactly same error message after we fill the IP address ports and username and password… I did not change anything, but It just can to work, Could you help to review the code under new SurveillanceStation 7.0-3742

Hi ! @swanny, I have revert the SurveillanceStation back to previous version, It does not work, I have re-installed the SmartApps and Device from your source code, It also does not help, same error message.
“Error communicating with the Diskstation. Please check your settings and network connection.”
“Network Timeout. Check your ip address and port. You must access a local IP address and a non-https port”

Since I have worked for a long time until 4 days ago. so I do not think it is due to the setup issue. the only thing I did is the upgrade of Surveillance Station, but revert it back to previous version. did not bring the device working again.

I really suspect it may due to the SmartThing HUB upgrade recently ? Have you verify your code with recently HUB upgrade, I have verify everything I can do here…

I finally got a chance to look into this. I have uploaded a new version that works for me with SS 7.0.3742. Let me know if you run into any issues. There were several small changes to the API that were causing issues with my local setup. I’m not sure if there were other changes that affect other setups.

Hi ! Swanny

 Thanks for you to spend your time .. but It seem though it have solve something but still fail,, Here is my log from SmartThings,, hope it help at debugging..

5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:25秒: trace {“error”:{“code”:400,“errors”:{“param1”:"",“param2”:""}},“success”:false}
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:25秒: trace DISKSTATION REPONSE TYPE: Content-Type: text/html; charset="UTF-8"
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:21秒: debug Executing GET /webapi/_______________________________________________________entry.cgi?api=SYNO.SurveillanceStation.PTZ&method=ListPreset&version=1&_sid=nPchHFYKAl5FEB2HCN09382&cameraId=2 HTTP/1.1
HOST: 192.168.1.100:5000

on Home大城至善 Hub via sendHubCommand
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:21秒: trace sending message to _______________________________________________________entry.cgi
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:21秒: debug getChildDevices(false), children=0
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:21秒: trace {“data”:{“audioOut”:false,“ptzContinuous”:false,“ptzHome”:false,“ptzPan”:false,“ptzPresetNumber”:0,“ptzTilt”:false,“ptzZoom”:false},“success”:true}
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:21秒: trace DISKSTATION REPONSE TYPE: Content-Type: text/html; charset="UTF-8"
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:17秒: debug Executing GET /webapi/_______________________________________________________entry.cgi?api=SYNO.SurveillanceStation.Camera&method=GetCapabilityByCamId&version=4&_sid=nPchHFYKAl5FEB2HCN09382&cameraId=2 HTTP/1.1
HOST: 192.168.1.100:5000

on Home大城至善 Hub via sendHubCommand
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:17秒: trace sending message to _______________________________________________________entry.cgi
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:14秒: debug getChildDevices(false), children=0
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:14秒: trace {“data”:{“cameras”:[{“ADCap”:0,“DINum”:0,“DONum”:0,“MDCap”:0,“TDCap”:0,“additional”:{“device”:{“channel”:“1”,“httpPort”:80,“model”:“DCS-930L”,“vendor”:“D-Link”}},“analyticsBeep”:false,“analyticsDirection”:1,“analyticsDwellTime”:5,“analyticsFrame”:true,“analyticsHeight”:0,“analyticsLine”:false,“analyticsObjSize”:0,“analyticsRegion”:"",“analyticsSens”:1,“analyticsType”:0,“analyticsVirtualFence”:false,“analyticsWidth”:0,“audioCap”:false,“audioOut”:false,“audioType”:0,“autoFocus”:false,“autoPan”:0,“blAudioPriv”:true,“blLiveviewPriv”:true,“blPresetSpeed”:false,“camIdOnRecServer”:0,“camLiveMode”:0,“camMountType”:0,“camPath”:“aHR0cDovL2FkbWluOjA3MzExMDE1QDE5Mi4xNjguMS4xMTg6ODAvbWpwZWcuY2dp”,“camStatus”:1,“channel_id”:“1”,“daybegin”:8,“dayend”:18,“deleted”:false,“detailInfo”:{“MdDetSrc”:1,“camAudioType”:0,“camChannel”:“1”,“camFolder”:“DCS-930L”,“camFov”:"",“camFps”:20,“camIP”:“192.168.1.118”,“camIsRotByDate”:false,“camIsRotBySpace”:true,“camLiveBitrateCtrl”:1,“camLiveCbrBitrate”:1000,“camLiveFps”:20,“camLiveMode”:0,"camLiveQ…[TRUNCATED]
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:14秒: trace DISKSTATION REPONSE TYPE: Content-Type: text/html; charset="UTF-8"
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:09秒: debug Executing GET /webapi/_______________________________________________________entry.cgi?api=SYNO.SurveillanceStation.Camera&method=List&version=1&_sid=nPchHFYKAl5FEB2HCN09382&additional=device HTTP/1.1
HOST: 192.168.1.100:5000

on Home大城至善 Hub via sendHubCommand
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:09秒: trace sending message to _______________________________________________________entry.cgi
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:09秒: debug getChildDevices(false), children=0
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:09秒: trace DISKSTATION REPONSE TYPE: Content-Type: text/plain; charset="UTF-8"
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:05秒: debug Executing GET /webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=2&account=admin&passwd=07311015&session=SurveillanceStation&format=sid HTTP/1.1
HOST: 192.168.1.100:5000

on Home大城至善 Hub via sendHubCommand
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:05秒: trace sending message to auth.cgi
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:05秒: debug getChildDevices(false), children=0
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:05秒: trace DISKSTATION REPONSE TYPE: Content-Type: text/plain; charset="UTF-8"
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:04秒: debug Executing GET /webapi/query.cgi?api=SYNO.API.Info&method=Query&version=1&query=SYNO.SurveillanceStation.ExternalRecording HTTP/1.1
HOST: 192.168.1.100:5000

on Home大城至善 Hub via sendHubCommand
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:04秒: trace sending message to query.cgi
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:04秒: debug getChildDevices(false), children=0
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:04秒: trace DISKSTATION REPONSE TYPE: Content-Type: text/plain; charset="UTF-8"
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:02秒: debug Executing GET /webapi/query.cgi?api=SYNO.API.Info&method=Query&version=1&query=SYNO.SurveillanceStation.PTZ HTTP/1.1
HOST: 192.168.1.100:5000

on Home大城至善 Hub via sendHubCommand
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:02秒: trace sending message to query.cgi
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:02秒: debug getChildDevices(false), children=0
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:02秒: trace DISKSTATION REPONSE TYPE: Content-Type: text/plain; charset="UTF-8"
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:00秒: debug Executing GET /webapi/query.cgi?api=SYNO.API.Info&method=Query&version=1&query=SYNO.SurveillanceStation.Camera HTTP/1.1
HOST: 192.168.1.100:5000

on Home大城至善 Hub via sendHubCommand
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:00秒: trace sending message to query.cgi
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:00秒: debug getChildDevices(false), children=0
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:42:00秒: trace DISKSTATION REPONSE TYPE: Content-Type: text/plain; charset="UTF-8"
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:41:57秒: debug Executing GET /webapi/query.cgi?api=SYNO.API.Info&method=Query&version=1&query=SYNO.API.Auth HTTP/1.1
HOST: 192.168.1.100:5000

on Home大城至善 Hub via sendHubCommand
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:41:57秒: trace sending message to query.cgi
5682beb8-1ffd-477c-a42b-63f21e8e0dc7 GMT+815:41:57秒: trace force refresh of DS info

I see what your issue is, but I don’t have time tonight to set up a case to reproduce it locally. I have made a fix though and uploaded it. If that doesn’t work for you, I’ll have to set up a similar case here this weekend to debug it further.

It is work to connect the DCS-930L, but it take several time. and I find the Motion sensor, take photo and Recording are not working anymore… Please check the logging from SmartThings after I press the Taking and Record. I have test the message after setup procedure with motion sensor at Disktation, but There is no any Motion sense message from SmartThings ( It did from DS-CAM notification.)

One thing I notice in the SmartThings Device list , the DCS-930L Device Network ID is called DCS-930L ?, but it should be something like =>C0A80175:D995 Is it ( the ip:port to hex ? here is 192.168.1.100:5000 or the DCS-930L ip and port (192.168.1.118:80 ?)

0df00755-7385-4d73-9f2f-59de29dd7aa1 GMT+812:41:48秒: trace could not find device DNI = DCS-930L
0df00755-7385-4d73-9f2f-59de29dd7aa1 GMT+812:41:48秒: trace stop recording
0df00755-7385-4d73-9f2f-59de29dd7aa1 GMT+812:41:39秒: trace could not find device DNI = DCS-930L
0df00755-7385-4d73-9f2f-59de29dd7aa1 GMT+812:41:39秒: trace start recording
0df00755-7385-4d73-9f2f-59de29dd7aa1 GMT+812:41:09秒: trace could not find device DNI = DCS-930L
0df00755-7385-4d73-9f2f-59de29dd7aa1 GMT+812:41:09秒: trace take picture
0df00755-7385-4d73-9f2f-59de29dd7aa1 GMT+812:40:11秒: trace could not find device DNI = DCS-930L
0df00755-7385-4d73-9f2f-59de29dd7aa1 GMT+812:40:11秒: trace stop recording
0df00755-7385-4d73-9f2f-59de29dd7aa1 GMT+812:38:44秒: trace could not find device DNI = DCS-930L
0df00755-7385-4d73-9f2f-59de29dd7aa1 GMT+812:38:44秒: trace start recording
0df00755-7385-4d73-9f2f-59de29dd7aa1 GMT+812:38:26秒: trace could not find device DNI = DCS-930L
0df00755-7385-4d73-9f2f-59de29dd7aa1 GMT+812:38:26秒: trace stop recording
0df00755-7385-4d73-9f2f-59de29dd7aa1 GMT+812:37:56秒: trace could not find device DNI = DCS-930L
0df00755-7385-4d73-9f2f-59de29dd7aa1 GMT+812:37:56秒: trace start recording
0df00755-7385-4d73-9f2f-59de29dd7aa1 GMT+812:36:58秒: trace could not find device DNI = DCS-930L
0df00755-7385-4d73-9f2f-59de29dd7aa1 GMT+812:36:58秒: trace stop recording

I have updated the device type and the SmartApp with a fix for the record button. I also updated the steps for motion detection based on the new SurveillanceStation UI. Note that you may need to copy the new motion detection link from the SmartApp using those steps if the test message isn’t recognized when sent from SS.

The Device Network ID is expected to be the name of the camera. It’s how the Smart App knows which camera it is in Surveillence Station. All communication is done through the SmartApp so the devices don’t need their IP address in the DNI.

Swanny

It work just like before after your updates program install in my SmartThing, Thank you very much for your help

Glad it worked for you finally. :smile:

Swanny

It seem the motion sensor does not work, though setup of motion detection at SmartThing Apps get response when press the test message at Disktation, but It did not have any motion alert after setup. the motion detection is OK as I get the DS-CAM alarm message. but nothing from SmartThings..below is the log from DCS-930 at SmartThings Live Log

DISKTATION DCS-930L
2d4beae9-c913-4917-b387-e4cb6f44c982 GMT+817:32:44秒: debug stop logging info
2d4beae9-c913-4917-b387-e4cb6f44c982 GMT+817:32:44秒: debug [[multiDI:false, fisheyeType:0, video_mirror:true, exposure_mode:4, blPresetSpeed:false, setDOCap:false, param_chklist:0, fisheyeDispMode:, analyticsDwellTime:5, video_rotation:0, type:1, dayend:18, camMountType:0, exposure_control:6, isStatusUnrecognized:false, blLiveviewPriv:true, feRegionList:[], snapshot_path:/webapi/_______________________________________________________entry.cgi?api=SYNO.SurveillanceStation.Camera&method=GetSnapshot&version=1&cameraId=2×tamp=1424682982&preview=true, hasCamParam:false, rotation_by_space:10, autoFocus:false, mute:false, tvStandard:0, dsPort:9900, enabled:true, rotation_by_date:30, is_rotated_by_space:true, host:192.168.1.118, imageEnhancement:[sharpness:0, contrast:0, brightness:0, saturation:0], daybegin:8, status:0, osd_format:0, blAudioPriv:true, DINum:0, fps:20, audioCap:false, camStatus:1, deleted:false, channel_id:1, is_rotated_by_date:false, update_time:1424679394, ptzCap:0, volume_space:5.272, stm_info:[[fps:20, quality:5, resolution:640x480, type:0], [fps:20, quality:5, resolution:640x480, type:1], [fps:20, quality:5, resolution:640x480, type:2]], ADCap:0, quality:5, detailInfo:[camRecStreamNo:0, camMobileBitrateCtrl:1, camMobileFps:20, camVendor:D-Link, camVideoType:MJPEG, edgeStgRecDays:127, camMountType:0, camFps:20, edgeStgEnabled:false, camModel:DCS-930L, camServer:0, edgeStgRecStartTime:00:00, camMobileQuality:5, customAlarmDetect:0, camRotByDate:30, camChannel:1, camLiveCbrBitrate:1000, camLiveFps:20, edgeStgRetrieveAction:2, MdDetSrc:1, camMobileStreamNo:0, camIsRotBySpace:true, camPrefix:DCS-930L, camSchedule:[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, …[TRUNCATED]
2d4beae9-c913-4917-b387-e4cb6f44c982 GMT+817:32:44秒: debug [D-Link_DCS-930L:[ptzPan:false, ptzHome:false, ptzContinuous:false, audioOut:false, ptzPresetNumber:0, ptzZoom:false, ptzTilt:false]]
2d4beae9-c913-4917-b387-e4cb6f44c982 GMT+817:32:44秒: debug [null, null, null]
2d4beae9-c913-4917-b387-e4cb6f44c982 GMT+817:32:44秒: debug [null, null, null]
2d4beae9-c913-4917-b387-e4cb6f44c982 GMT+817:32:44秒: debug start logging info
2d4beae9-c913-4917-b387-e4cb6f44c982 GMT+817:32:43秒: trace refresh starting
2d4beae9-c913-4917-b387-e4cb6f44c982 GMT+817:32:43秒: trace refresh
2d4beae9-c913-4917-b387-e4cb6f44c982 GMT+817:31:44秒: trace image stored
2d4beae9-c913-4917-b387-e4cb6f44c982 GMT+817:31:36秒: trace take picture
2d4beae9-c913-4917-b387-e4cb6f44c982 GMT+817:11:04秒: trace autoon
2d4beae9-c913-4917-b387-e4cb6f44c982 GMT+817:10:15秒: trace image stored
2d4beae9-c913-4917-b387-e4cb6f44c982 GMT+817:10:08秒: trace take picture

MOTION ALERT

d01bc634-4872-4884-82c7-bf39e45d6caa GMT+817:34:14秒: trace motion.active from Diskstation DCS-930L was provided with motionActiveHandler…creating subscription
d01bc634-4872-4884-82c7-bf39e45d6caa GMT+817:34:14秒: trace subscribing to [Diskstation DCS-930L]
d01bc634-4872-4884-82c7-bf39e45d6caa GMT+817:34:14秒: trace Motion Alerts is attempting to unsubscribe from all events
d01bc634-4872-4884-82c7-bf39e45d6caa GMT+817:34:14秒: trace Motion Alerts updated with settings: [pushNotification:true]
d01bc634-4872-4884-82c7-bf39e45d6caa GMT+817:33:47秒: trace motion.active from Diskstation DCS-930L was provided with motionActiveHandler…creating subscription
d01bc634-4872-4884-82c7-bf39e45d6caa GMT+817:33:47秒: trace subscribing to [Diskstation DCS-930L]
d01bc634-4872-4884-82c7-bf39e45d6caa GMT+817:33:47秒: trace Motion Alerts is attempting to unsubscribe from all events
d01bc634-4872-4884-82c7-bf39e45d6caa GMT+817:33:47秒: trace Motion Alerts updated with settings: [pushNotification:true]
d01bc634-4872-4884-82c7-bf39e45d6caa GMT+817:06:45秒: trace motion.active from Diskstation DCS-930L was provided with motionActiveHandler…creating subscription
d01bc634-4872-4884-82c7-bf39e45d6caa GMT+817:06:45秒: trace subscribing to [Diskstation DCS-930L]
d01bc634-4872-4884-82c7-bf39e45d6caa GMT+817:06:45秒: trace Motion Alerts is attempting to unsubscribe from all events
d01bc634-4872-4884-82c7-bf39e45d6caa GMT+817:06:45秒: trace Motion Alerts updated with settings: [pushNotification:true]
d01bc634-4872-4884-82c7-bf39e45d6caa GMT+817:06:44秒: trace motion.active from Diskstation DCS-930L was provided with motionActiveHandler…creating subscription
d01bc634-4872-4884-82c7-bf39e45d6caa GMT+817:06:44秒: trace subscribing to [Diskstation DCS-930L]
d01bc634-4872-4884-82c7-bf39e45d6caa GMT+817:06:44秒: trace Motion Alerts installed with settings: [pushNotification:true]

Did you follow the instructions at the bottom of the motion setup page in the SmartApp to enable the sending of SMS messages when motion occurs? It sounds like the test message works fine, so I’m guessing this is the missing part.

Hi ! Swanny

 I do follow up the procedure as describe at below

“13. Now click on the Advanced tab in the Nofications window”
“14. Go to Camera on the left side of this pane and then click Motion Detected”
“15. Choose ‘Edit’ and ‘Edit’ on the top left of the pane”
“16. Select SMS as the Notification Type”
"If the page does not say ‘success’ within 10-15 seconds after sending the test message, " +
"go to the previous page and come back to refresh the screen again. If you still don’t have " +
“the success message, retrace these steps.”

 I have attached 2 snapshot, though you may not be abel to read it, I did create the those procedure at Disktation, and I also receive "Success" when finish all procedure,, but still no motion alert message.

.


Hi ! Swanny

  Any idea of why the motion detection does not work at SmartThings, ? I try to do everything from beginning, but still no detection,, but other function like Take and record is OK, DCS-930L motion detect also OK as I have the Motion Alert from DS CAM Apps.  Please help to review if any missing function at motion handler due to the upgrade..

I think I see the issue. The code is looking for the following text in the SMS message to determine what camera had motion:

Camera %CAMERA% on %SS_HOSTNAME% has detected motion

With your language not defaulted to English, your message is not getting parsed correctly. You should be able to add this text to the current message shown in your bottom screenshot or replace the current text.

Hi ! Swanny

  yes, After replace the String at Disktstaion, It do trigger the Motion, but Message still not come out, check the Live Log, Have some error message at below when I try to trigger the motion. Do know where is the java.lang.ClassCastException come from ?

635cfdd7-6eb0-4205-8256-4551c953f8b3 GMT+811:02:35秒: debug getChildDevices(false), children=1
635cfdd7-6eb0-4205-8256-4551c953f8b3 GMT+811:02:35秒: trace motion on child device: Diskstation DCS-930L
2d4beae9-c913-4917-b387-e4cb6f44c982 GMT+811:02:35秒: error java.lang.ClassCastException
635cfdd7-6eb0-4205-8256-4551c953f8b3 GMT+811:02:33秒: debug getChildDevices(false), children=1
635cfdd7-6eb0-4205-8256-4551c953f8b3 GMT+811:02:33秒: trace motion on child device: Diskstation DCS-930L
2d4beae9-c913-4917-b387-e4cb6f44c982 GMT+811:02:33秒: error java.lang.ClassCastException
11:2:25 AM: info Waiting on events…
11:2:25 AM: info For past logs for individual things go to the My Devices section, find the device and click on the Events link on the device information page.
11:2:25 AM: info This console provides live logging of your SmartThings.

Hi Swanny,

Awesome job with this. One feature I am missing is the ability to enable and disable a camera. This was not originally possible through the Synology API but has been added now! I would like to connect this with the changing of modes in ST.

I guess its not possible to have multiple of the same capabilities and the switch one is already used for “Recording” on/off. So unless ST would be willing to add a new capability we would need to find another way to do this.

Maybe by adding another Device Type ?

For the moment I am changing to code to replace the record start/stop by camera enable/disable.

Thanks,
Serge

@mitchell_lu66 I put up a small change to the camera device type to see if that fixes the issue. Not sure it will though as I’m not able to reproduce the issue here. I may need to add a bunch of test code and give you a new version this weekend.

@ssozonoff We could maybe use lock/unlock for the capability that disables and enables. It’s not the cleanest but it could work. What do you think?