pyHik icon indicating copy to clipboard operation
pyHik copied to clipboard

Request: Features for video Intercom

Open pergolafabio opened this issue 2 years ago • 1 comments

Hey Question, i have an DS-KD8003 video intercom, Hikvision created a new custom firmware to test, it includes now the same ISAPI alert stream:

"curl -i --digest -u admin:xxx http://192.168.0.70/ISAPI/Event/notification/alertStream"

I have added the Hikvision Binary sensor integration, but offcourse , i dont binary sensor being created, quite normal, since the alartStream is limited to a few events only What i see for example in the stream : Door Open , Illegal badge swiped, ... is it posible to add those events as binary sensor? in total , as in the ISAPI description i received, there are 6 minor events, based on event type 5

thnx appreciated!!

PS: i added the Hikvision Binary sensor integration already to HA? just for fun , and i see 1 binary sensor being creaed , the motion sensor, it also detects the right name... but it doesnt work, quite normal also, because there are no motion events in that ISAPI url.... so that binary sensor shouldlt being created at all :-)

image

image

Content-Length: 314

--MIME_boundary
Content-Type: application/json; charset="UTF-8"
Content-Length: 223

{
	"ipAddress":	"192.168.0.70",
	"portNo":	80,
	"protocol":	"HTTP",
	"dateTime":	"Wed, 28 Jul 2021 20:51:56 GMT",
	"activePostCount":	1,
	"eventType":	"heartBeat",
	"eventState":	"active",
	"eventDescription":	"heartBeat"
}
--MIME_boundary
Content-Type: application/json; charset="UTF-8"
Content-Length: 354

{
	"ipAddress":	"192.168.0.70",
	"portNo":	80,
	"protocol":	"HTTP",
	"dateTime":	"Wed, 28 Jul 2021 20:52:05 GMT",
	"activePostCount":	1,
	"eventType":	"AccessControllerEvent",
	"eventState":	"active",
	"eventDescription":	"Access Controller Event",
	"AccessControllerEvent":	{
		"deviceName":	"DS-KD8003",
		"majorEventType":	5,
		"subEventType":	25
	}
}


pergolafabio avatar Jul 28 '21 19:07 pergolafabio

PS: with the integration running, i also see a lot of these now in log :

2021-07-28 21:03:20 WARNING (Thread-3) [pyhik.hikvision] DS-KD8003 Connection Failed (count=6). Waiting 35s. Err: Connection unsucessful.
2021-07-28 21:03:55 WARNING (Thread-3) [pyhik.hikvision] DS-KD8003 Connection Failed (count=7). Waiting 40s. Err: Connection unsucessful.
2021-07-28 21:04:35 WARNING (Thread-3) [pyhik.hikvision] DS-KD8003 Connection Failed (count=8). Waiting 45s. Err: Connection unsucessful.

pergolafabio avatar Jul 28 '21 19:07 pergolafabio