Smart DOORBELL, sending picture to smartphones by Telegram

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.

Moderator: leecollings

Post Reply
User avatar
psubiaco
Posts: 245
Joined: Monday 20 August 2018 9:38
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Italy
Contact:

Smart DOORBELL, sending picture to smartphones by Telegram

Post 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 2249 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 2249 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 2249 times
Scripts and more info are available at https://www.creasol.it/smart_doorbell
Paolo
--
I use DomBus modules to charge EV car, get a full alarm system, control heat pump, fire alarm detection, lights and much more. Video
Facebook page - Youtube channel
User avatar
psubiaco
Posts: 245
Joined: Monday 20 August 2018 9:38
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Italy
Contact:

Re: Smart DOORBELL, sending picture to smartphones by Telegram

Post 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 2108 times
Paolo
--
I use DomBus modules to charge EV car, get a full alarm system, control heat pump, fire alarm detection, lights and much more. Video
Facebook page - Youtube channel
Post Reply