diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f64759..b5a8b43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +# v6.0.11 - 2021-07-04 + +## Other Changes +- Fixed an issue where buttons with 4 channels didnt work properly +- Updated dependencies + # v6.0.10 - 2021-06-28 ## Other Changes diff --git a/package-lock.json b/package-lock.json index baa2c46..c4a3626 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "homebridge-fritz-platform", - "version": "6.0.10", + "version": "6.0.11", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -293,6 +293,23 @@ } } }, + "@humanwhocodes/config-array": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz", + "integrity": "sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==", + "dev": true, + "requires": { + "@humanwhocodes/object-schema": "^1.2.0", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + } + }, + "@humanwhocodes/object-schema": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz", + "integrity": "sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w==", + "dev": true + }, "@mreal/digest-auth": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@mreal/digest-auth/-/digest-auth-1.1.3.tgz", @@ -899,13 +916,14 @@ "dev": true }, "eslint": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.29.0.tgz", - "integrity": "sha512-82G/JToB9qIy/ArBzIWG9xvvwL3R86AlCjtGw+A29OMZDqhTybz/MByORSukGxeI+YPCR4coYyITKk8BFH9nDA==", + "version": "7.30.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.30.0.tgz", + "integrity": "sha512-VLqz80i3as3NdloY44BQSJpFw534L9Oh+6zJOUaViV4JPd+DaHwutqP7tcpkW3YiXbK6s05RZl7yl7cQn+lijg==", "dev": true, "requires": { "@babel/code-frame": "7.12.11", "@eslint/eslintrc": "^0.4.2", + "@humanwhocodes/config-array": "^0.5.0", "ajv": "^6.10.0", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", @@ -1343,9 +1361,9 @@ } }, "flatted": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.1.1.tgz", - "integrity": "sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.0.tgz", + "integrity": "sha512-XprP7lDrVT+kE2c2YlfiV+IfS9zxukiIOvNamPNsImNhXadSsQEbosItdL9bUQlCZXR13SvPk20BjWSWLA7m4A==", "dev": true }, "form-data": { @@ -2557,9 +2575,9 @@ }, "dependencies": { "ajv": { - "version": "8.6.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.0.tgz", - "integrity": "sha512-cnUG4NSBiM4YFBxgZIj/In3/6KX+rQ2l2YPRVcvAMQGWEPKuXoPIhxzwqh31jA3IPbI4qEOp/5ILI4ynioXsGQ==", + "version": "8.6.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.1.tgz", + "integrity": "sha512-42VLtQUOLefAvKFAQIxIZDaThq6om/PrfP0CYk3/vn+y4BMNkKnbli8ON2QCiHov4KkzOSJ/xSoBJdayiiYvVQ==", "dev": true, "requires": { "fast-deep-equal": "^3.1.1", diff --git a/package.json b/package.json index 49b60c9..5035deb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-fritz-platform", - "version": "6.0.10", + "version": "6.0.11", "description": "Homebridge Plugin to control FritzBox router, smarthome devices and more.", "main": "index.js", "funding": [ @@ -59,7 +59,7 @@ "@babel/core": "7.14.6", "@babel/eslint-parser": "7.14.7", "@babel/eslint-plugin": "7.14.5", - "eslint": "^7.29.0", + "eslint": "^7.30.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.23.4", "eslint-plugin-prettier": "^3.4.0", diff --git a/src/accessories/smarthome/smarthome-button.handler.js b/src/accessories/smarthome/smarthome-button.handler.js index 33f8773..679f1d5 100644 --- a/src/accessories/smarthome/smarthome-button.handler.js +++ b/src/accessories/smarthome/smarthome-button.handler.js @@ -155,7 +155,10 @@ class Handler { accessory.context.lastpressedTopLeft = newTimestamp; accessory - .getServiceById(`${accessory.context.config.subtype}-${1}`) + .getServiceById( + this.api.hap.Service.StatelessProgrammableSwitch, + `${accessory.context.config.subtype}-1` + ) .getCharacteristic(this.api.hap.Characteristic.ProgrammableSwitchEvent) .updateValue(0); } @@ -174,7 +177,10 @@ class Handler { accessory.context.lastpressedTopRight = newTimestamp; accessory - .getServiceById(`${accessory.context.config.subtype}-${2}`) + .getServiceById( + this.api.hap.Service.StatelessProgrammableSwitch, + `${accessory.context.config.subtype}-2` + ) .getCharacteristic(this.api.hap.Characteristic.ProgrammableSwitchEvent) .updateValue(0); } @@ -194,7 +200,10 @@ class Handler { accessory.context.lastpressedBottomLeft = newTimestamp; accessory - .getServiceById(`${accessory.context.config.subtype}-${3}`) + .getServiceById( + this.api.hap.Service.StatelessProgrammableSwitch, + `${accessory.context.config.subtype}-3` + ) .getCharacteristic(this.api.hap.Characteristic.ProgrammableSwitchEvent) .updateValue(0); } @@ -214,7 +223,10 @@ class Handler { accessory.context.lastpressedBottomRight = newTimestamp; accessory - .getServiceById(`${accessory.context.config.subtype}-${4}`) + .getServiceById( + this.api.hap.Service.StatelessProgrammableSwitch, + `${accessory.context.config.subtype}-4` + ) .getCharacteristic(this.api.hap.Characteristic.ProgrammableSwitchEvent) .updateValue(0); }