[App] Hikvision

Post can’t be empty

Hi Mapulu,

Ok, thx for the feedback. :slight_smile:

I’m planning on buying the Acusense in a few months, I’ll let you know how it goes.

grtz

Perfect! Just what I needed.
I can confirm it works with 2342, 2355 and 2385 cameras.

I haven’t checked the API specs, but do you know if it supports disabling the camera/video stream?

I would like to be able to disable the camera/stream at certain times, and it would be so much easier I I could do it with Homey

Can also confirm that it works with motion detection and line crossing. :slightly_smiling_face:

I’ve connected sucesfully, I can grab images from Homey.
But the alarm trigger doesnt work I have checked Notify Surveillance Center.
In the Hik-Connect app I do get notifications. What could be the problem?

@mapulu I just had a check in the stream /ISAPI/Event/notification/alertStream

and noticed that for me there is no channelid but a dynChannelID so i think it goes wrong there since you are checking like this.
var index = parseInt(result[‘EventNotificationAlert’][‘channelID’][0])

see below my output, as you can see for some message its channelID and for some its dynChannelID I think if you change it so it also looks for dynChannelID that it will work for me and probably for others too

<-EventNotificationAlert version=“1.0” xmlns=“http://www.hikvision.com/ver20/XMLSchema”>
<-ipAddress>192.168.1.103<-/ipAddress>
<-portNo>80<-/portNo>
<-protocol>HTTP<-/protocol>
<-macAddress>f8:4d:fc:ed:96:35<-/macAddress>
<-channelID>0<-/channelID>
<-dateTime>2019-08-22T14:47:23+01:00<-/dateTime>
<-activePostCount>0<-/activePostCount>
<-eventType>videoloss<-/eventType>
<-eventState>inactive<-/eventState>
<-eventDescription>videoloss alarm<-/eventDescription>
<-/EventNotificationAlert>
–boundary
Content-Type: application/xml; charset=“UTF-8”
Content-Length: 465

<-EventNotificationAlert version=“1.0” xmlns=“http://www.hikvision.com/ver20/XMLSchema”>
<-ipAddress>192.168.1.103<-/ipAddress>
<-portNo>80<-/portNo>
<-protocol>HTTP<-/protocol>
<-macAddress>f8:4d:fc:ed:96:35<-/macAddress>
<-dynChannelID>1<-/dynChannelID>
<-dateTime>2019-08-22T14:47:25+01:00<-/dateTime>
<-activePostCount>12<-/activePostCount>
<-eventType>VMD<-/eventType>
<-eventState>active<-/eventState>
<-eventDescription>Motion alarm<-/eventDescription>
<-/EventNotificationAlert>
–boundary
Content-Type: application/xml; charset=“UTF-8”
Content-Length: 465

Post can’t be empty

@mapulu thank you. When will this version be released so I can start using the app :slight_smile:

Post can’t be empty

Great will let you know if it works now.

It works now thank you!

@mapulu would you also be able to add <-eventType>fielddetection<-/eventType> this would add support for intrusion alerts

<-EventNotificationAlert version=“1.0” xmlns=“http://www.hikvision.com/ver20/XMLSchema”>
<-ipAddress>192.168.1.103<-/ipAddress>
<-portNo>80<-/portNo>
<-protocol>HTTP<-/protocol>
<-macAddress>f8:4d:fc:ed:96:35<-/macAddress>
<-dynChannelID>2<-/dynChannelID>
<-dateTime>2019-08-26T18:30:36+01:00<-/dateTime>
<-activePostCount>2<-/activePostCount>
<-eventType>fielddetection<-/eventType>
<-eventState>active<-/eventState>
<-eventDescription>fielddetection alarm<-/eventDescription>
<-/EventNotificationAlert>

Post can’t be empty

@mapulu thank you!

@mapulu when i try to install the updated version i get a message.
This app is incompactible with homey pro.

I also tried to unintall and reinstall but the same error occures

Post can’t be empty

Ok thank you

Post can’t be empty

@mapulu everthing works great! thank you

@mapulu ive noticed and tested the following situation.

If i set an alert on both intrusion and linedection I only get 1 trigger and not both. (Seems like only the last detected) In the hik-connect app both are triggerd.

Post can’t be empty