Webcore help storing light status to variable


Could anyone possibly help with my webcore script. I’ve written a quick test script which should fetch the current brightness level and colour of the light and store those to a variable.

This is so I can adjust the light and then revert back to its original state at the end of the script.

My problem is, the colour variable is not working, it’s always storing #000000 (black) rather than fetching the actual colour.

It’s working perfectly fine with the level variable and will set it back to its original level. But then the light turns off due to the colour variable always storing #000000

Thank you!


Look into using the capture statement :slight_smile:

Go to https://community.webcore.co and do a search

1 Like