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.

Change icon color
#8
You will need two event scripts. When lamp status (1/1/1) is off then the color status (32/1/1) is black, otherwise color control (1/1/2) value is used.

1. DALI RGBW color object:
Code:
on = grp.getvalue('1/1/1')

if on then
  value = event.getvalue()
else
  value = { red = 0, green = 0, blue = 0, white = 0 }
end

grp.checkupdate('32/1/1', value)

2. Lamp on/off object:
Code:
on = event.getvalue()

if on then
  value = grp.getvalue('1/1/2')
else
  value = { red = 0, green = 0, blue = 0, white = 0 }
end

grp.checkupdate('32/1/1', value)
Reply


Messages In This Thread
Change icon color - by khalil - 10.04.2022, 10:57
RE: Change icon color - by admin - 11.04.2022, 06:06
RE: Change icon color - by khalil - 11.04.2022, 08:34
RE: Change icon color - by admin - 11.04.2022, 08:53
RE: Change icon color - by khalil - 16.05.2022, 13:19
RE: Change icon color - by khalil - 10.05.2022, 13:00
RE: Change icon color - by admin - 11.05.2022, 10:31
RE: Change icon color - by khalil - 11.05.2022, 12:07
RE: Change icon color - by admin - 12.05.2022, 14:04
RE: Change icon color - by khalil - 16.05.2022, 08:26
RE: Change icon color - by admin - 16.05.2022, 08:54
RE: Change icon color - by admin - 17.05.2022, 09:18
RE: Change icon color - by khalil - 17.05.2022, 10:41

Forum Jump: