Webcore help storing light status to variable

Hi,

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!

Screenshot_20190815-210934

Look into using the capture statement :slight_smile:

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

1 Like

© 2019 SmartThings, Inc. All Rights Reserved. Terms of Use | Privacy Policy

SmartThings; SmartApps®; Physical Graph; Hello, Home; and Hello, Smart Home are all trademarks of the SmartThings, Inc.