@switchbot/homebridge-switchbot 1.7.1-beta.6 → 1.7.1-beta.7
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/config.schema.json +4 -4
- package/package.json +1 -1
package/config.schema.json
CHANGED
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"title": "Enable Bluetooth Low Energy (BLE) Connection",
|
|
138
138
|
"type": "boolean",
|
|
139
139
|
"condition": {
|
|
140
|
-
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device);"
|
|
140
|
+
"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'));"
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
143
|
"scanDuration": {
|
|
@@ -455,7 +455,7 @@
|
|
|
455
455
|
"placeholder": 360,
|
|
456
456
|
"description": "Indicates the number of seconds between polls of SwitchBot API.",
|
|
457
457
|
"condition": {
|
|
458
|
-
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device);"
|
|
458
|
+
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType);"
|
|
459
459
|
}
|
|
460
460
|
},
|
|
461
461
|
"logging": {
|
|
@@ -482,7 +482,7 @@
|
|
|
482
482
|
}
|
|
483
483
|
],
|
|
484
484
|
"condition": {
|
|
485
|
-
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device);"
|
|
485
|
+
"functionBody": "return (model.options && model.options.devices && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType);"
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
}
|
|
@@ -880,10 +880,10 @@
|
|
|
880
880
|
"options.devices[].configDeviceName",
|
|
881
881
|
"options.devices[].deviceId",
|
|
882
882
|
"options.devices[].hide_device",
|
|
883
|
+
"options.devices[].configDeviceType",
|
|
883
884
|
"options.devices[].offline",
|
|
884
885
|
"options.devices[].ble",
|
|
885
886
|
"options.devices[].scanDuration",
|
|
886
|
-
"options.devices[].configDeviceType",
|
|
887
887
|
"options.devices[].bot.mode",
|
|
888
888
|
"options.devices[].bot.deviceType",
|
|
889
889
|
"options.devices[].bot.doublePress",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Homebridge SwitchBot",
|
|
3
3
|
"name": "@switchbot/homebridge-switchbot",
|
|
4
|
-
"version": "1.7.1-beta.
|
|
4
|
+
"version": "1.7.1-beta.7",
|
|
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",
|