Hey @blebson,
Very nice improvement over the original/native Dlink camera handler which appears to no longer be available. Was extremely happy to find not only something available, but something with much better support and interface. Thanks so much for contributing this to the community. I am having some issues and would be happy to help troubleshoot and potentially help make further improvements.
SmartThings Mobile Version Number: 2.9.1 (1422)
Phone Make and Model: iPhone 7
Mobile OS Version (Android, iOS, Windows): 11.0.2
Camera Model: DCS-5222LB
Camera Firmware: 2.14
A screenshot or list of your settings: Model - DCS-5222L - Camera/Video IP 10.0.0.12 - Port 80/554 - Camera preset 1
A list of functions that work: Most things
A list of functions that do not work: Described below
Iām presently unable to get the camera to start recording when connected to Security and an intrusion takes place. The alert stream says āCamera is unavailableā and there are no errors (or any camera specific logging for that matter) being produced when a security event takes places. The only seemingly applicable log is ācapturing clip, duration: 120000, pre: 9999ā and the full log is at the bottom. Additionally, there are no camera logs produced in the Advanced settings section of DLINK as if an attempt to record is not being made. Is an external IP address and port forwarding required to start recording when a security event is triggered?
Unrelated and appears to already be reported, but pressing any button in the SmartApp appears to disconnect the live stream. SD card is installed, 1 preset position is configured as default, nothing else out of the ordinary is configured AFAIK. I originally could not get the live stream working because I used my Dlink username for Admin instead of āadminā and wondering if mentioning the default username of āadminā in the original post would be beneficial.
I am a programmer, though not particularly familiar with Groovy yet, and would be happy to do any further troubleshooting or code changes. In anticipation of potentially making changes, I have forked the repository (yesterday) and utilized it for my setup so I should be able to try changes pretty easily. It is worth noting that I failed to check āPublishedā when I setup the SmartApp and wondering what the fall out of that may be.
Thanks so much in advance.
d8a68905-662d-462c-aaa7-bdd43df9ccc5 7:31:17 AM: debug motionOrContactHandler(Sensor Backdoor contact:closed)
7156e7a6-983d-4f4f-b0a3-f31e16e64478 7:31:15 AM: info SHM getInitialData 0.081 (00) incidents:01, locationId:03313a1e-561e-4c78-bc19-af4a96abacfd
7156e7a6-983d-4f4f-b0a3-f31e16e64478 7:31:15 AM: debug summaryData: [[icon:indicator-dot-red, iconColor:#ea5462, value:Intrusion Detected!, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!]]] - [[icon:indicator-dot-red, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!], value:Intrusion Detected!, iconColor:#ea5462]]
7156e7a6-983d-4f4f-b0a3-f31e16e64478 7:31:14 AM: info SHM getInitialData 0.093 (00) incidents:01, locationId:03313a1e-561e-4c78-bc19-af4a96abacfd
7156e7a6-983d-4f4f-b0a3-f31e16e64478 7:31:14 AM: debug summaryData: [[icon:indicator-dot-red, iconColor:#ea5462, value:Intrusion Detected!, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!]]] - [[icon:indicator-dot-red, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!], value:Intrusion Detected!, iconColor:#ea5462]]
7156e7a6-983d-4f4f-b0a3-f31e16e64478 7:31:13 AM: trace onSecurityReact([753912fe-0202-48e8-90f1-e0ba099559a9:[[attribute:contact, value:open, timestamp:1509982273193]]])
d8a68905-662d-462c-aaa7-bdd43df9ccc5 7:31:13 AM: trace capturing clip, duration: 120000, pre: 9999
7156e7a6-983d-4f4f-b0a3-f31e16e64478 7:31:13 AM: debug summaryData: [[icon:indicator-dot-red, iconColor:#ea5462, value:Intrusion Detected!, heroInfo:[heroStatus:incident, heroMessage:Intrusion Detected!]]] - [[icon:indicator-dot-green, value:Armed (Stay), iconColor:#79b821], [icon:indicator-dot-green, heroInfo:[heroStatus:ok, heroMessage:Everything OK], value:Everything OK, iconColor:#79b821]]
d8a68905-662d-462c-aaa7-bdd43df9ccc5 7:31:13 AM: info SHM-INCIDENT SECURITY ISA: d8a68905-662d-462c-aaa7-bdd43df9ccc5
d8a68905-662d-462c-aaa7-bdd43df9ccc5 7:31:13 AM: trace No delay
d8a68905-662d-462c-aaa7-bdd43df9ccc5 7:31:13 AM: info SHM intrusionHandler(contact:open) - stay, locationId: 03313a1e-561e-4c78-bc19-af4a96abacfd, ISA: d8a68905-662d-462c-aaa7-bdd43df9ccc5
d8a68905-662d-462c-aaa7-bdd43df9ccc5 7:31:13 AM: info SHM isActiveSensor(contact:open, app: stay, location: stay) = true, locationId: 03313a1e-561e-4c78-bc19-af4a96abacfd, ISA: d8a68905-662d-462c-aaa7-bdd43df9ccc5
d8a68905-662d-462c-aaa7-bdd43df9ccc5 7:31:13 AM: trace devices=[Sensor Backdoor, Sensor Garage Door, Sensor Front Door]
d8a68905-662d-462c-aaa7-bdd43df9ccc5 7:31:13 AM: trace isStayModeSensor(contact: open)
d8a68905-662d-462c-aaa7-bdd43df9ccc5 7:31:13 AM: debug motionOrContactHandler(Sensor Backdoor contact:open)