DS-KD8003 - DS-KV8113 - DS-KV8213 - DS-KV6113 - DS-KV8413 and .... integration Hikvision HikConnect Video intercom doorbell


Here i placed it. I removed the $1 but still the same.

Try drop the $1 at the end of the command

Added python3 . Same error as SSH & Web Terminal addon. Tried with and without $1 :thinking:

Hmm, need to try also next week… What happens when you just enter python3 ?

Python 3.10.9 (main, Dec 10 2022, 13:54:12) [GCC 11.2.1 20220219] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

*Date and time is waaay off. :laughing:

I installed Hikvision-SDK-Aarch64 and it works fine
Can I add a second sensor for door lock 2?
I have the hikvision kv8113 model

currently both if I open lock n1 or n2 the sensor goes on
thank you very much Fabio

If i remember correctly, I have created an attribute for that sensor, so you know what door was open

Yes indeed, there is a doorId as attribute, that tells you the door 1 or 2 was open

Try using the other SSH addon, maybe that one doesn’t support all imports… I use the “ssh and webterminal” addon

Tried this before. with and without $1. Same output as using putty

It’s the same addon you are using.

I removed line 427 and it shows as registered now.

Under Extensions Settings in ivms it shows registered. Let’s see how it goes now! :smiley:

I will test it and if it works ok. Otherwise maybe something needs to be defined for entry ‘requests’.

1 Like

Maybe you need to install it with pip command, anyway, it works no, good luck with the rest :slight_smile:

1 Like

You are absolutely right! Using pip install requests script is running perfectly without removing any line.

I am running HAOS and i read somewhere that installation of extra packages using ssh & web terminal do not survive when system reboot… I will check it. Also some warnings appear about possible conflict but i suppose that it won’t mess something up. Thank’s again for all these addons you made and your assistance. :+1: :+1: :+1:

1 Like

Well, you don’t need the request anyway for that script, just remove it indeed, no impact

1 Like

pjsip_custom.conf

[general]
static=yes

[default]
include => parkedcalls
;
exten => 444,1,Park(,s)
;
exten => 555,1,ParkedCall(default,701)
;
exten => _X!,1,Dial(${PJSIP_DIAL_CONTACTS(${EXTEN})})

[parkedcallstimeout]
exten => s,1,Hangup()


exten => 10000000005,1,NoOp() 
 same => n,Progress()
 same => n,Set(CALLERID(num)=7000)
 same => n,Set(CALLERID(name)=DoorBell) 
 same => n,Set(DIALGROUP(mygroup,add)=PJSIP/6000) 
 same => n,Dial(${DIALGROUP(mygroup)},40)
 same => n,Hangup()

extensions.conf

[general]
static=yes

[default]
include => parkedcalls
;
exten => 444,1,Park(,s)
;
exten => 555,1,ParkedCall(default,701)
;
exten => _X!,1,Dial(${PJSIP_DIAL_CONTACTS(${EXTEN})})

[parkedcallstimeout]
exten => s,1,Hangup()



#### Setup this in extensions.conf:

exten => 10000000005,1,NoOp() 
 same => n,Progress()
 same => n,Set(CALLERID(num)=7000)
 same => n,Set(CALLERID(name)=DoorBell) 
 same => n,Set(DIALGROUP(mygroup,add)=PJSIP/6000) 
 same => n,Dial(${DIALGROUP(mygroup)},40)
 same => n,Hangup()

Asterisk Log

[Jan 15 05:30:23] WARNING[457][C-00000002]: pjsip/dialplan_functions.c:1018 pjsip_acf_dial_contacts_read: Specified endpoint '10000000005' was not found
[Jan 15 05:30:23]     -- Executing [10000000005@default:1] Dial("PJSIP/hikvision-00000001", "") in new stack
[Jan 15 05:30:23]     -- No devices or endpoints to dial (technology/resource)
[Jan 15 05:30:23]     -- Auto fallthrough, channel 'PJSIP/hikvision-00000001' status is 'CHANUNAVAIL'

What am i doing wrong? :confused:

If i call from linphone to station it’s ok.

[Jan 15 05:48:13]     -- Executing [7000@default:1] Dial("PJSIP/6000-00000002", "PJSIP/7000/sip:[email protected]:52153") in new stack
[Jan 15 05:48:13]     -- Called PJSIP/7000/sip:[email protected]:52153
[Jan 15 05:48:13]     -- PJSIP/7000-00000003 is ringing
[Jan 15 05:48:13]     -- PJSIP/7000-00000003 answered PJSIP/6000-00000002
[Jan 15 05:48:13]     -- Channel PJSIP/7000-00000003 joined 'simple_bridge' basic-bridge <81bce20a-780b-4704-939c-8c924bf8458c>
[Jan 15 05:48:13]     -- Channel PJSIP/6000-00000002 joined 'simple_bridge' basic-bridge <81bce20a-780b-4704-939c-8c924bf8458c>
[Jan 15 05:48:19]     -- Channel PJSIP/6000-00000002 left 'simple_bridge' basic-bridge <81bce20a-780b-4704-939c-8c924bf8458c>
[Jan 15 05:48:19]   == Spawn extension (default, 7000, 1) exited non-zero on 'PJSIP/6000-00000002'
[Jan 15 05:48:19]     -- Channel PJSIP/7000-00000003 left 'simple_bridge' basic-bridge <81bce20a-780b-4704-939c-8c924bf8458c>

Yes, pay attention on your dialplan file, you moved out that 1000000005 section out of the default section… Place it above the parkedcalltimeout… That’s why it’s not finding anything

1 Like

Great! Now its working but i have one way audio (locally). I ll try to figure this out.

Use the trunk below, based on IP auth, this one is different, there is no need for user/pass authentication now, since the script is doing the auth

#### Setup this in pjsip_custom.conf:

[hikvision]
type=aor
contact=sip:[email protected]:5060

[hikvision]
type=endpoint
context=default
disallow=all
allow=ulaw,alaw
allow=h264,vp8
aors=hikvision
direct_media=no

[hikvision]
type=identify
endpoint=hikvision
match=192.168.0.71

I think that you may have to change the contact=sip from 10000000005 to 10010100000 for those who use “Option 2 based on older indoor panels”.

Ah ok, that can be indeed true, I will change the readme tomorrow for users using option 2…

1 Like

Hey, I changed the contact sip in the readme…
If you see the call coming in, does the contact sip IP need to be the indoor or outdoor? I have indoor in the readme… I use option 1 :+)