Anyone got a piston to see/record all settings and data from a device?


#1

So, I’m trying to reset a Philips light to its prior color in a piston, but the list of color names doesn’t appear to match up with what it is in Alexa/Philips. I was hoping to see what the color temperature of the bulb was, and realized it would be nice to have a piston that could give me all the settings of a particular device. I was just wondering if there was some general method of doing this, or would I have to write a specific piston for each type of device?

Also, where would I display/send/save the data to make it as easy to collate and read through as possible. Can Webcore write to a text file, for example?


#2

I run this piston to see what Hue, Saturation, and Levels are currently in use:


and then when I want to return to that precise color later, I use this code:

temp


Side Note:
If you try to push the RGB color or colorTemperature, it will often fail to recreate the exact color.
(using only Hue, Saturation, and Levels seems to work best for me)