Page 1 of 1

Action doorbell, blocky script and camera

Posted: Saturday 04 July 2020 13:50
by Hanss
Dear Domoticz users,

To keep my question as short as possible :-)

Target state: If someone pushes the doorbell, I like to receive a mail with an attachment (i.e. camera snapshot)

I have a question about the following setup:
1. Bought and installed a doorbell from Action (433mhz)
2. Installed a camera at the front door
3. Installed Domoticz on my Synology (last stable update)

This works like a charm! :-)

I took the next steps for a doorbell trigger including a camera snapshot:
1. Install the doorbell in Domoticz.
The doorbell is recognized immediately, but I get a doorbell icon with a fire alarm/rotating beacon pictogram Is this normal?
2. Created a virtual doorbell switch
3. Setup the camera (string) gi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=, etc (this works as a charm)
4. Combined/added the virtual doorbell switch to the camera (step 3)
5. Added the virtual doorbell switch to the real doorbell device/switch as a Sub Slave device
6. Create a blockly script

I don’t know if I am missing a step or making a mistake in setting up the configuration, but my blockly script does’nt recognize the ‘alarm/normal’ status of the doorbell.
Based on the status 'alarm/normal' I have to trigger the virtual doorbell switch and then send an e-mail with attachment or am I wrong?

Thank you in advance for your help.

Best regards,

Hans

Re: Action doorbell, blocky script and camera

Posted: Friday 10 July 2020 20:51
by Hanss
Nobody? Am I the only one with this problem? :roll: :(

Re: Action doorbell, blocky script and camera

Posted: Friday 10 July 2020 23:22
by James83
Hi,

I don't use the sub/slave devices option, but i think your problem might have to do something with it.
It's not because you have set the doorbell as a slave device, it will just do what you want it to do (send a snapshot)
I don't know Blockly that well, but i don't think the option for snapshots is possible.

Use DzVents for it, it's a very simple script.
Trigger by doorbell,
Get the snapshot: snapshot(cameraID or camera Name2.4.15,subject)
Send e-mail: email(subject, message, mailTo)

Easily find in the wiki.

Re: Action doorbell, blocky script and camera

Posted: Saturday 11 July 2020 11:14
by Hanss
Hello James83,

Thank you for your help.
I am not very fond of scripting, but I will look in to that. :-)
Again thank you for your reply.

Best regards,


Hans