webCoRE piston - capturing color

I’ve updated the DTH in SmartThings with the code from a couple of days ago, and I’m just now getting involved with webCoRE, so apologize if this is an obvious question, but I’m stumped.

I would like to capture the color of the LED bar in webCoRE, then, change the bar color for a condition, then, return the color of the LED bar back to what it was.

I’m trying to use “Capture attributes color to local state” and then “Restore attributes color from local state”. This does not work. I can change the color no problem with the command “set color to #00ff00” for example.

Any ideas or other methods to try?

I haven’t tried that in webCore. But my initial thought is that you don’t have to capture the current color. You are setting it, so you know what the current color is. I’d consider storing what you set it to in a variable so that you’ll be able to refer to that variable to get the current color.