Logic Machine Forum
Color code data type - 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: Color code data type (/showthread.php?tid=2806)



Color code data type - puntukas - 24.08.2020

Hi,

I have HUE color hex code: for example #255000 "GREEN" and I want to set this code to KNX group address 10/0/40 that type is 232.600. How can I do that?

Thanks!

Sorry for lame questions.


RE: Color code data type - Daniel - 24.08.2020

Hi
The value has to converted to int before writing you can do like this
Code:
RGB = lmcore.hextoint('255000')

grp.write('1/1/1', RGB)



RE: Color code data type - puntukas - 24.08.2020

Thanks a lot!