Hikvision Cam is detected but binary sensors are not created

I’ve created a hikvision binary sensor and it’s not creating the entities, however the logs

2018-04-03 23:34:51 INFO (SyncWorker_4) [hikvision.api] Initialising new hikvision camera client
2018-04-03 23:34:51 INFO (SyncWorker_4) [hikvision.api] motion_url: http://192.168.56.101/MotionDetection/1/
2018-04-03 23:34:51 INFO (SyncWorker_4) [hikvision.api] Going to probe device to test connection
2018-04-03 23:34:51 INFO (SyncWorker_4) [hikvision.api] url: http://192.168.56.101/System/deviceInfo
2018-04-03 23:34:52 INFO (SyncWorker_4) [hikvision.api] Current motion detection state? enabled: true
2018-04-03 23:34:52 INFO (SyncWorker_4) [hikvision.api] Connected OK!
2018-04-03 23:34:52 INFO (SyncWorker_4) [hikvision.api] Camera firmaward version: V5.5.0
2018-04-03 23:34:52 INFO (SyncWorker_4) [hikvision.api] Motion Detection enabled: True

show clearly it is detected… any clues ?

Does anyone have a clue ?

I set this up over 6 months ago and can’t remember all the steps but I do remember setting up the actual camera was tricky.

Also, just for a laugh once everything is connected try rebooting the camera and restart HA as my sensor stops working every now and then and a restart fixes it.

Make sure you have a basic authentication in your hikvision settings, else it won’t show up in HA

Thanks All… I’ve checked all these things, I’ve put the logs into debug

<MotionDetection version="1.0" xmlns="http://www.hikvision.com/ver10/XMLSchema">^M
<id>1</id>^M
<enabled>true</enabled>^M
<regionType>grid</regionType>^M
<Grid>^M
<rowGranularity>18</rowGranularity>^M
<columnGranularity>22</columnGranularity>^M
</Grid>^M
<MotionDetectionRegionList>^M  
<sensitivityLevel>3</sensitivityLevel>^M
</MotionDetectionRegionList>^M
</MotionDetection>^M

 2018-04-06 16:55:27 INFO (SyncWorker_4) [hikvision.api] Current motion detection state? enabled: true

This is my binarysensor: -

  • platform: hikvision
    host: 192.168.56.101
    username: admin
    password: *********
    ssl: false
    port: 80

if i was to say anything it does not look like it’s loading the binary sensors yaml

Regards

Rob

I believe you have to have motion detection setup and turned on in the camera even if you are going to use line crossing detection in HA.

Also make sure that notify station (or what ever the exact phrase is) is selected for the action when motion is detected.

It took me some time playing around with things to get the sensors for my cameras to show up - I just haven’t gotten around to using them yet.

The log you posted indicates your are setting up the hikvision switch component, not the hikvision binary sensors component. They are two different things.

See the documentation here: https://www.home-assistant.io/components/binary_sensor.hikvision/

Ok I deleted my entire binary sensors yaml and re-wrote it…

works now, there must have been something in there it didn’t like :confused:

Hi. Can you pleas share your binary component. I am having the same issue you are, but can’t figure out why my HikVision binary sensor won’t work.

My issue was that I originally misspelled my sensor name, and that got saved in the known_devices.yaml.
Once I corrected the spelling mistake, it did not update it in the known_devices.yaml and it would no longer show up.