I would like to have hue/sat state read from a light available to be used in a lua script. The plan is to use the existing lighting setting so it can return back to that setting after a period.
Using Device.state("hue") returns a value that is the the device state (on/off/dim)
but it does not appear to parse that state out to anything but brightness. It does not appear to set Device._stateValues so Device::state("hue") can read it back.
I would like to have hue/sat state read from a light available to be used in a lua script. The plan is to use the existing lighting setting so it can return back to that setting after a period.
Using Device.state("hue") returns a value that is the the device state (on/off/dim)
This line appears to record the whole state from the light
but it does not appear to parse that state out to anything but brightness. It does not appear to set Device._stateValues so Device::state("hue") can read it back.
Is this correct? Is there a workaround?