Thanks again for writing this code.
I can’t seem to be able to add my camera through the app. It crashes at the last screen (connects to diskstation, finds the camera, I select it. But when I hit connect it crashes the smarthings app and no device added…
Any suggestions? Thanks and see log below
The last line is an error…
2e953fca-586d-46d2-8223-51678522380e 10:48:47 AM: error org.springframework.security.oauth2.provider.NoSuchClientException: No client with requested id: null @ line 52
2e953fca-586d-46d2-8223-51678522380e 10:48:33 AM: debug getChildDevices(false), children=0
2e953fca-586d-46d2-8223-51678522380e 10:48:33 AM: trace {“error”:{“code”:400,“errors”:{“param1”:"",“param2”:""}},“success”:false}
2e953fca-586d-46d2-8223-51678522380e 10:48:33 AM: trace DISKSTATION REPONSE TYPE: Content-Type: application/json; charset=“UTF-8"
2e953fca-586d-46d2-8223-51678522380e 10:48:33 AM: debug getChildDevices(false), children=0
2e953fca-586d-46d2-8223-51678522380e 10:48:33 AM: trace {“error”:{“code”:400,“errors”:{“param1”:”",“param2”:""}},“success”:false}
2e953fca-586d-46d2-8223-51678522380e 10:48:33 AM: trace DISKSTATION REPONSE TYPE: Content-Type: application/json; charset=“UTF-8"
2e953fca-586d-46d2-8223-51678522380e 10:48:32 AM: debug getChildDevices(false), children=0
2e953fca-586d-46d2-8223-51678522380e 10:48:32 AM: trace {“data”:{“audioOut”:false,“fisheyeType”:{},“ptzContinuous”:false,“ptzHome”:false,“ptzPan”:false,“ptzPresetNumber”:0,“ptzTilt”:false,“ptzZoom”:false},“success”:true}
2e953fca-586d-46d2-8223-51678522380e 10:48:32 AM: trace DISKSTATION REPONSE TYPE: Content-Type: application/json; charset=“UTF-8"
2e953fca-586d-46d2-8223-51678522380e 10:48:32 AM: trace {“data”:{“cameras”:[{“ADCap”:0,“DINum”:0,“DONum”:0,“MDCap”:1,“TDCap”:0,“additional”:{“device”:{“channel”:“1”,“httpPort”:80,“model”:“DCS-932L”,“vendor”:“D-Link”}},“audioCap”:false,“audioOut”:false,“audioType”:0,“autoFocus”:false,“autoPan”:0,“blAudioDisableRec”:false,“blAudioPriv”:true,“blDisableRec”:false,“blLiveviewPriv”:true,“blPresetSpeed”:false,“blReceivePocZero”:false,“camIdOnRecServer”:0,“camLiveMode”:0,“camMountType”:0,“camPath”:“aHR0cDovL2FkbWluOnBvaXV5dHJlQDE5Mi4xNjguMS45Nzo4MC9tanBlZy5jZ2k=”,“camRotOption”:0,“camStatus”:1,“channel_id”:“1”,“daybegin”:8,“dayend”:18,“deleted”:false,“detailInfo”:{“blAudioDisableRec”:false,“blDisableRec”:false,“camAudioType”:0,“camChannel”:“1”,“camFolder”:“Dlink DCS 932L”,“camFov”:””,“camFps”:7,“camIP”:“192.168.1.97”,“camIsRotByDate”:true,“camIsRotBySpace”:true,“camIsSetEvtPrefix”:false,“camIsSetRecFolder”:false,“camLiveBitrateCtrl”:1,“camLiveCbrBitrate”:0,“camLiveFps”:7,“camLiveMode”:0,“camLiveQuality”:“5”,“camLiveResolution”:“640x480”,“camLiveStreamNo”:0,“camMobileBitrateCtrl”:…[TRUNCATED]
2e953fca-586d-46d2-8223-51678522380e 10:48:32 AM: debug getChildDevices(false), children=0
2e953fca-586d-46d2-8223-51678522380e 10:48:32 AM: trace DISKSTATION REPONSE TYPE: Content-Type: application/json; charset=“UTF-8"
2e953fca-586d-46d2-8223-51678522380e 10:48:30 AM: debug getChildDevices(false), children=0
2e953fca-586d-46d2-8223-51678522380e 10:48:30 AM: trace {“data”:{“sid”:“X69cu5HQRgUcgCBL8N00871”},“success”:true}
2e953fca-586d-46d2-8223-51678522380e 10:48:30 AM: trace DISKSTATION REPONSE TYPE: Content-Type: text/plain; charset=“UTF-8"
2e953fca-586d-46d2-8223-51678522380e 10:48:29 AM: debug getChildDevices(false), children=0
2e953fca-586d-46d2-8223-51678522380e 10:48:29 AM: trace {“data”:{“SYNO.SurveillanceStation.ExternalRecording”:{“maxVersion”:2,“minVersion”:1,“path”:”_______________________________________________________entry.cgi”,“requestFormat”:“JSON”}},“success”:true}
2e953fca-586d-46d2-8223-51678522380e 10:48:29 AM: trace DISKSTATION REPONSE TYPE: Content-Type: text/plain; charset=“UTF-8"
2e953fca-586d-46d2-8223-51678522380e 10:48:29 AM: debug getChildDevices(false), children=0
2e953fca-586d-46d2-8223-51678522380e 10:48:29 AM: trace {“data”:{“SYNO.SurveillanceStation.PTZ”:{“maxVersion”:4,“minVersion”:1,“path”:”_______________________________________________________entry.cgi",“requestFormat”:“JSON”}},“success”:true}
2e953fca-586d-46d2-8223-51678522380e 10:48:29 AM: trace DISKSTATION REPONSE TYPE: Content-Type: text/plain; charset=“UTF-8"
2e953fca-586d-46d2-8223-51678522380e 10:48:28 AM: debug getChildDevices(false), children=0
2e953fca-586d-46d2-8223-51678522380e 10:48:28 AM: trace {“data”:{“SYNO.SurveillanceStation.Camera”:{“maxVersion”:8,“minVersion”:1,“path”:”_______________________________________________________entry.cgi",“requestFormat”:“JSON”}},“success”:true}
2e953fca-586d-46d2-8223-51678522380e 10:48:28 AM: trace DISKSTATION REPONSE TYPE: Content-Type: text/plain; charset="UTF-8"
2e953fca-586d-46d2-8223-51678522380e 10:48:27 AM: debug getChildDevices(false), children=0
2e953fca-586d-46d2-8223-51678522380e 10:48:27 AM: trace {“data”:{“SYNO.API.Auth”:{“maxVersion”:4,“minVersion”:1,“path”:“auth.cgi”}},“success”:true}
2e953fca-586d-46d2-8223-51678522380e 10:48:27 AM: trace DISKSTATION REPONSE TYPE: Content-Type: text/plain; charset="UTF-8"
2e953fca-586d-46d2-8223-51678522380e 10:48:27 AM: trace force refresh of DS info
2e953fca-586d-46d2-8223-51678522380e 10:47:47 AM: trace subscribe to location