markbergsma / pimatic-hue-zll

Pimatic integration with Philips Hue (ZLL)
GNU General Public License v2.0
7 stars 4 forks source link

Round dimlevels #4

Closed sweebee closed 8 years ago

markbergsma commented 8 years ago

By rounding the dimlevels (which are percentages) to the nearest integer, you're effectively reducing the resolution as well. Hue supports ~254 different dimlevels, rounding to integer would reduce that to only 100.

I think ideally the presentation of values (with rounding) should be separate from the internal value representation in Pimatic. Lacking that, we could round them, but it would be better to do that with 1-2 extra digits.

sweebee commented 8 years ago

but pimatic itself can only dim 0-100 without decimals? yea 2 decimals is better, but now you get something like 67.3492093348738478%