Posts: 347
	Threads: 79
	Joined: Jan 2021
	
Reputation: 
0
	 
 
	
	
		Hello Dears,
I want to create a script that convert 4x1byte objects in to 1 DT8 object.
but how to avoid multiple write to the DALI: like if the 4 RGBW objects changed this will trigger 4 DT8 Commands to the DALI Bus!
Could you share a script considering this case.
	
	
	
Best Regards,
	
		
	
 
 
	
	
	
		
	Posts: 8422
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481
	 
 
	
	
		Use a single event script for all 4 objects via a common tag. Set execution mode to "Last instance only". Add a small delay before writing to the RGBW object.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 347
	Threads: 79
	Joined: Jan 2021
	
Reputation: 
0
	 
 
	
	
		thanks 
could you share a starting example
also how to read the GA name from script?
	
	
	
Best Regards,
	
		
	
 
 
	
	
	
		
	Posts: 347
	Threads: 79
	Joined: Jan 2021
	
Reputation: 
0
	 
 
	
	
		Thank you admin
Very helpful
	
	
	
Best Regards,
	
		
	
 
 
	
	
	
		
	Posts: 347
	Threads: 79
	Joined: Jan 2021
	
Reputation: 
0
	 
 
	
	
		Dear admin
If I want to convert from DT8 to R,G,B,W 1byte for status feedback, Should I divide by 2.55?
	
	
	
Best Regards,
	
		
	
 
 
	
	
	
		
	Posts: 8422
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481
	 
 
	
	
		Yes, if 1 byte objects use scale (0..100) data type.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 8422
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481
	 
 
	
	
		DALI RGBW data type uses 0..255 range for each channel. If you 1 byte objects use the same range then you don't have to divide or multiply.