This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Blind control on Wiser for KNX via Enocean
#7
Time to learn scripting ;Wink
this should do, just change short and the action for short and long press

Code:
short = 8  -- in 100ms value = event.getvalue() address=event.dst log(address) short = 8 if (value) then           for i = 1, short, 1 do           value = grp.getvalue(address)              if (value == false) then          grp.write('32/1/55', false) --short press action                break             end     -- wait for 0.1 seconds         os.sleep(0.1)         end  value = grp.getvalue(address)  if (value) then    grp.write('32/1/55', true) --long press action         end end
------------------------------
Ctrl+F5
Reply


Messages In This Thread
RE: Blind control on Wiser for KNX via Enocean - by Daniel - 10.12.2018, 12:10

Forum Jump: