I have the two devices listed in the subject line. They are wired correctly and work together when I ZWave associate them with the RGB Genie gadget. I'd like to get rid of that Gadget and their direct association and use Hubitat as a hub between them, with rules and such to control the lights based on the dimmer -- like some people say is the "modern approach", instead of direct association. Only problem is I can't seem to find a way using Rule Machine to connect the hue/saturation/brightness of the ZW-3002 (which I can see under devices, Current State) to the hue/saturation/brightness of the ZW-1008, (which I can ALSO see under devices, Current state). So what gives? This is about the most basic rule I can think of past simple on/off with a hard-coded color/brightness (which I implemented easily). Is it not possible? I tried using mirror, but that didn't work -- only "mirrored" the on/off as a toggle. No color control. I see an old topic from 2020 and 2023 that discusses this same issue. Should I ditch Hubitat and go back to the old association method using the RGB Genie thingy? That would be sad. Anybody have any suggestions for this?
PS: Under set color for set dimmers and bulbs action in Rule Machine I see "Custom HSB Color", but the "Variable" switches don't seem to do anything other than change the value box to "Click to Set". If I click it, there's nothing to set. I would type in an expression with the attribute name if there was a place to type it, but the boxes only take numbers.
I'm hoping there's a place where I can define something to cause the hue/saturation/brightness I want to READ from the 3002 to be named and available to WRITE to the 1008 HSB fields.
PROGRESS... It appears there's something called a "Hub Variable" that I can define on the main page. Once I define a variable named, say, "hueVariable" then this appears in the dropdown list for setting a hue of a bulb. Now if there was only a way to SET such a global variable based on what hue value was coming from the 3002 dimmer...
FAIL... I gave it my best shot, but no luck. I put together some tedious Rule Machine mumbo-jumbo like this:
But, again, as with Mirror, color is not controllable. Nor is brightness. Just on/off. Sheesh! (I have to comment that using a global variable for something like this seems wrong on so many levels.) Surely I'm being obtuse and missing the easy way to accomplish wiring a RGB dimmer to a RGB lamp.
Ahh, I see local variables now. I should switch to using them, but I don't see how that would make the color update.
MORE PROGRESS, but still no color change... I can get brightness to vary when I change brightness on the control. The "level" changes. But color hue or saturation still doesn't vary. It's unclear if the control is actually changing hue and saturation. It might be changing RGB but RGB doesn't seem to be included in the state. Surely the person who created the Hubitat driver (or whatever it's called) for this RGB color controller would have included the state variables that this color controller emits to control the color!
