Antwort schreiben 
 
Themabewertung:
  • 0 Bewertungen - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Short and long press 1-bit
27.05.2015, 01:08
Beitrag #1
Short and long press 1-bit
Is is possible to make a "difference between long and short press" on a 1-bit Group adress?

Lets say i program a KNX push button to send "1" on push and "0" on release.

In the mremote.csv i manage to make short/long-press actions, but is this possible also in the knx.csv?

[LIGHT1_T],1 SHORT PRESS should run ROOM1_SCENE_CALL.myh
[LIGHT1_T],1 LONG PRESS should run ROOM1_SCENE_SAVE.myh

3001;;<SCRIPT><RUN=ROOM1_SCENE_CALL.myh><GARG=1></SCRIPT>

4001;HOLD=3000;;<SCRIPT><RUN=ROOM1_SCENE_SAVE.myh><GARG=1></SCRIPT>;
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
27.05.2015, 11:41
Beitrag #2
RE: Short and long press 1-bit
(27.05.2015 01:08)Adde@avts schrieb:  but is this possible also in the knx.csv?

No it isn't

You have to do it on KNX side. Programm the KNX push button to do a short and a long press (blind/shutter switch application). In this case it supports an address for each of these two options.

regards

Mike Eudenbach (XING Profile)
nomos system AG
System Design/Integration/Planung

m..myhome/nomos in Unna, m..myhome/nomos auf Facebook
Webseite des Benutzers besuchen Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
27.05.2015, 13:12
Beitrag #3
RE: Short and long press 1-bit
(27.05.2015 11:41)meudenbach schrieb:  
(27.05.2015 01:08)Adde@avts schrieb:  but is this possible also in the knx.csv?

No it isn't

You have to do it on KNX side. Programm the KNX push button to do a short and a long press (blind/shutter switch application). In this case it supports an address for each of these two options.

regards

OK, i see.

But maybe its possible to create a logic?

If 0/4/0 is set to value "1" for more than x seconds... then....execute command?
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
27.05.2015, 14:02 (Dieser Beitrag wurde zuletzt bearbeitet: 27.05.2015 14:02 von meudenbach.)
Beitrag #4
RE: Short and long press 1-bit
Yes it is also possible by using a timer & logic but I never test it Wink

timer.csv
Code:
[CONFIG];
ACTIVE;YES
[TIMERS];
SCENE1;ONESHOT;3;<SYS><SETVAR=LONGPRESS1,1></SYS>;;

logic.csv
Code:
[OBJECT]
SCENE1_DP;<KNX><1/1/0\%=\*>;;BC;

[LOGIC]
(SCENE1_DP & ![LONGPRESS1]);<TIMER><START=SCENE1></TIMER>;;SCENE1_DP;
(SCENE1_DP & [LONGPRESS1]);<SCRIPT><RUN=ROOM1_SCENE_SAVE.myh></SCRIPT><SYS>;;[LONGPRESS1];
(!SCENE1_DP & [LONGPRESS1]);<SYS><SETVAR=LONGPRESS1,0></SYS>;;SCENE1_DP;
(!SCENE1_DP & ![LONGPRESS1]);<TIMER><STOP=SCENE1></TIMER><SCRIPT><RUN=ROOM1_SCENE_CALL.myh></SCRIPT>;;SCENE1_DP;

Maybe it works Confused but better to do it with two different addresses.

regards

Mike Eudenbach (XING Profile)
nomos system AG
System Design/Integration/Planung

m..myhome/nomos in Unna, m..myhome/nomos auf Facebook
Webseite des Benutzers besuchen Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
Antwort schreiben 


Gehe zu:


Kontakt | nomos system Forum | Nach oben | Zum Inhalt | Archiv-Modus | RSS-Synchronisation | Impressum