Logic Machine Forum
scripitng - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: scripitng (/showthread.php?tid=5754)



scripitng - mariosp - 21.11.2024

hello guys can you help me with a script i want to make
i want when light 1 = 1 that turn on from pussbutton
then light 2 = 0 that turnon from presence detector


RE: scripitng - Daniel - 21.11.2024

Create event script which will be triggered by light1 and paste this script
Code:
value = event.getvalue()
if value == true then
    grp.write('1/1/2', false)
end
Change the 1/1/2 to your light 2 group.


RE: scripitng - mariosp - 21.11.2024

it doesnt work


RE: scripitng - Daniel - 21.11.2024

Some screenshots of what you did might help


RE: scripitng - mariosp - 21.11.2024

       

i just want to stop the precense detector sending value


RE: scripitng - Daniel - 21.11.2024

so what happens what you write 1 to 1/1/182?