I’m trying to save some attributes of a Hue light to a global variable when a switch comes on, and then restore them when it goes off. I can get the level to work, but the color isn’t being restored.
I tried adding a wait statement, thinking I just needed more time to save the attributes before changing the light, but it didn’t help. Am I just missing something? Seems pretty straightforward, but can’t make it work.