diff --git a/CHANGELOG.md b/CHANGELOG.md index 57f909f..2cd0487 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +# v6.0.13 - 2021-07-08 + +## Bugfixes +- Fixed an issue where changing color of smarthome lightbulbs showed wrong color/saturation + # v6.0.12 - 2021-07-08 ## Notable Changes diff --git a/package-lock.json b/package-lock.json index 2f3d592..31bade9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "homebridge-fritz-platform", - "version": "6.0.12", + "version": "6.0.13", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0454f63..f2d0ecb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-fritz-platform", - "version": "6.0.12", + "version": "6.0.13", "description": "Homebridge Plugin to control FritzBox router, smarthome devices and more.", "main": "index.js", "funding": [ diff --git a/src/accessories/smarthome/smarthome.utils.js b/src/accessories/smarthome/smarthome.utils.js index e8e94ca..68d9d07 100644 --- a/src/accessories/smarthome/smarthome.utils.js +++ b/src/accessories/smarthome/smarthome.utils.js @@ -13,8 +13,7 @@ exports.colortemp2api = (param) => { }; exports.getValidColor = (hue, sat) => { - hue = Math.round(hue); - sat = Math.round(sat); + sat = Math.round(sat * 2.55); let hues = [35, 52, 92, 120, 160, 195, 212, 225, 266, 296, 335, 358]; let sats = [