This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

How to use new datatype RGB-W
#14
When merging it is better to use hex values as then it is dpt independent(still  1 byte). Updated the old RGB script, not tested Smile
Code:
------------------- Configurable parameters ------------------------------------

redGroup   = '1/1/1' --- modify ether group address or name of group
greenGroup = 'LED1 Green Status' --- modify ether group address or name of group
blueGroup  = '1/1/3' --- modify ether group address or name of group
whiteGroup = '1/1/4'

rgbwGroup   = 'RGB Value' --- modify ether group address or name of group

-------------------------------------------------------------------------------


red   = grp.find(redGroup)
green = grp.find(greenGroup)
blue  = grp.find(blueGroup)
white = grp.find(whiteGroup)

RGBW = lmcore.hextoint(red.datahex..green.datahex..blue.datahex..white.datahex)

grp.write(rgbwGroup, RGBW)
------------------------------
Ctrl+F5
Reply


Messages In This Thread
How to use new datatype RGB-W - by gdimaria - 14.08.2020, 12:30
RE: How to use new datatype RGB-W - by Daniel - 14.08.2020, 12:57
RE: How to use new datatype RGB-W - by admin - 14.08.2020, 12:59
RE: How to use new datatype RGB-W - by admin - 25.08.2020, 11:38
RE: How to use new datatype RGB-W - by admin - 25.08.2020, 13:00
RE: How to use new datatype RGB-W - by Daniel - 25.08.2020, 15:57
RE: How to use new datatype RGB-W - by admin - 26.08.2020, 08:12
RE: How to use new datatype RGB-W - by Daniel - 26.08.2020, 08:12
RE: Urgent! - by gdimaria - 18.09.2020, 08:07
RE: How to use new datatype RGB-W - by Daniel - 18.09.2020, 08:09
RE: How to use new datatype RGB-W - by admin - 18.09.2020, 08:12
RE: How to use new datatype RGB-W - by Daniel - 22.09.2020, 13:52
RE: How to use new datatype RGB-W - by Daniel - 22.09.2020, 15:20
RE: How to use new datatype RGB-W - by Daniel - 23.09.2020, 07:55
RE: How to use new datatype RGB-W - by Daniel - 23.09.2020, 08:18
RE: How to use new datatype RGB-W - by Daniel - 24.09.2020, 08:44

Forum Jump: