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
#9
Hi Daniel,

as i posted in my other thread
https://forum.logicmachine.net/showthrea...9#pid12449
the Enocean stick works only a few days and then i have to restart wiser.
I have several system messages in the wiser concerning the scripts for differentiaiton of shot and long button press.
The messages can bee seen in the picture attached and says for example: "*string: 32/1/7".
32/1/7 is the bit-object which is send by the Enocean profile when pressing the button for blind down and is the trigger for the script.
The text in my scripts is almost like you wrote me:

short = 6  -- Differentiation time short/long press in 100ms 
value = event.getvalue()
address=event.dst
log(address)
short = 6
if (value) then
    for i = 1, short, 1 do
        value = grp.getvalue(address)
        if (value == false) then
      grp.write('1/0/230', false) -- short time adress
          break
            end
    --  waiting time 0.1 seconds
        os.sleep(0.1)
    end
  value = grp.getvalue(address)
  if (value) then
    grp.write('1/0/229', false) -- long time adress
    end
end

Can you tell me, what the system message would tell me and what could be the solution?

Kind regards

Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
RE: Blind control on Wiser for KNX via Enocean - by KNXUser - 01.04.2019, 09:21

Forum Jump: