A SIP doorbell client inside home assistant! Forked and modified from https://github.com/TECH7Fox/sip-hass-card. Thanks Jordy!
With this card you can make and receive calls from doorbell
Asterisk add-on This card works with the Asterisk add-on, which is very easy to set up, with just some clicks!
For this to work you will need the following:
- A sip/pbx server. (I use the Asterisk add-on)
- Extension for every device. (The add-on auto-generates extensions for every person in HA)
- HACS on your HA. (Home assistant)
Go to https://tech7fox.github.io/sip-hass-docs/docs/card/guides/freepbx to see how to setup FreePBX for this card.
Download using HACS
- Go to HACS
- Click on
Frontend - Click on the 3 points in the upper right corner and click on
Custom repositories - Paste https://github.com/zabawiking/sip-hass-card into
Add custom repository URLand by category choose Lovelace - Click on add and check if the repository is there.
- You should now see SIP.js Client. Click
INSTALL
Click on add card and scroll down to and choose Custom: SIP Doorbell Card.
The entire card is configurable from the editor.
set your ringtones to play when calling/being called.
/local is your www folder in config. Example: /local/ringtone.mp3 = /config/www/ringtone.mp3.
Example:
type: custom:sipjs-doorbell-client-card OR sipjs-doorbell-controller-card
server: 192.168.10.1 //!!need to have valid SSL certificate!!
port: "8089"
prefix: ""
secret: secret
ringtones:
ringtone: /local/normal_ringtone.mp3
button_size: "84"
auto_answer: false
person:
person: person.tablet
ext: "102"
doorbell_ext: "8001"
doorbell_camera: camera.dahua_bramka_main
buttons:
- entity: switch.entrance_gate
icon: mdi:door
- entity: cover.gate
icon: mdi:gate
Most problems is because your PBX server is not configured correct, or your certificate is not accepted.
To accept the certificate for Asterisk/FreePBX go to https://<host>:8089/ws and click continue.
To see how to configure FreePBX go to the FreePBX guide.
Android companion app 2022.2 required for speaker + audio permissions.
For development on Windows, easiest way is to use the devcontainer and run npm run build in the terminal. Then copy the sipjs-card-doorbell.js file to your www folder.