Page 1 of 1

Smart DOORBELL, sending picture to smartphones by Telegram

Posted: Monday 20 June 2022 12:00
by psubiaco
Interfacing an existing doorbell to Domoticz is really simple, in both hardware and software.
an_creDomBus23_doorbell.png
an_creDomBus23_doorbell.png (90.63 KiB) Viewed 2250 times
The schematic above uses an optoisolated input of the DomBus23 module, connected to the door chime: of course any module with an opto input can be used as well.
When the door chime is supplied (doorbell button pushed), Domoticz will execute a script that grab a snapshot from the IPcam and send it by Telegram to a group of channel within the family members.
This is the configuration of the doorbell device in the Switches panel:
domoticz_smart_doorbell_dombus23_switch_configuration.jpg
domoticz_smart_doorbell_dombus23_switch_configuration.jpg (38.2 KiB) Viewed 2250 times
As shown in the picture, when doorbell is activated the sendsnapshot.sh script is called, which grabs the picture and sends it by Telegram using the sendTelegramText.sh script.
The first script can grab directly a snapshot if the IPCam supports this feature; for bad chinese low-cost cams that do not support this feature, it grabs a snapshot from the RTSP media stream: this operation is not immediate, but takes 3-4 seconds to get the snapshot from IPCam. From the snapshot, then it's extracted an area of your need, to get the best picture with best zoom.
The result is a picture like this, with information about the date/time the doorbell has rang.
domoticz_smart_doorbell_dombus23_photo_dhl.png
domoticz_smart_doorbell_dombus23_photo_dhl.png (209.55 KiB) Viewed 2250 times
Scripts and more info are available at https://www.creasol.it/smart_doorbell

Re: Smart DOORBELL, sending picture to smartphones by Telegram

Posted: Wednesday 19 October 2022 9:34
by psubiaco
With the schema below it's also possible to open the gate, if you want that your Amazon driver delivers a parcel to you on Sunday when you're away for a vacation!
an_creDomBus23_gate_opener.png
an_creDomBus23_gate_opener.png (145.26 KiB) Viewed 2109 times