Announcement

Collapse
No announcement yet.

Expression to set group of lights colour

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Expression to set group of lights colour

    I am trying to set a group of lights to a specific colour. I have setup separate groups for the the lights Mode, Bightness, Color temperature and Color Mode. When I am setting up the expression to set All Devices to Mode Color, I can set the expression if($DEVICEVALUE<>2,2,$DEVICEVALUE), which sets the Mode of the lights to color (1 would be white) but I am not having success in creating the expression to set the color. Do I put in the Hex value? if($DEVICEVALUE<>#3578DC,#3578DC,$DEVICEVALUE)? This doesn't seem to work. Anybody know what the expression should look like?

    Click image for larger version

Name:	screencapture-192-168-1-15-8000-devices-html-2022-03-03-17_22_28.png
Views:	81
Size:	126.0 KB
ID:	1530162
Working...
X