Hi Fabio, I resume an old comment…
I am installing a DS-KV6113, and I would like to use the door contact for my gate cover as a true feedback of the OUT relay ( GND and AIN1 as per Hikvision install manual)), but it seems that I cannot find it on MQTT topics, can you please give me some info about this? The topic hmd/device_automation/doorbell-outdoor/Door-unlocked/state send a payload when I trigger the gate opening instead of the door contact.
Did someone have been able to use it? Shall I open a new topic about this?
i dont think its possible to provide an real state of the pins
Pity, thank you for the quick reply anyway.
@pergola.fabio
I recently installed the Hikvision KD-DS8003 with the latest firmware. I got it working using SIP via FreePBX. This all works. I don’t have an indoor station and my intend was to use Home Assistant instead of Hikconnect and/or the indoor station (the SIP video phones cover that part). But, won’t the addon work without the indoor station? I have scrolled through this topic, so if this question has already been asked, my apologies in advance.
addon works without indoor, no need for indoor station
That’s great! Is it correct then that I don’t see any change on call state? It only show idle.
i’m not sure if you are using SIP, there will be an call state
or you have the rev-b version with last firmware maybe? other people are saying that they dont see an call state either with this last firmware
if you are using pbx, there is also an asterisk integration in HACS that will provide you with entities
I have indeed version B, but no call state unless I trigger call status, which is not very practical. I do however have ha-sip running and the doorbell is also calling the extension on ha-sip, so I could use that as a trigger.
But a shame that call state is not available.
maybe the feature is back in next firmware… maybe you can ask hikvision why they removed it?
I’m still trying to understand…
If I call the doorbell from console:
curl --digest -u admin:xxxxxx http://xx.xx.xx.xx/ISAPI/System/IO
I have this output:
<IOPortList version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<IOInputPortList version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<IOInputPort version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<id min="1" max="4">1</id>
<name>AI1</name>
<IOUseType>doorStatus</IOUseType>
</IOInputPort>
<IOInputPort version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<id min="1" max="4">2</id>
<name>AI2</name>
<IOUseType>disable</IOUseType>
</IOInputPort>
<IOInputPort version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<id min="1" max="4">3</id>
<name>AI3</name>
<IOUseType>openDoor</IOUseType>
</IOInputPort>
<IOInputPort version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<id min="1" max="4">4</id>
<name>AI4</name>
<IOUseType>disable</IOUseType>
</IOInputPort>
</IOInputPortList>
<IOOutputPortList version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<IOOutputPort version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<id>1</id>
<name>COM</name>
<IOUseType>electricLock</IOUseType>
</IOOutputPort>
</IOOutputPortList>
</IOPortList>
But I don’t know how to call directly the AI1 value… Am I wasting my time?
Does it matter if you retrieve all inputs? I don’t see the state anyway?
You say that Hikvision gives the possibility to connect a contact/sensor (like for the door relay), explain in the documentation how to wire it, and then it’s not possible to use it somehow?
If you can’t read the value of the AIN from the addon I was thinking to do a template in the cover configuration somehow to confirm my gate is closed after xx minutes from activation.
ok, if you can find a solution , you can share it here