If your device is connnected to Hik-Connect or an indoor station or a PBX, when the doorbell is pressed the status of the device will go to a state of ‘ringing’ (I think) while it is waiting for someone to answer the call (via the Hik-Connect app or on the indoor station or on a SIP client). When in the call, the status will be ‘in-call’ (I think).
For me, I currently have the doorbell at the outside gate. I have configured it to connect to a PBX but that PBX is not currently running (and nor do I have an indoor station or Hik-Connect). When the outdoor button is pressed, the visitor will hear a ‘busy tone’ for a couple of seconds but my Home Assistant REST Sensor will detect that ‘ringing’ state change and create a notification on my Google Homes and send a Home Assistant Companion notification to my mobile phones.
Thanks i added in the below and now can see a sensor
``
sensor:
platform: rest
name: Doorbell Status
authentication: digest
username: admin
password: [my pw]
scan_interval: 1
resource: http://192.168.0.xx/ISAPI/VideoIntercom/callStatus?format=json
value_template: “{{ value_json.CallStatus.status }}”
`
ok thanks, i have setup your REST sensor in HA and it says ‘Idle’.
I’ll go home soon and press it and see if i can see anything in logs.
Yes any info you could share on how to use that to send a notification in HA would be appreciated as i’d like to use that info to explore the doorbell press to say increase light intensity/colour at the gate. I get the Hik-connect notifications on my just phone fine so that part is all good.
yeah, noticed, downloading and installing sdk right now
but it only works on windows? i see there is a also a linux variant? maybe we can create a docker container running this sdk?
it probably wont work for HassOs users, right? since there is no way to install sdk? installing sdk is needed right? to have all dll files?
or maybe there is already a docker image with this sdk?
Probably works on linux too. I haven’t tried it. I haven’t used docker yet so I don’t know:( I think you don’t have to install SDK, you just have to copy files from the lib folder (for windows users, as I wrote I haven’t checked linux SDK yet)
I only get “dismissed” when I press red “terminate call” phone icon on indoor station. The array “unlocked by” value is from NET_DVR_UNLOCK_RECORD_INFO.byControlSrc field. From docs: “Operation source information”.
A log from me:
opened the lock by card 1
opened the lock by card 2
pressed door bell to ring
opened the lock from indoor station
pressed red phone icon on doorbell
open-close sensor was always opened during the test (that’s why sometimes door not closed event happened)
thats indeed an older firmware, i dont think its related to the indoor anyway
i have newer firmware, i am also missing the “motion detection” settings
maybe thats why i have some strange unusable data, its contanntly changing while i am watching tv
any idea what could be wrong?