Jump to content

lcd buttons & io 16 buttons: long press / OpenHab


Recommended Posts

Hi.

I have a combination of the four lcd buttons and a io16 having some buttons as well. My controller is OpenHab. However I guess my question is not related to OpenHab:

How can I detect long presses? I notice a difference that the lcd buttons toggle a value and doesn't trigger to release, making it very hard to detect long key presses. On the other hand the io16 sends updates on release but the current binding of OpenHab doesn't detect long key presses by using timers. To delegate this into OpenHab the rules get very complicated. I was hoping that the binding itself can detect long presses and sends updates to an item having a configuration string that "listens" on long keypresses (as HomeMatic is doing it).

 

anybody familiar with this?

 

Thanks!

leutholl

Link zu diesem Kommentar
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...