Skip to content

Commit

Permalink
v6.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
seydx committed Jul 4, 2021
1 parent 9692529 commit 51adeee
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
38 changes: 28 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down Expand Up @@ -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",
Expand Down
20 changes: 16 additions & 4 deletions src/accessories/smarthome/smarthome-button.handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand All @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit 51adeee

Please sign in to comment.