Skip to content

Commit

Permalink
v1.0.1 (#82)
Browse files Browse the repository at this point in the history
## [Version 1.0.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.1) (2020-11-14)

### Changes

- Fixed `Cannot read properties of undefined (reading 'updateCharacteristic')` on Bots. [#77](#77)
- Fixed Temperature not being retrieved for Switchbot Meter. [#78](#78)
  • Loading branch information
donavanbecker authored Nov 15, 2021
1 parent 7f07c1e commit af0fa3c
Show file tree
Hide file tree
Showing 24 changed files with 279 additions and 208 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

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

## [Version 1.0.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.1) (2020-11-14)

### Changes

- Fixed `Cannot read properties of undefined (reading 'updateCharacteristic')` on Bots. [#77](https://github.com/OpenWonderLabs/homebridge-switchbot/issues/77)
- Fixed Temperature not being retrieved for Switchbot Meter. [#78](https://github.com/OpenWonderLabs/homebridge-switchbot/issues/78)

## [Version 1.0.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.0) (2020-11-13)

### Changes
Expand Down
26 changes: 21 additions & 5 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
"mode": {
"title": "Mode",
"type": "string",
"required": true,
"oneOf": [
{
"title": "Press",
Expand All @@ -152,10 +153,25 @@
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].deviceType === 'Bot' && model.options.devices[arrayIndices].deviceId);"
}
},
"switch": {
"title": "Display as Switch",
"type": "boolean",
"description": "This allows you to display bot as a switch.",
"deviceType": {
"title": "What Type of Device do you want to display in the Home App?",
"type": "string",
"required": true,
"oneOf": [
{
"title": "Switch",
"enum": [
"switch"
]
},
{
"title": "Outlet",
"enum": [
"outlet"
]
}
],
"default": "outlet",
"condition": {
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].deviceType === 'Bot' && model.options.devices[arrayIndices].deviceId && model.options.devices[arrayIndices].bot && model.options.devices[arrayIndices].bot.mode);"
}
Expand Down Expand Up @@ -651,7 +667,7 @@
"options.devices[].deviceType",
"options.devices[].ble",
"options.devices[].bot.mode",
"options.devices[].bot.switch",
"options.devices[].bot.deviceType",
"options.devices[].meter.hide_temperature",
"options.devices[].meter.hide_humidity",
"options.devices[].meter.unit",
Expand Down
30 changes: 15 additions & 15 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,7 +1,7 @@
{
"displayName": "Homebridge SwitchBot",
"name": "@switchbot/homebridge-switchbot",
"version": "1.0.0",
"version": "1.0.1",
"description": "The [Homebridge](https://homebridge.io) SwitchBot plugin allows you to access your [SwitchBot](https://www.switch-bot.com) device(s) from HomeKit.",
"author": "SwitchBot <support@wondertechlabs.com> (https://github.com/SwitchBot)",
"license": "ISC",
Expand Down Expand Up @@ -49,7 +49,7 @@
"dependencies": {
"axios": "^0.24.0",
"rxjs": "^7.4.0",
"node-switchbot": "^1.1.1",
"node-switchbot": "^1.1.2",
"@homebridge/plugin-ui-utils": "^0.0.19"
},
"devDependencies": {
Expand Down
Binary file removed src/.DS_Store
Binary file not shown.
Loading

0 comments on commit af0fa3c

Please sign in to comment.