Posts: 324
Threads: 73
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: 7852
Threads: 42
Joined: Jun 2015
Reputation:
450
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: 324
Threads: 73
Joined: Jan 2021
Reputation:
0
thanks
could you share a starting example
also how to read the GA name from script?
Best Regards,
Posts: 324
Threads: 73
Joined: Jan 2021
Reputation:
0
Thank you admin
Very helpful
Best Regards,
Posts: 324
Threads: 73
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: 7852
Threads: 42
Joined: Jun 2015
Reputation:
450
Yes, if 1 byte objects use scale (0..100) data type.
Posts: 7852
Threads: 42
Joined: Jun 2015
Reputation:
450
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.