Posts: 80
	Threads: 21
	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: 5284
	Threads: 29
	Joined: Aug 2017
	
Reputation: 
237
	 
	
	
		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: 5284
	Threads: 29
	Joined: Aug 2017
	
Reputation: 
237
	 
	
	
		Some screenshots of what you did might help
	
	
	
------------------------------
Ctrl+F5
	
		
	
 
 
	
	
	
		
	Posts: 5284
	Threads: 29
	Joined: Aug 2017
	
Reputation: 
237
	 
	
	
		so what happens what you write 1 to 1/1/182?
	
	
	
------------------------------
Ctrl+F5