Page 1 of 1
Quick button push input not registered
Posted: Friday 28 November 2014 11:39
by ivom74
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?
Re: Quick button push input not registered
Posted: Tuesday 14 April 2015 22:19
by rgroothuis
Did you found a solution for this? It looks like I'm running into the same problem. How did you solve this?
Re: Quick button push input not registered
Posted: Wednesday 15 April 2015 21:42
by ivom74
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
Re: Quick button push input not registered
Posted: Tuesday 12 May 2015 22:50
by DomoUHT
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 (57.88 KiB) Viewed 5602 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 !
Re: Quick button push input not registered
Posted: Sunday 04 September 2016 16:32
by ivom74
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.