Open Timnathan opened 6 years ago
It looks like the Device Handler is not receiving a response from the camera. Let's try some command-line HTTP requests and see if the camera responds to those. I'm using (and recommend) httpie. Please post the responses you get from the following queries (replace [user]
, [pass]
, and [camera ip]
as appropriate):
First, let's check the basic device info (feel free to redact serial number, MAC, etc):
http --auth-type digest --auth [user]:[pass] GET [camera ip]/stw-cgi-rest/system/deviceinfo
Then we'll check the videoanalysis
endpoint.
http --auth-type digest --auth [user]:[pass] GET [camera ip]/stw-cgi-rest/eventsources/videoanalysis
Then we can try a simple POST
to turn on detection:
http --auth-type digest --auth [user]:[pass] PUT [camera ip]/stw-cgi-rest/eventsources/videoanalysis "DetectionType"="MotionDetection"
Hello,
I have been having trouble using your code on a V6414BN connected to my ST hub. I believe I have followed the directions but keep getting an that says unavailable and to check config. The camera itself works fine on ST and in the SmartCam app.
I set up a static IP for the camera and the password works in the smart cam app. I am kind of new to this any ideas what I did wrong? Firmware on the camera is v.1.15.
Here's my log:
97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:37 PM: debug Creating camera request with method: GET, uri: /stw-cgi-rest/eventsources/videoanalysis, payload: null, isRetry: false 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:37 PM: debug checkMotionDetectionSetting() 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:37 PM: debug refresh() 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:37 PM: debug updated() 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:36 PM: debug Creating camera request with method: GET, uri: /stw-cgi-rest/eventsources/videoanalysis, payload: null, isRetry: false 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:36 PM: debug checkMotionDetectionSetting() 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:36 PM: debug refresh() 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:36 PM: debug updated() 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:16 PM: debug Creating camera request with method: GET, uri: /stw-cgi-rest/eventsources/videoanalysis, payload: null, isRetry: false 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:16 PM: debug checkMotionDetectionSetting() 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:16 PM: debug refresh() 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:06 PM: debug Creating camera request with method: GET, uri: /stw-cgi-rest/eventsources/videoanalysis, payload: null, isRetry: false 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:06 PM: debug checkMotionDetectionSetting() 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:06 PM: debug refresh() 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:06 PM: debug updated() 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:06 PM: debug Creating camera request with method: GET, uri: /stw-cgi-rest/eventsources/videoanalysis, payload: null, isRetry: false 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:06 PM: debug checkMotionDetectionSetting() 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:06 PM: debug refresh() 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:38:06 PM: debug updated() 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:37:48 PM: debug Creating camera request with method: GET, uri: /stw-cgi-rest/eventsources/videoanalysis, payload: null, isRetry: false 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:37:48 PM: debug checkMotionDetectionSetting() 97b0da30-ce3a-41d2-a976-7c5454d225b7 8:37:48 PM: debug refresh()