Doorbell event in Blocky always fired

Moderator: leecollings

Post Reply
Skef
Posts: 6
Joined: Wednesday 15 February 2017 22:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Doorbell event in Blocky always fired

Post 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.
Image
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.
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Doorbell event in Blocky always fired

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Skef
Posts: 6
Joined: Wednesday 15 February 2017 22:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Doorbell event in Blocky always fired

Post 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.
chatjozef
Posts: 10
Joined: Monday 12 September 2016 14:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Doorbell event in Blocky always fired

Post 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.
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Doorbell event in Blocky always fired

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Skef
Posts: 6
Joined: Wednesday 15 February 2017 22:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Doorbell event in Blocky always fired

Post 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?
chatjozef
Posts: 10
Joined: Monday 12 September 2016 14:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Doorbell event in Blocky always fired

Post by chatjozef »

Excuse me, I forgot to say, that the off delay of the doorbell_status is set for 1 second
Hugoo2018
Posts: 1
Joined: Thursday 11 January 2018 16:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Doorbell event in Blocky always fired

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest