So, I have been using this binding for quite some time now, for motion events. I have Dahuas and Hikvisions, and different types of motion work just great. (Mostly using line, area and motion).
However, would like to enhance this now, to also store (atleast) one picture of the actual motion event, and present it in basic UI.
I have my test Dahua set-up as follows;
POLL_CAMERA_MS=10000,
SERVER_PORT=50004,
IMAGE_UPDATE_EVENTS=2,
UPDATE_IMAGE=true,
I read in the oh log, that the image is pulled from the camera on motion, but item image channel is not updated. Should it not do this? Or do I have to do this from a rule? Obviously this is why my picture in basic ui is never updated.
I have read the docs many times now, and I suspect it is too many options for me… Most examples seems to be about having the image update continuously, something that I’m not interested in.
Not even sure if I should use the image channel for this purpose, but I think I should.
I do not have each camera in my sitemap, only the camera group.
Group item=gCameras
And for this test cam, items;
Image FrontCamImage "Framsidekamera" (gCameras) {channel="ipcamera:DAHUA:frontside_cam:image"}
Switch FrontCamUpdateImage "Framsida Ta ny bild" (gCameras) {channel="ipcamera:DAHUA:frontside_cam:updateImageNow"}
Switch FrontCamCrossing "Framsida linje" (gPersist,gCameras) {channel="ipcamera:DAHUA:frontside_cam:lineCrossingAlarm"}
Switch FrontCamMotion "Framsidekamera rörelse" (gPersist,gCameras) {channel="ipcamera:DAHUA:frontside_cam:motionAlarm"}
Switch FrontCamFaceDet "Framsidekamera ansiktesdet" (gPersist,gCameras) {channel="ipcamera:DAHUA:frontside_cam:faceDetected"}
Switch FrontCamIntrusion "Framsidekamera område" (gPersist,gCameras) {channel="ipcamera:DAHUA:frontside_cam:fieldDetectionAlarm"}
String FrontsideCamLastEvt "Framsidekamera senaste" (gCameras) {channel="ipcamera:DAHUA:frontside_cam:lastMotionType"}
Dimmer FrontsideCamIR "Framsidekamera IR ljus" (gCameras) {channel="ipcamera:DAHUA:frontside_cam:enableLED"}
DateTime FrontsideCamLastMotion "Framsidekamera tidpunkt [%1$tH:%1$tM %1$tY-%1$tm-%1$td]" (gCameras)
Switch FrontsideCamMotionEnable "Framsidekamera rörelsedetektering" (gCameras) {channel="ipcamera:DAHUA:frontside_cam:enableMotionAlarm"}
What am I doing wrong?
Sorry for the very basic question, but I think I have turned blind to the solution now…