Hikvision Cameras with motion sensor enabled

Digging up an old thread.

I just bought my first Hikvision IP camera a
DS-2CD2045FWD-I

I’ve installed the Hikvision IP Camera(ALPHA) plugin and I have uploaded @Sorin I_HikvisionIPCamera.xml file to Vera.

I have managed to add the camera OK in to Vera, following these instructions here and using the I_HikvisionIPCamera.xml file instead.

image

I have enabled basic on the WEB Authentication in the cameras settings.

I can run this command in curl in a CMD prompt and it lists the alertstream information OK.

curl -s http://user:password@192.168.0.15/ISAPI/Event/notification/alertStream

<EventNotificationAlert version="2.0" xmlns="http://www.hikvision.com/ver20/XMLSchema">
<ipAddress>192.168.0.15</ipAddress>
<portNo>80</portNo>
<protocol>HTTP</protocol>
<macAddress>xx:xx:xx:xx:xx:xx</macAddress>
<channelID>1</channelID>
<dateTime>2020-05-18T14:10:03+00:00</dateTime>
<activePostCount>19</activePostCount>
<eventType>VMD</eventType>
<eventState>active</eventState>
<eventDescription>Motion alarm</eventDescription>
<channelName></channelName>
<Extensions version="1.0" xmlns="urn:psialliance-org">
<serialNumber xmlns="urn:selfextension:psiaext-ver10-xsd">DS-2CD2045FWD-xxxxxxxxxxxxxxxxxxxxxxxx</serialNumber>
<eventPush xmlns="urn:selfextension:psiaext-ver10-xsd">IO&amp;&amp;DS-2CD2045FWD-xxxxxxxxxxxxxxxxxxxxxxxx,2020-05-18T14:10:03+00:00,1.0</eventPush>

Following @loukt advise here, I had edited the I_HikvisionIPCamera.xml file and changed:

Change from the function getStreamEvents()
the line

      if newEvent:find("&lt;eventDescription>PIR alarm&lt;/eventDescription>")
   to
      if newEvent:find("&lt;eventType>VMD&lt;/eventType>")

However in Vera no new motion sensor device is being created.

If I look in the Vera log I can see this:

“not a Hikvision camera, nothing to do” and “Unsupported camera model nothing to do”

The file “/tmp/HilkvisionOutput_Devno.txt” in not being created on the Vera in the /tmp folder.

Anyone know how to fix it ?

Its a genuine EU camera purchased from an authorised dealer not off eBay or Amazon.

Many thanks

1 Like