Skip to content

ryanfitton/rpi-pico-hikvision-isapi-doorbell-chime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RPI Pico Doorbell Chime

  • Version 1.1.1
  • OS/Interpreter: MicroPython
  • Hardware: Raspberry Pi Pico W or Raspberry Pi Pico 2 W

Description:

Checks ISAPI API status of Hikvision DS-KV6113-WPE1(B) doorbell every few seconds and plays a sound if doorbell is ringing.

Note; Requires firmware version at least V2.2.53_230918 to add the Capture API endpoint in ISAPI for Pushover functionality.

Additional functionality to send a capture of the doorbell to Pushover.

Tested on MicroPython v1.19.1, you can download and setup MicroPython on the Pi Pico here: https://www.raspberrypi.com/documentation/microcontrollers/micropython.html

Thonny IDE is used to upload the firmware and to copy over the src files. The files from 'src' must be copied into the root directory on the Pi Pico.

Download up to date firmware here:

This Python code is run and used to check the ring status of the Hikvision DS-KV6113-WPE1(B) doorbell when used in stand-alone mode. If this ring status is ring then the doorbell sound will be played twice. There is then a timeout until the ring status check is performed again.

View my blog post for this project:

Getting started:

To get started edit the config in src/main.py for the following fields:

WiFi Configuration:

  • ssid : WiFi network name
  • ssid_password : WiFi network password

Doorbell API Configuration:

  • api_username : Doorbell Admin user
  • api_password : Doorbell Admin user's password
  • host : The Doorbell's IP Address- Highly recommended to setup static DHCP mappings for this device on your router

Pushover Message API Configuration:

  • use_pushover : Enable/Disable Pushover functionality, set true or false. If true then also configure the below:
  • pushover_token : The Pushover APP token - Register on https://pushover.net/ to generate a token
  • pushover_user : The Pushover APP user or group key - Configure this on https://pushover.net/
  • pushover_message : Message for the doorbell message

Parts:

Testing:

You can run these curl commands on your computer to test the Hikvision DS-KV6113-WPE1(B) doorbell.

  • Replace YOUR_PASSWORD with your doorbell admin user's password
  • Replace YOUR_IP with your doorbell IP address

Get status:

curl -i --digest -u admin:YOUR_PASSWORD "http://YOUR_IP/ISAPI/VideoIntercom/callStatus?format=json"

Shows either idle, ring or onCall

Hangup a call:

curl -i --digest -u admin:YOUR_PASSWORD  -d '{"CallSignal":{"cmdType":"hangUp"}}' -H "Content-Type: application/json" -X PUT "http://YOUR_IP/ISAPI/VideoIntercom/callSignal?format=json"

Get an image capture:

curl -i --digest -u admin:YOUR_PASSWORD "http://YOUR_IP/ISAPI/Streaming/channels/101/picture" >> example.txt

Demo

Watch the video here: Watch the video, or click the image below: Watch the video

Front end rendering

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages