Page 1 of 1
Doorbell event in Blocky always fired
Posted: Friday 24 March 2017 12:32
by Skef
Hi all,
I am trying to bind some events to my doorbell. For example, to switch on the light in the hall 3 seconds after the doorbell is pressed. I have a KAKU doorbell, which works great. But, the status is always "On". So when I activate this event, my light always get switched on when I switch it off manually.
How can I make sure the light doesn't switch on automatically again?
I only want this event to happen when my doorbell is actually pressed, and not always when the status of the doorbell is "On".
I also tried to set my doorbell to "Off" in this same condition, but that doesn't work.
In my camera config I also set that a snapshot is sent when the doorbell is pressed, and this works like a charm.
Re: Doorbell event in Blocky always fired
Posted: Friday 24 March 2017 13:59
by jvdz
So what is the status of the Doorbell and how does it change when it is pressed and released?
You can see the status changes in the device log.
Jos
Re: Doorbell event in Blocky always fired
Posted: Friday 24 March 2017 14:03
by Skef
Hi Jos,
The status is always "On", and when the doorbell is pressed a new "On" signal is sent. I need this event only to trigger when a new "On" signal is sent.
As far as I can see there is no possibility to have the doorbell set to "Off", or I must be missing something? I use the standard KAKU implementation for doorbells, since it's a KAKU doorbell.
Re: Doorbell event in Blocky always fired
Posted: Friday 24 March 2017 14:14
by chatjozef
make a dummy switch and call it "Doorbell_status" or something like that.
On the doorbell put this link in the by on action:
http://IPADRESS:8080/json.htm?type=comm ... itchcmd=On
Change IDX 99 to the IDX of the Doorbell_status switch.
use the doorbell_status switch in your blocky and its working fine.
I have the same solution.
Re: Doorbell event in Blocky always fired
Posted: Friday 24 March 2017 14:18
by jvdz
I know how to do this in LUA as you can make that fire only when a device changes, but am unsure how that works with Blockly.
Jos
Re: Doorbell event in Blocky always fired
Posted: Friday 24 March 2017 14:47
by Skef
chatjozef wrote:make a dummy switch and call it "Doorbell_status" or something like that.
On the doorbell put this link in the by on action:
http://IPADRESS:8080/json.htm?type=comm ... itchcmd=On
Change IDX 99 to the IDX of the Doorbell_status switch.
use the doorbell_status switch in your blocky and its working fine.
And then you set the dummy switch to off with the blockly script?
Re: Doorbell event in Blocky always fired
Posted: Friday 24 March 2017 14:53
by chatjozef
Excuse me, I forgot to say, that the off delay of the doorbell_status is set for 1 second
Re: Doorbell event in Blocky always fired
Posted: Thursday 11 January 2018 16:30
by Hugoo2018
Hi Skef
You mentioned in your post : "In my camera config I also set that a snapshot is sent when the doorbell is pressed, and this works like a charm."
To which device are you sending the snapshot and how did you do this?
Thnx Hugo