un sure what i am doing wrong here but here is my webcore
You’re not saving the level into the variable before changing the level.
Anyway… Scroll through the command list and you’ll see save attributes to local store, and restore attributes from local store… no variables needed.
ok, that worked. however I just noticed that if the light is off to begin with it will then set the light to the level it was before it went off when it turns on. With the change i just made it now goes back the level it was if it was already on though which is great
Just save and restore the switch attribute as well as the level attribute.
And you shouldn’t need the last ‘set level’… restoring attributes should do that for you.
It works. Thank you so much. I had to move some stuff out and fix that it couldn’t overwrite the values and when it restored that it would then clear it out. WOO HOO