How do I get to set the color of a pimatic-led-light lamp (yeelight) to a hex color stored in a variable?
I want to control a Hue Ambiance together with a Yeelight color. When the Hue turns on I get its color temperature, convert it to hex and store that hex in a variable. Now I would like to turn the Yeelight on and set its color to the Hex variable. I can do that manually, writing some hex like so:
turn Yee 1 on and set Yee 1 to #FFB168
but I cant do:
turn Yee 1 on and set Yee 1 to $myVar
Im guessing this is because my variables unit type isn’t declared properly, but I cant find what I should put in to make it work. Currently I’ve got it set to Value and no unit, but I have already tried some unit types like Hex, Color, etc to no avail. Haven’t found a list of allowed unittypes in the code so far either.
Anyone got ideas what I should do?