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
#4
Hi
Something like that will do. Use separate profile and attach event script to one output and write to your blind object what necessary

Code:
short = 0.6 --in seconds
outGrp = '32/1/55'

value = event.getvalue()
if (value == true) then

tsec, tusec = os.microtime()  
 storage.set('pressTimeSec', tsec)
 storage.set('pressTimeMicro', tusec)
end


if (value == false and os.udifftime( storage.get('pressTimeSec'),storage.get('pressTimeMicro')) < short) then
  grp.write(outGrp,true)
 elseif (value ==false)  then
  grp.write(outGrp,false)
end
BR
------------------------------
Ctrl+F5
Reply


Messages In This Thread
RE: Blind control on Wiser for KNX via Enocean - by Daniel - 07.12.2018, 09:49

Forum Jump: