Quick button push input not registered

Post Reply
ivom74
Posts: 134
Joined: Wednesday 03 September 2014 22:23
Target OS: Raspberry Pi
Domoticz version:
Contact:

Quick button push input not registered

Post by ivom74 » Friday 28 November 2014 12:39

I use the Piface for registrating the doorbell. I first wanted to switch the bell when the doorbell button was pressed.
This takes about 1-2 second before the bell goes.

I now have a 8 v relay which switches the piface Input (1)

Problem is when they press the doorbutton to fast (short pulse) that Piface or Domoticz this is no registrating.

Do a quick click on a button on the piface button and nothing happens(same effect).
I really like if the processing event delay time can be editted for one 1 input channel. Any suggestions?

rgroothuis
Posts: 159
Joined: Friday 03 April 2015 17:09
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Quick button push input not registered

Post by rgroothuis » Tuesday 14 April 2015 22:19

Did you found a solution for this? It looks like I'm running into the same problem. How did you solve this?

ivom74
Posts: 134
Joined: Wednesday 03 September 2014 22:23
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Quick button push input not registered

Post by ivom74 » Wednesday 15 April 2015 21:42

rgroothuis wrote:Did you found a solution for this? It looks like I'm running into the same problem. How did you solve this?
Still not fixed

DomoUHT
Posts: 18
Joined: Friday 13 March 2015 23:08
Target OS: OS X
Domoticz version: 2.2293
Location: Alkmaar, The Netherlands
Contact:

Re: Quick button push input not registered

Post by DomoUHT » Tuesday 12 May 2015 22:50

Hi there.

I found that when when assigning pin_type=rising to a PiFace input it acts as a toggle (first push on, second push off), and that every push is registered without any delay by the PiFace/RasPi.
So, you could trigger in domoticz on every rise and fall of the PiFace Input.

In Blocky Events I used this (Note that the dummy Switch has set a delayed-off time of 1 sec) :
Schermafbeelding 2015-05-12 om 22.37.00.png
Schermafbeelding 2015-05-12 om 22.37.00.png (57.88 KiB) Viewed 1599 times
In this way DumPiFaceI3 is set to ON on every rise and fall of PiFace IN3 (i.e. your doorbell Pushbutton connected to Input3 of the Piface), and switches to Off after 1 sec.
Then when the Dummy is ON, I set a PiFace Relay to ON, and switch it Off after 4 secs.
Instead of A PiFace Relay you could use anything else.

Here's the input settings in Piface.conf for Input 3 :
piface.0.input.3.enabled=true
piface.0.input.3.pin_type=rising
piface.0.input.3.count_enabled=false
piface.0.input.3.count_update_interval_sec=10

Success !

ivom74
Posts: 134
Joined: Wednesday 03 September 2014 22:23
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Quick button push input not registered

Post by ivom74 » Sunday 04 September 2016 16:32

I already built in a timer in the script but didnt work. I now know why. When the doorbell is pressed it sometimes is 1 - 3 seconds before Domoticz registered it.
After Domoticz/script got the first pressed doorbell button registered the timer works fine.
The question is now why the input of the piface is not faster registrated on the piface. Maybe I have to only zwave products.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest