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
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