WebThingsIO / zigbee-adapter

Zigbee adapter add-on for WebThings Gateway
Mozilla Public License 2.0
46 stars 29 forks source link

Brightness turns into float with many decimals #193

Open flatsiedatsie opened 4 years ago

flatsiedatsie commented 4 years ago

Using Voco, I set the brightness of a Tradfri lamp (conbee 2, gateway 0.10) to 41%.

When I then asked what the brightness of the lamp was, the response was: 40.94 and then about 6 more decimals.

I noticed in the html that the step for brightness was set to any Perhaps this should be 1 instead?

Or course, it could also be an error in Voco.