Doorbell event in Blocky always fired

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

Doorbell event in Blocky always fired

Post by Skef » Friday 24 March 2017 13:32

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: 1295
Joined: Tuesday 30 December 2014 20:25
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Westland/Netherlands
Contact:

Re: Doorbell event in Blocky always fired

Post by jvdz » Friday 24 March 2017 14:59

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

Skef
Posts: 6
Joined: Wednesday 15 February 2017 23:44
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Doorbell event in Blocky always fired

Post by Skef » Friday 24 March 2017 15:03

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: 14
Joined: Monday 12 September 2016 14:19
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Doorbell event in Blocky always fired

Post by chatjozef » Friday 24 March 2017 15:14

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: 1295
Joined: Tuesday 30 December 2014 20:25
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Westland/Netherlands
Contact:

Re: Doorbell event in Blocky always fired

Post by jvdz » Friday 24 March 2017 15:18

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

Skef
Posts: 6
Joined: Wednesday 15 February 2017 23:44
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Doorbell event in Blocky always fired

Post by Skef » Friday 24 March 2017 15:47

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: 14
Joined: Monday 12 September 2016 14:19
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Doorbell event in Blocky always fired

Post by chatjozef » Friday 24 March 2017 15:53

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 17:25
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Doorbell event in Blocky always fired

Post by Hugoo2018 » Thursday 11 January 2018 17:30

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 2 guests