Skip to content

Commit

Permalink
v1.5.0 (#158)
Browse files Browse the repository at this point in the history
## [Version 1.5.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.5.0) (2021-12-27)

## What's Changed
### Major Change To `Logging`:
* Added the following Logging Options:
    * `Standard`
    * `None`
    * `Debug`
* Removed Device Logging Option, which was pushed into new logging under debug.
* Added Device Logging Override for each Device, by using the Device Config.

### Major Changes to `refreshRate`:
* Added an option to override `refreshRate` for each Device, by using the Device Config.

### Other Changes
* Fixed Bug: Air conditioner temperature not able to change. [#43](#43)
* Housekeeping and updated dependencies.

**Full Changelog**: v1.4.0...v1.5.0
  • Loading branch information
donavanbecker authored Dec 27, 2021
1 parent 184d4d8 commit 3c713a4
Show file tree
Hide file tree
Showing 25 changed files with 2,707 additions and 1,741 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@

All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)

## [Version 1.5.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.5.0) (2021-12-27)

## What's Changed
### Major Change To `Logging`:
* Added the following Logging Options:
* `Standard`
* `None`
* `Debug`
* Removed Device Logging Option, which was pushed into new logging under debug.
* Added Device Logging Override for each Device, by using the Device Config.

### Major Changes to `refreshRate`:
* Added an option to override `refreshRate` for each Device, by using the Device Config.

### Other Changes
* Fixed Bug: Air conditioner temperature not able to change. [#43](https://github.com/OpenWonderLabs/homebridge-switchbot/issues/43)
* Housekeeping and updated dependencies.

**Full Changelog**: https://github.com/OpenWonderLabs/homebridge-switchbot/compare/v1.4.0...v1.5.0

## [Version 1.4.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.4.0) (2021-12-15)

## What's Changed
Expand Down
94 changes: 83 additions & 11 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"title": "Offline as Off",
"type": "boolean",
"condition": {
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId);"
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device);"
}
},
"configDeviceType": {
Expand Down Expand Up @@ -258,7 +258,7 @@
}
},
"refreshRate": {
"title": "Refresh Rate",
"title": "Curtain Refresh Rate",
"type": "number",
"minimum": 1,
"placeholder": 5,
Expand Down Expand Up @@ -339,6 +339,43 @@
}
}
}
},
"refreshRate": {
"title": "Device Refresh Rate",
"type": "number",
"minimum": 30,
"placeholder": 360,
"description": "Indicates the number of seconds between polls of SwitchBot API.",
"condition": {
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device);"
}
},
"logging": {
"title": "Device Logging Override Setting",
"type": "string",
"oneOf": [
{
"title": "Standard Logging",
"enum": [
"standard"
]
},
{
"title": "No Logging",
"enum": [
"none"
]
},
{
"title": "Debug Logging",
"enum": [
"debug"
]
}
],
"condition": {
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device);"
}
}
}
}
Expand Down Expand Up @@ -634,6 +671,33 @@
}
}
}
},
"logging": {
"title": "Device Logging Override Setting",
"type": "string",
"oneOf": [
{
"title": "Standard Logging",
"enum": [
"standard"
]
},
{
"title": "No Logging",
"enum": [
"none"
]
},
{
"title": "Debug Logging",
"enum": [
"debug"
]
}
],
"condition": {
"functionBody": "return (model.options && model.options.irdevices && model.options.irdevices[arrayIndices].deviceId && !model.options.irdevices[arrayIndices].hide_device);"
}
}
}
}
Expand All @@ -651,21 +715,26 @@
"placeholder": 1,
"description": "Indicates the number of seconds between pushes to SwitchBot API."
},
"debug": {
"logging": {
"title": "Logging Setting",
"type": "string",
"description": "Enable 'Device' or 'Debug' logging.",
"oneOf": [
{
"title": "Enable Debug Logging",
"title": "Standard Logging",
"enum": [
"debug"
"standard"
]
},
{
"title": "No Logging",
"enum": [
"none"
]
},
{
"title": "Enable Device Logging",
"title": "Debug Logging",
"enum": [
"device"
"debug"
]
}
]
Expand Down Expand Up @@ -723,7 +792,9 @@
"options.devices[].contact.hide_lightsensor",
"options.devices[].contact.hide_motionsensor",
"options.devices[].colorbulb.set_minStep",
"options.devices[].colorbulb.adaptiveLightingShift"
"options.devices[].colorbulb.adaptiveLightingShift",
"options.devices[].refreshRate",
"options.devices[].logging"
]
}
]
Expand Down Expand Up @@ -756,7 +827,8 @@
"options.irdevices[].irtv.disable_power",
"options.irdevices[].other.deviceType",
"options.irdevices[].other.commandOn",
"options.irdevices[].other.commandOff"
"options.irdevices[].other.commandOff",
"options.irdevices[].logging"
]
}
]
Expand All @@ -783,7 +855,7 @@
"key": "options.pushRate",
"notitle": true
},
"options.debug"
"options.logging"
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"ext": "ts",
"ignore": [],
"exec": "tsc && homebridge -D -I",
"exec": "tsc && sudo hb-service restart",
"signal": "SIGTERM",
"env": {
"NODE_OPTIONS": "--trace-warnings"
Expand Down
Loading

0 comments on commit 3c713a4

Please sign in to comment.