Comfort Automation/ Security System Forums
Program short and long actions on pushbuttons - Printable Version

+- Comfort Automation/ Security System Forums (https://www.comfortforums.com)
+-- Forum: Support (https://www.comfortforums.com/forum-2.html)
+--- Forum: Questions on Programming Comfort (https://www.comfortforums.com/forum-83.html)
+--- Thread: Program short and long actions on pushbuttons (/thread-3250.html)



- cab123 - 01-18-2013

- Button_ON
Do Long_Response After 2 Seconds Using Timer01

- Button_OFF
If Timer Timer01 <> 0 Then
Stop Timer Timer01
Do Short_response
End If


The ideal timer (for me) would be 1,5 seconds.


I use this in two situations:
- entry button:
short press: toggle corridor light
long press:
if any light is on: turn off all lights (exit house)
else turn on the light path to the kitchen

Restroom:
short: toggle light
long: toggle heater


Most KNX modules handle this, so can cytech ... :-)


Cab123


- ident - 01-19-2013

It is good to see that you figured this out. Congratulations