Skip to content

Commit

Permalink
Move v2.4.0-alpha.5 from development branch to master (#112)
Browse files Browse the repository at this point in the history
Fixes issues:
- #63 - undefined fanSpeed
- #66 - &s in passwords
- #89 - vertical swing state

New features:
- AirQuality (VOC) + disable
- CO2 + disable
- Disable Humidity
- Swing changes, including disable VerticalSwing
- ModesToExclude

Other changes:
- README.md copy and style changes
- package.json version bumps
- Linting and code style changes, logging changes
- API error handling, token re-use
- New logic for max and mins to reduce warnings thrown to HB logs
- Started extracting common functionality out to Utils
  • Loading branch information
benwebbbenwebb authored Oct 26, 2023
1 parent 6e0747c commit 1425c12
Show file tree
Hide file tree
Showing 24 changed files with 2,666 additions and 2,937 deletions.
96 changes: 95 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
"node": true
},
"extends": "eslint:recommended",
"ignorePatterns": ["node_modules"],
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"indent": [
"error",
"tab"
"tab",
{ "SwitchCase": 1 }
],
"linebreak-style": [
"error",
Expand All @@ -24,6 +26,98 @@
"semi": [
"error",
"never"
],
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": false
}
],
"curly": [
"error",
"all"
],
"object-curly-spacing": [
"error",
"always"
],
"object-curly-newline": [
"error",
{
"minProperties": 2
}
],
"object-property-newline": [
"error",
{
"allowAllPropertiesOnSameLine": false
}
],
"arrow-body-style": [
"error",
"always"
],
"space-before-blocks": [
"error",
"always"
],
"padded-blocks": [
"error",
{
"blocks": "never",
"classes": "always",
"switches": "never"
}
],
"lines-between-class-members": [
"error",
"always"
],
"newline-after-var": [
"error",
"always"
],
"newline-before-return": [
"error"
],
"block-spacing": [
"error",
"always"
],
"no-trailing-spaces": [
"error",
{
"skipBlankLines": false
}
],
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"no-constant-binary-expression": [
"error"
],
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"no-label-var": [
"error"
],
"no-use-before-define": [
"error",
{
"functions": false,
"classes": true,
"variables": true,
"allowNamedExports": false
}
]
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Carthage/Build
# https://docs.fastlane.tools/best-practices/source-control/#source-control

node_modules/
samplePayloads/
.vscode/
.DS_Store
.eslintignore
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sign-git-tag=true
292 changes: 168 additions & 124 deletions README.md

Large diffs are not rendered by default.

67 changes: 37 additions & 30 deletions config-sample.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,40 @@
{
"bridge": {
"name": "Homebridge",
"username": "CD:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"bridge": {
"name": "Homebridge",
"username": "AA:22:00:FF:55:EE",
"port": 51826,
"pin": "012-45-789"
},

"description": "This is an example configuration for the sensibo-ac homebridge plugin",
"platforms": [
{
"platform": "SensiboAC",
"username": "******@*******.**",
"password": "*******",
"disableFan": false,
"disableDry": false,
"enableSyncButton": true,
"syncButtonInAccessory": false,
"enableOccupancySensor": true,
"enableClimateReactSwitch": true,
"enableHistoryStorage": true,
"disableHorizontalSwing": false,
"disableLightSwitch": false,
"externalHumiditySensor": false,
"devicesToExclude": [],
"locationsToInclude": [],
"debug": false
}
],
"description": "This is an example configuration for the sensibo-ac homebridge plugin",
"platforms": [
{
"platform": "SensiboAC",
"apiKey": "***************",
"allowRepeatedCommands": false,
"carbonDioxideAlertThreshold": 1500,
"disableAirQuality": false,
"disableCarbonDioxide": false,
"disableDry": false,
"disableFan": false,
"disableHorizontalSwing": false,
"disableHumidity": false,
"disableLightSwitch": false,
"disableVerticalSwing": false,
"enableClimateReactSwitch": false,
"enableHistoryStorage": false,
"enableOccupancySensor": false,
"enableSyncButton": false,
"syncButtonInAccessory": false,
"externalHumiditySensor": false,
"devicesToExclude": [],
"ignoreHomeKitDevices": false,
"locationsToInclude": [],
"modesToExclude": [],
"debug": false
}
],

"accessories": [
]
}
"accessories": [
]
}
Loading

0 comments on commit 1425c12

Please sign in to comment.