tomasbedrich / home-assistant-hikconnect

A Home Assistant integration to communicate with Hikvision smart doorbells via Hik-Connect cloud.
42 stars 10 forks source link

Add ability to answer/decline a call #22

Closed tomasbedrich closed 1 year ago

tomasbedrich commented 2 years ago

As suggested by @pergolafabio:

Decline (cmdId=3) verified as working even on my old device.

pergolafabio commented 2 years ago

yes, i'm using now a zigbee sensor at my door, so when door opens, all calls are dropping ! Verry usefull, android clinets stop ringing and also indoor stations... verry usefull if you just open door manually or with HA app :-)

anyway

cmd3 = reject call! cmd2 = answer call cmd5 = hangup

i use a a combinaion in script, i fire first 2 and then 5 you could do 3 also, but then you have a hangup sound

also, i now disabled hikconnect push call, so now i open Hikconnect manually with action from HA push notification, and i start twaoway audio manually, then you also need to first answer/hangup call, otherwise the twoway audio is already in use

the reject call , then the visitor always haves a reject notification at doorstation, thats not convenient

tomasbedrich commented 1 year ago

Partially implemented in #39, no plans to implement other commands at the moment.

In case someone wants to implement also cmd2 or cmd5, please use following PRs as an example: