@switchbot/homebridge-switchbot 1.12.7-beta.7 → 1.12.8-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/config.schema.json +6 -6
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)
|
|
4
4
|
|
|
5
|
+
## [Version 1.12.7](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.7) (2022-03-07)
|
|
6
|
+
|
|
7
|
+
## What's Changed
|
|
8
|
+
|
|
9
|
+
- Seperated Color Bulb and Strip Lights
|
|
10
|
+
- Strip Lights no longer support Adaptive Lighting.
|
|
11
|
+
- Adaptive Lighting requires Color Temperature, which Strip Lights do not support.
|
|
12
|
+
- Seperated Meter and Meter Plus for BLE purposes.
|
|
13
|
+
- Housekeeping and updated dependencies.
|
|
14
|
+
|
|
15
|
+
**Full Changelog**: https://github.com/OpenWonderLabs/homebridge-switchbot/compare/v1.12.6...v1.12.7
|
|
16
|
+
|
|
5
17
|
## [Version 1.12.6](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.12.6) (2022-03-04)
|
|
6
18
|
|
|
7
19
|
## What's Changed
|
package/config.schema.json
CHANGED
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
{
|
|
145
145
|
"title": "Meter Plus (US)",
|
|
146
146
|
"enum": [
|
|
147
|
-
"
|
|
147
|
+
"MeterPlus"
|
|
148
148
|
]
|
|
149
149
|
},
|
|
150
150
|
{
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
"title": "Enable Bluetooth Low Energy (BLE) Connection",
|
|
175
175
|
"type": "boolean",
|
|
176
176
|
"condition": {
|
|
177
|
-
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].configDeviceType === 'Humidifier' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'Curtain' || model.options.devices[arrayIndices].configDeviceType === 'Bot' || model.options.devices[arrayIndices].configDeviceType === 'Motion Sensor' || model.options.devices[arrayIndices].configDeviceType === 'Contact Sensor'));"
|
|
177
|
+
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].configDeviceType === 'Humidifier' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus' || model.options.devices[arrayIndices].configDeviceType === 'Curtain' || model.options.devices[arrayIndices].configDeviceType === 'Bot' || model.options.devices[arrayIndices].configDeviceType === 'Motion Sensor' || model.options.devices[arrayIndices].configDeviceType === 'Contact Sensor'));"
|
|
178
178
|
}
|
|
179
179
|
},
|
|
180
180
|
"customBLEaddress": {
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
"type": "string",
|
|
183
183
|
"placeholder": "81F3UT59513F",
|
|
184
184
|
"condition": {
|
|
185
|
-
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].ble
|
|
185
|
+
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].ble);"
|
|
186
186
|
}
|
|
187
187
|
},
|
|
188
188
|
"scanDuration": {
|
|
@@ -320,14 +320,14 @@
|
|
|
320
320
|
"title": "Hide Meter's Temperature Sensor",
|
|
321
321
|
"type": "boolean",
|
|
322
322
|
"condition": {
|
|
323
|
-
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Meter' && model.options.devices[arrayIndices].deviceId);"
|
|
323
|
+
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus') && model.options.devices[arrayIndices].deviceId);"
|
|
324
324
|
}
|
|
325
325
|
},
|
|
326
326
|
"hide_humidity": {
|
|
327
327
|
"title": "Hide Meter's Humidity Sensor",
|
|
328
328
|
"type": "boolean",
|
|
329
329
|
"condition": {
|
|
330
|
-
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Meter' && model.options.devices[arrayIndices].deviceId);"
|
|
330
|
+
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus') && model.options.devices[arrayIndices].deviceId);"
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
}
|
|
@@ -495,7 +495,7 @@
|
|
|
495
495
|
"type": "number",
|
|
496
496
|
"placeholder": "1",
|
|
497
497
|
"condition": {
|
|
498
|
-
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Color Bulb' && model.options.devices[arrayIndices].deviceId);"
|
|
498
|
+
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].configDeviceType === 'Color Bulb' || model.options.devices[arrayIndices].configDeviceType === 'Strip Light') && model.options.devices[arrayIndices].deviceId);"
|
|
499
499
|
}
|
|
500
500
|
},
|
|
501
501
|
"adaptiveLightingShift": {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Homebridge SwitchBot",
|
|
3
3
|
"name": "@switchbot/homebridge-switchbot",
|
|
4
|
-
"version": "1.12.
|
|
4
|
+
"version": "1.12.8-beta.0",
|
|
5
5
|
"description": "The [Homebridge](https://homebridge.io) SwitchBot plugin allows you to access your [SwitchBot](https://www.switch-bot.com) device(s) from HomeKit.",
|
|
6
6
|
"author": "SwitchBot <support@wondertechlabs.com> (https://github.com/SwitchBot)",
|
|
7
7
|
"license": "ISC",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/node": "^17.0.21",
|
|
63
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
64
|
-
"@typescript-eslint/parser": "^5.
|
|
63
|
+
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
|
64
|
+
"@typescript-eslint/parser": "^5.14.0",
|
|
65
65
|
"eslint": "^8.10.0",
|
|
66
66
|
"eslint-config-prettier": "8.5.0",
|
|
67
67
|
"eslint-plugin-prettier": "4.0.0",
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
"npm-check-updates": "^12.5.2",
|
|
71
71
|
"prettier": "2.5.1",
|
|
72
72
|
"rimraf": "^3.0.2",
|
|
73
|
-
"ts-node": "^10.
|
|
73
|
+
"ts-node": "^10.7.0",
|
|
74
74
|
"typescript": "^4.6.2",
|
|
75
75
|
"typescript-axios-wb": "^1.0.3"
|
|
76
76
|
},
|
|
77
77
|
"optionalDependencies": {
|
|
78
|
-
"node-switchbot": "^1.2.
|
|
78
|
+
"node-switchbot": "^1.2.0"
|
|
79
79
|
}
|
|
80
80
|
}
|