octoblu / meshblu-connector-hue-light

Meshblu Connector for Single Hue Light
MIT License
0 stars 3 forks source link

should not enforce state #1

Open brianehlert opened 8 years ago

brianehlert commented 8 years ago

The Connector should apply a state on change, but it should not continue to enforce a state as if it was the only entity interfacing with or controlling the Hue light / light group / scene.

royvandewater commented 8 years ago

I thought it would use "desiredState" to identify properties which still need to be applied, and state only reflected what the hue was actually in. In other words, the source of truth is supposed to be the hue light itself, so that the state is updated even if you change the color of the bulb out of band (i.e., with the hue app).

Then, the desired state is what you modify to get the hue to do stuff, so the state flow goes desiredState -> Bulb -> state. Are you experiencing a different behavior?