Posts: 73
Threads: 18
Joined: Feb 2023
Reputation:
0
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
Posts: 4933
Threads: 28
Joined: Aug 2017
Reputation:
225
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.
------------------------------
Ctrl+F5
Posts: 4933
Threads: 28
Joined: Aug 2017
Reputation:
225
Some screenshots of what you did might help
------------------------------
Ctrl+F5
Posts: 4933
Threads: 28
Joined: Aug 2017
Reputation:
225
so what happens what you write 1 to 1/1/182?
------------------------------
Ctrl+F5