25.10.2016, 15:08
(18.09.2016, 11:37)Erwin van der Zwart Wrote: Hi,
Use this in your event based script:
value = event.getvalue()
if value == true then -- or use =< 21
-- put here your push command
elseif value == false then -- or use => 22
-- put here your action / command
end
BR,
Erwin
Hi again Erwin, another problem arose when i started using this for real. I get an alert every time the bus get's updated with a lower value than set. What would i need to add in the script to make it check previous value, and not to run the script if previous value already led it to run the script`?
BR,
Jørn
Best regards, Jørn.