telldus / tellstick-server-plugins

Plugins for TellStick Server
14 stars 8 forks source link

Support for reading Hue color values #14

Open crashmatt opened 2 years ago

crashmatt commented 2 years ago

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?