@switchbot/homebridge-switchbot 4.3.1-beta.3 → 4.3.1-beta.4
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 +529 -13
- package/docs/functions/default.html +1 -1
- package/package.json +1 -1
package/config.schema.json
CHANGED
|
@@ -205,23 +205,41 @@
|
|
|
205
205
|
]
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
|
-
"title": "
|
|
208
|
+
"title": "Meter Pro",
|
|
209
|
+
"enum": [
|
|
210
|
+
"MeterPro"
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"title": "Meter Pro (CO2)",
|
|
215
|
+
"enum": [
|
|
216
|
+
"MeterPro(CO2)"
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"title": "Mini Robot Vacuum K10+",
|
|
209
221
|
"enum": [
|
|
210
222
|
"K10+"
|
|
211
223
|
]
|
|
212
224
|
},
|
|
213
225
|
{
|
|
214
|
-
"title": "K10+ Pro",
|
|
226
|
+
"title": "Mini Robot Vacuum K10+ Pro",
|
|
215
227
|
"enum": [
|
|
216
228
|
"K10+ Pro"
|
|
217
229
|
]
|
|
218
230
|
},
|
|
219
231
|
{
|
|
220
|
-
"title": "Mini Robot Vacuum K10+",
|
|
232
|
+
"title": "Mini Robot Vacuum K10+ (WoSweeperMini)",
|
|
221
233
|
"enum": [
|
|
222
234
|
"WoSweeperMini"
|
|
223
235
|
]
|
|
224
236
|
},
|
|
237
|
+
{
|
|
238
|
+
"title": "Mini Robot Vacuum K10+ Pro (WoSweeperMiniPro)",
|
|
239
|
+
"enum": [
|
|
240
|
+
"WoSweeperMiniPro"
|
|
241
|
+
]
|
|
242
|
+
},
|
|
225
243
|
{
|
|
226
244
|
"title": "Motion Sensor",
|
|
227
245
|
"enum": [
|
|
@@ -249,13 +267,13 @@
|
|
|
249
267
|
{
|
|
250
268
|
"title": "Robot Vacuum Cleaner S1",
|
|
251
269
|
"enum": [
|
|
252
|
-
"
|
|
270
|
+
"WoSweeper"
|
|
253
271
|
]
|
|
254
272
|
},
|
|
255
273
|
{
|
|
256
274
|
"title": "Robot Vacuum Cleaner S1 Plus",
|
|
257
275
|
"enum": [
|
|
258
|
-
"
|
|
276
|
+
"WoSweeperPlus"
|
|
259
277
|
]
|
|
260
278
|
},
|
|
261
279
|
{
|
|
@@ -547,14 +565,14 @@
|
|
|
547
565
|
"title": "Hide Temperature Sensor",
|
|
548
566
|
"type": "boolean",
|
|
549
567
|
"condition": {
|
|
550
|
-
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].configDeviceType === 'Hub 2' || model.options.devices[arrayIndices].configDeviceType === 'Humidifier' || model.options.devices[arrayIndices].configDeviceType === 'Humidifier2' || model.options.devices[arrayIndices].configDeviceType === 'WoIOSensor' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus' || model.options.devices[arrayIndices].configDeviceType === 'Meter Plus (JP)') && model.options.devices[arrayIndices].deviceId);"
|
|
568
|
+
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].configDeviceType === 'Hub 2' || model.options.devices[arrayIndices].configDeviceType === 'Humidifier' || model.options.devices[arrayIndices].configDeviceType === 'Humidifier2' || model.options.devices[arrayIndices].configDeviceType === 'WoIOSensor' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus' || model.options.devices[arrayIndices].configDeviceType === 'Meter Plus (JP)' || model.options.devices[arrayIndices].configDeviceType === 'MeterPro' || model.options.devices[arrayIndices].configDeviceType === 'MeterPro(CO2)') && model.options.devices[arrayIndices].deviceId);"
|
|
551
569
|
}
|
|
552
570
|
},
|
|
553
571
|
"convertUnitTo": {
|
|
554
572
|
"title": "Convert Temperature Unit To",
|
|
555
573
|
"type": "string",
|
|
556
574
|
"condition": {
|
|
557
|
-
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].configDeviceType === 'Hub 2' || model.options.devices[arrayIndices].configDeviceType === 'Humidifier' || model.options.devices[arrayIndices].configDeviceType === 'Humidifier2' || model.options.devices[arrayIndices].configDeviceType === 'WoIOSensor' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus' || model.options.devices[arrayIndices].configDeviceType === 'Meter Plus (JP)') && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_temperature);"
|
|
575
|
+
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].configDeviceType === 'Hub 2' || model.options.devices[arrayIndices].configDeviceType === 'Humidifier' || model.options.devices[arrayIndices].configDeviceType === 'Humidifier2' || model.options.devices[arrayIndices].configDeviceType === 'WoIOSensor' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus' || model.options.devices[arrayIndices].configDeviceType === 'Meter Plus (JP)' || model.options.devices[arrayIndices].configDeviceType === 'MeterPro' || model.options.devices[arrayIndices].configDeviceType === 'MeterPro(CO2)') && model.options.devices[arrayIndices].deviceId && !model.options.devices[arrayIndices].hide_temperature);"
|
|
558
576
|
},
|
|
559
577
|
"oneOf": [
|
|
560
578
|
{
|
|
@@ -575,7 +593,7 @@
|
|
|
575
593
|
"title": "Hide Humidity Sensor",
|
|
576
594
|
"type": "boolean",
|
|
577
595
|
"condition": {
|
|
578
|
-
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].configDeviceType === 'Hub 2' || model.options.devices[arrayIndices].configDeviceType === 'WoIOSensor' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus' || model.options.devices[arrayIndices].configDeviceType === 'Meter Plus (JP)') && model.options.devices[arrayIndices].deviceId);"
|
|
596
|
+
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && (model.options.devices[arrayIndices].configDeviceType === 'Hub 2' || model.options.devices[arrayIndices].configDeviceType === 'WoIOSensor' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus' || model.options.devices[arrayIndices].configDeviceType === 'Meter Plus (JP)' || model.options.devices[arrayIndices].configDeviceType === 'MeterPro' || model.options.devices[arrayIndices].configDeviceType === 'MeterPro(CO2)') && model.options.devices[arrayIndices].deviceId);"
|
|
579
597
|
}
|
|
580
598
|
},
|
|
581
599
|
"hide_lightsensor": {
|
|
@@ -765,28 +783,28 @@
|
|
|
765
783
|
"type": "string",
|
|
766
784
|
"placeholder": "192.168.7.1",
|
|
767
785
|
"condition": {
|
|
768
|
-
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].deviceId && (model.options.devices[arrayIndices].configDeviceType === 'Curtain' || model.options.devices[arrayIndices].configDeviceType === 'Water Detector' || model.options.devices[arrayIndices].configDeviceType === 'WoIOSensor' || model.options.devices[arrayIndices].configDeviceType === 'Hub 2' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus' || model.options.devices[arrayIndices].configDeviceType === 'Meter Plus (JP)'));"
|
|
786
|
+
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].deviceId && (model.options.devices[arrayIndices].configDeviceType === 'Curtain' || model.options.devices[arrayIndices].configDeviceType === 'Water Detector' || model.options.devices[arrayIndices].configDeviceType === 'WoIOSensor' || model.options.devices[arrayIndices].configDeviceType === 'Hub 2' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus' || model.options.devices[arrayIndices].configDeviceType === 'Meter Plus (JP)' || model.options.devices[arrayIndices].configDeviceType === 'MeterPro' || model.options.devices[arrayIndices].configDeviceType === 'MeterPro(CO2)'));"
|
|
769
787
|
}
|
|
770
788
|
},
|
|
771
789
|
"mqttOptions": {
|
|
772
790
|
"title": "MQTT Options (Device Specific)",
|
|
773
791
|
"type": "string",
|
|
774
792
|
"condition": {
|
|
775
|
-
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].deviceId && model.options.devices[arrayIndices].mqttURL && (model.options.devices[arrayIndices].configDeviceType === 'Curtain' || model.options.devices[arrayIndices].configDeviceType === 'Water Detector' || model.options.devices[arrayIndices].configDeviceType === 'WoIOSensor' || model.options.devices[arrayIndices].configDeviceType === 'Hub 2' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus' || model.options.devices[arrayIndices].configDeviceType === 'Meter Plus (JP)'));"
|
|
793
|
+
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].deviceId && model.options.devices[arrayIndices].mqttURL && (model.options.devices[arrayIndices].configDeviceType === 'Curtain' || model.options.devices[arrayIndices].configDeviceType === 'Water Detector' || model.options.devices[arrayIndices].configDeviceType === 'WoIOSensor' || model.options.devices[arrayIndices].configDeviceType === 'Hub 2' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus' || model.options.devices[arrayIndices].configDeviceType === 'Meter Plus (JP)' || model.options.devices[arrayIndices].configDeviceType === 'MeterPro' || model.options.devices[arrayIndices].configDeviceType === 'MeterPro(CO2)'));"
|
|
776
794
|
}
|
|
777
795
|
},
|
|
778
796
|
"mqttPubOptions": {
|
|
779
797
|
"title": "MQTT Pub Options (Device Specific)",
|
|
780
798
|
"type": "string",
|
|
781
799
|
"condition": {
|
|
782
|
-
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].deviceId && model.options.devices[arrayIndices].mqttURL && (model.options.devices[arrayIndices].configDeviceType === 'Curtain' || model.options.devices[arrayIndices].configDeviceType === 'Water Detector' || model.options.devices[arrayIndices].configDeviceType === 'WoIOSensor' || model.options.devices[arrayIndices].configDeviceType === 'Hub 2' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus' || model.options.devices[arrayIndices].configDeviceType === 'Meter Plus (JP)'));"
|
|
800
|
+
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].deviceId && model.options.devices[arrayIndices].mqttURL && (model.options.devices[arrayIndices].configDeviceType === 'Curtain' || model.options.devices[arrayIndices].configDeviceType === 'Water Detector' || model.options.devices[arrayIndices].configDeviceType === 'WoIOSensor' || model.options.devices[arrayIndices].configDeviceType === 'Hub 2' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus' || model.options.devices[arrayIndices].configDeviceType === 'Meter Plus (JP)' || model.options.devices[arrayIndices].configDeviceType === 'MeterPro' || model.options.devices[arrayIndices].configDeviceType === 'MeterPro(CO2)'));"
|
|
783
801
|
}
|
|
784
802
|
},
|
|
785
803
|
"history": {
|
|
786
804
|
"title": "EVE History",
|
|
787
805
|
"type": "boolean",
|
|
788
806
|
"condition": {
|
|
789
|
-
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].deviceId && (model.options.devices[arrayIndices].configDeviceType === 'Curtain' || model.options.devices[arrayIndices].configDeviceType === 'Water Detector' || model.options.devices[arrayIndices].configDeviceType === 'WoIOSensor' || model.options.devices[arrayIndices].configDeviceType === 'Hub 2' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus' || model.options.devices[arrayIndices].configDeviceType === 'Meter Plus (JP)'));"
|
|
807
|
+
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].deviceId && (model.options.devices[arrayIndices].configDeviceType === 'Curtain' || model.options.devices[arrayIndices].configDeviceType === 'Water Detector' || model.options.devices[arrayIndices].configDeviceType === 'WoIOSensor' || model.options.devices[arrayIndices].configDeviceType === 'Hub 2' || model.options.devices[arrayIndices].configDeviceType === 'Meter' || model.options.devices[arrayIndices].configDeviceType === 'MeterPlus' || model.options.devices[arrayIndices].configDeviceType === 'Meter Plus (JP)' || model.options.devices[arrayIndices].configDeviceType === 'MeterPro' || model.options.devices[arrayIndices].configDeviceType === 'MeterPro(CO2)'));"
|
|
790
808
|
}
|
|
791
809
|
},
|
|
792
810
|
"offline": {
|
|
@@ -2843,6 +2861,448 @@
|
|
|
2843
2861
|
}
|
|
2844
2862
|
}
|
|
2845
2863
|
},
|
|
2864
|
+
"MeterPro": {
|
|
2865
|
+
"type": "object",
|
|
2866
|
+
"properties": {
|
|
2867
|
+
"hide_device": {
|
|
2868
|
+
"title": "Hide All Meter Pluses",
|
|
2869
|
+
"type": "boolean",
|
|
2870
|
+
"description": "If true, device will be removed or hidden from HomeKit."
|
|
2871
|
+
},
|
|
2872
|
+
"hide_temperature": {
|
|
2873
|
+
"title": "Hide Temperature Sensor",
|
|
2874
|
+
"type": "boolean",
|
|
2875
|
+
"condition": {
|
|
2876
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro'] && !model.options.deviceConfig['MeterPro'].hide_device);"
|
|
2877
|
+
}
|
|
2878
|
+
},
|
|
2879
|
+
"convertUnitTo": {
|
|
2880
|
+
"title": "Convert Temperature Unit To",
|
|
2881
|
+
"type": "string",
|
|
2882
|
+
"condition": {
|
|
2883
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro'] && !model.options.deviceConfig['MeterPro'].hide_device);"
|
|
2884
|
+
},
|
|
2885
|
+
"oneOf": [
|
|
2886
|
+
{
|
|
2887
|
+
"title": "Celsius",
|
|
2888
|
+
"enum": [
|
|
2889
|
+
"CELSIUS"
|
|
2890
|
+
]
|
|
2891
|
+
},
|
|
2892
|
+
{
|
|
2893
|
+
"title": "Fahrenheit",
|
|
2894
|
+
"enum": [
|
|
2895
|
+
"FAHRENHEIT"
|
|
2896
|
+
]
|
|
2897
|
+
}
|
|
2898
|
+
]
|
|
2899
|
+
},
|
|
2900
|
+
"hide_humidity": {
|
|
2901
|
+
"title": "Hide Humidity Sensor",
|
|
2902
|
+
"type": "boolean",
|
|
2903
|
+
"condition": {
|
|
2904
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro'] && !model.options.deviceConfig['MeterPro'].hide_device);"
|
|
2905
|
+
}
|
|
2906
|
+
},
|
|
2907
|
+
"connectionType": {
|
|
2908
|
+
"title": "Connection Type",
|
|
2909
|
+
"type": "string",
|
|
2910
|
+
"description": "Bluetooth (BLE) API is only available on certain Device Types, see the Wiki for more information.",
|
|
2911
|
+
"condition": {
|
|
2912
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro'] && !model.options.deviceConfig['MeterPro'].hide_device);"
|
|
2913
|
+
},
|
|
2914
|
+
"oneOf": [
|
|
2915
|
+
{
|
|
2916
|
+
"title": "BLE",
|
|
2917
|
+
"enum": [
|
|
2918
|
+
"BLE"
|
|
2919
|
+
]
|
|
2920
|
+
},
|
|
2921
|
+
{
|
|
2922
|
+
"title": "BLE/OpenAPI",
|
|
2923
|
+
"enum": [
|
|
2924
|
+
"BLE/OpenAPI"
|
|
2925
|
+
]
|
|
2926
|
+
},
|
|
2927
|
+
{
|
|
2928
|
+
"title": "Disable",
|
|
2929
|
+
"enum": [
|
|
2930
|
+
"Disabled"
|
|
2931
|
+
]
|
|
2932
|
+
},
|
|
2933
|
+
{
|
|
2934
|
+
"title": "OpenAPI",
|
|
2935
|
+
"enum": [
|
|
2936
|
+
"OpenAPI"
|
|
2937
|
+
]
|
|
2938
|
+
}
|
|
2939
|
+
]
|
|
2940
|
+
},
|
|
2941
|
+
"disablePlatformBLE": {
|
|
2942
|
+
"title": "Disable Platform BLE",
|
|
2943
|
+
"type": "boolean",
|
|
2944
|
+
"condition": {
|
|
2945
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro'] && !model.options.deviceConfig['MeterPro'].hide_device && model.options.deviceConfig['MeterPlus'].connectionType !== 'Disabled');"
|
|
2946
|
+
}
|
|
2947
|
+
},
|
|
2948
|
+
"scanDuration": {
|
|
2949
|
+
"title": "Scan Duration (Default is 1 Second) for BLE",
|
|
2950
|
+
"type": "number",
|
|
2951
|
+
"placeholder": 1,
|
|
2952
|
+
"condition": {
|
|
2953
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro'] && !model.options.deviceConfig['MeterPro'].hide_device && (model.options.deviceConfig['MeterPlus'].connectionType === 'BLE' || model.options.deviceConfig['MeterPro'].connectionType === 'BLE/OpenAPI'));"
|
|
2954
|
+
}
|
|
2955
|
+
},
|
|
2956
|
+
"webhook": {
|
|
2957
|
+
"title": "Enable Webhook for all Meter Pluses",
|
|
2958
|
+
"type": "boolean",
|
|
2959
|
+
"condition": {
|
|
2960
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro'] && !model.options.deviceConfig['MeterPro'].hide_device && (model.options.deviceConfig['MeterPlus'].connectionType === 'OpenAPI' || model.options.deviceConfig['MeterPro'].connectionType === 'BLE/OpenAPI'));"
|
|
2961
|
+
}
|
|
2962
|
+
},
|
|
2963
|
+
"external": {
|
|
2964
|
+
"title": "External Accessory",
|
|
2965
|
+
"type": "boolean",
|
|
2966
|
+
"condition": {
|
|
2967
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro'] && !model.options.deviceConfig['MeterPro'].hide_device);"
|
|
2968
|
+
}
|
|
2969
|
+
},
|
|
2970
|
+
"maxRetry": {
|
|
2971
|
+
"title": "Max Retries for BLE",
|
|
2972
|
+
"type": "number",
|
|
2973
|
+
"placeholder": "5",
|
|
2974
|
+
"condition": {
|
|
2975
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro'] && !model.options.deviceConfig['MeterPro'].hide_device && (model.options.deviceConfig['MeterPro'].connectionType === 'BLE' || model.options.deviceConfig['MeterPro'].connectionType === 'BLE/OpenAPI'));"
|
|
2976
|
+
}
|
|
2977
|
+
},
|
|
2978
|
+
"maxRetries": {
|
|
2979
|
+
"title": "Device Max Retries for OpenAPI",
|
|
2980
|
+
"type": "number",
|
|
2981
|
+
"placeholder": 5,
|
|
2982
|
+
"condition": {
|
|
2983
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro'] && !model.options.deviceConfig['MeterPro'].hide_device && (model.options.deviceConfig['MeterPro'].connectionType === 'OpenAPI' || model.options.deviceConfig['MeterPro'].connectionType === 'BLE/OpenAPI'));"
|
|
2984
|
+
}
|
|
2985
|
+
},
|
|
2986
|
+
"delayBetweenRetries": {
|
|
2987
|
+
"title": "Device Delay Between Retries for OpenAPI (In Seconds)",
|
|
2988
|
+
"type": "number",
|
|
2989
|
+
"placeholder": 3,
|
|
2990
|
+
"condition": {
|
|
2991
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro'] && !model.options.deviceConfig['MeterPro'].hide_device && (model.options.deviceConfig['MeterPro'].connectionType === 'OpenAPI' || model.options.deviceConfig['MeterPro'].connectionType === 'BLE/OpenAPI'));"
|
|
2992
|
+
}
|
|
2993
|
+
},
|
|
2994
|
+
"disableCaching": {
|
|
2995
|
+
"title": "Disable Caching",
|
|
2996
|
+
"type": "boolean",
|
|
2997
|
+
"condition": {
|
|
2998
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro'] && !model.options.deviceConfig['MeterPro'].hide_device);"
|
|
2999
|
+
}
|
|
3000
|
+
},
|
|
3001
|
+
"offline": {
|
|
3002
|
+
"title": "Offline as Off",
|
|
3003
|
+
"type": "boolean",
|
|
3004
|
+
"condition": {
|
|
3005
|
+
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['MeterPro'].hide_device);"
|
|
3006
|
+
}
|
|
3007
|
+
},
|
|
3008
|
+
"history": {
|
|
3009
|
+
"title": "EVE History",
|
|
3010
|
+
"type": "boolean",
|
|
3011
|
+
"condition": {
|
|
3012
|
+
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['MeterPro'].hide_device);"
|
|
3013
|
+
}
|
|
3014
|
+
},
|
|
3015
|
+
"firmware": {
|
|
3016
|
+
"title": "Firmware Override",
|
|
3017
|
+
"type": "string",
|
|
3018
|
+
"placeholder": "1.2.8",
|
|
3019
|
+
"condition": {
|
|
3020
|
+
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['MeterPro'].hide_device);"
|
|
3021
|
+
}
|
|
3022
|
+
},
|
|
3023
|
+
"logging": {
|
|
3024
|
+
"title": "Logging by Device Type",
|
|
3025
|
+
"type": "string",
|
|
3026
|
+
"default": "",
|
|
3027
|
+
"condition": {
|
|
3028
|
+
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['MeterPro'].hide_device);"
|
|
3029
|
+
},
|
|
3030
|
+
"oneOf": [
|
|
3031
|
+
{
|
|
3032
|
+
"title": "Debug Logging",
|
|
3033
|
+
"enum": [
|
|
3034
|
+
"debug"
|
|
3035
|
+
]
|
|
3036
|
+
},
|
|
3037
|
+
{
|
|
3038
|
+
"title": "Default Logging",
|
|
3039
|
+
"enum": [
|
|
3040
|
+
""
|
|
3041
|
+
]
|
|
3042
|
+
},
|
|
3043
|
+
{
|
|
3044
|
+
"title": "No Logging",
|
|
3045
|
+
"enum": [
|
|
3046
|
+
"none"
|
|
3047
|
+
]
|
|
3048
|
+
},
|
|
3049
|
+
{
|
|
3050
|
+
"title": "Standard Logging",
|
|
3051
|
+
"enum": [
|
|
3052
|
+
"standard"
|
|
3053
|
+
]
|
|
3054
|
+
}
|
|
3055
|
+
]
|
|
3056
|
+
},
|
|
3057
|
+
"refreshRate": {
|
|
3058
|
+
"title": "Device Refresh Rate",
|
|
3059
|
+
"type": "number",
|
|
3060
|
+
"placeholder": 5,
|
|
3061
|
+
"condition": {
|
|
3062
|
+
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['MeterPro'].hide_device);"
|
|
3063
|
+
}
|
|
3064
|
+
},
|
|
3065
|
+
"updateRate": {
|
|
3066
|
+
"title": "Update Rate",
|
|
3067
|
+
"type": "number",
|
|
3068
|
+
"minimum": 1,
|
|
3069
|
+
"placeholder": 5,
|
|
3070
|
+
"description": "Indicates the number of seconds before refreshing status while updating progress.",
|
|
3071
|
+
"condition": {
|
|
3072
|
+
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['MeterPro'].hide_device);"
|
|
3073
|
+
}
|
|
3074
|
+
},
|
|
3075
|
+
"pushRate": {
|
|
3076
|
+
"title": "Device Push Rate",
|
|
3077
|
+
"type": "number",
|
|
3078
|
+
"placeholder": 360,
|
|
3079
|
+
"condition": {
|
|
3080
|
+
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['MeterPro'].hide_device);"
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
}
|
|
3084
|
+
},
|
|
3085
|
+
"MeterPro(CO2)": {
|
|
3086
|
+
"type": "object",
|
|
3087
|
+
"properties": {
|
|
3088
|
+
"hide_device": {
|
|
3089
|
+
"title": "Hide All Meter Pluses",
|
|
3090
|
+
"type": "boolean",
|
|
3091
|
+
"description": "If true, device will be removed or hidden from HomeKit."
|
|
3092
|
+
},
|
|
3093
|
+
"hide_temperature": {
|
|
3094
|
+
"title": "Hide Temperature Sensor",
|
|
3095
|
+
"type": "boolean",
|
|
3096
|
+
"condition": {
|
|
3097
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro(CO2)'] && !model.options.deviceConfig['MeterPro(CO2)'].hide_device);"
|
|
3098
|
+
}
|
|
3099
|
+
},
|
|
3100
|
+
"convertUnitTo": {
|
|
3101
|
+
"title": "Convert Temperature Unit To",
|
|
3102
|
+
"type": "string",
|
|
3103
|
+
"condition": {
|
|
3104
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro(CO2)'] && !model.options.deviceConfig['MeterPro(CO2)'].hide_device);"
|
|
3105
|
+
},
|
|
3106
|
+
"oneOf": [
|
|
3107
|
+
{
|
|
3108
|
+
"title": "Celsius",
|
|
3109
|
+
"enum": [
|
|
3110
|
+
"CELSIUS"
|
|
3111
|
+
]
|
|
3112
|
+
},
|
|
3113
|
+
{
|
|
3114
|
+
"title": "Fahrenheit",
|
|
3115
|
+
"enum": [
|
|
3116
|
+
"FAHRENHEIT"
|
|
3117
|
+
]
|
|
3118
|
+
}
|
|
3119
|
+
]
|
|
3120
|
+
},
|
|
3121
|
+
"hide_humidity": {
|
|
3122
|
+
"title": "Hide Humidity Sensor",
|
|
3123
|
+
"type": "boolean",
|
|
3124
|
+
"condition": {
|
|
3125
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro(CO2)'] && !model.options.deviceConfig['MeterPro(CO2)'].hide_device);"
|
|
3126
|
+
}
|
|
3127
|
+
},
|
|
3128
|
+
"connectionType": {
|
|
3129
|
+
"title": "Connection Type",
|
|
3130
|
+
"type": "string",
|
|
3131
|
+
"description": "Bluetooth (BLE) API is only available on certain Device Types, see the Wiki for more information.",
|
|
3132
|
+
"condition": {
|
|
3133
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro(CO2)'] && !model.options.deviceConfig['MeterPro(CO2)'].hide_device);"
|
|
3134
|
+
},
|
|
3135
|
+
"oneOf": [
|
|
3136
|
+
{
|
|
3137
|
+
"title": "BLE",
|
|
3138
|
+
"enum": [
|
|
3139
|
+
"BLE"
|
|
3140
|
+
]
|
|
3141
|
+
},
|
|
3142
|
+
{
|
|
3143
|
+
"title": "BLE/OpenAPI",
|
|
3144
|
+
"enum": [
|
|
3145
|
+
"BLE/OpenAPI"
|
|
3146
|
+
]
|
|
3147
|
+
},
|
|
3148
|
+
{
|
|
3149
|
+
"title": "Disable",
|
|
3150
|
+
"enum": [
|
|
3151
|
+
"Disabled"
|
|
3152
|
+
]
|
|
3153
|
+
},
|
|
3154
|
+
{
|
|
3155
|
+
"title": "OpenAPI",
|
|
3156
|
+
"enum": [
|
|
3157
|
+
"OpenAPI"
|
|
3158
|
+
]
|
|
3159
|
+
}
|
|
3160
|
+
]
|
|
3161
|
+
},
|
|
3162
|
+
"disablePlatformBLE": {
|
|
3163
|
+
"title": "Disable Platform BLE",
|
|
3164
|
+
"type": "boolean",
|
|
3165
|
+
"condition": {
|
|
3166
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro(CO2)'] && !model.options.deviceConfig['MeterPro(CO2)'].hide_device && model.options.deviceConfig['MeterPro(CO2)'].connectionType !== 'Disabled');"
|
|
3167
|
+
}
|
|
3168
|
+
},
|
|
3169
|
+
"scanDuration": {
|
|
3170
|
+
"title": "Scan Duration (Default is 1 Second) for BLE",
|
|
3171
|
+
"type": "number",
|
|
3172
|
+
"placeholder": 1,
|
|
3173
|
+
"condition": {
|
|
3174
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro(CO2)'] && !model.options.deviceConfig['MeterPro(CO2)'].hide_device && (model.options.deviceConfig['MeterPro(CO2)'].connectionType === 'BLE' || model.options.deviceConfig['MeterPro(CO2)'].connectionType === 'BLE/OpenAPI'));"
|
|
3175
|
+
}
|
|
3176
|
+
},
|
|
3177
|
+
"webhook": {
|
|
3178
|
+
"title": "Enable Webhook for all Meter Pluses",
|
|
3179
|
+
"type": "boolean",
|
|
3180
|
+
"condition": {
|
|
3181
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro(CO2)'] && !model.options.deviceConfig['MeterPro(CO2)'].hide_device && (model.options.deviceConfig['MeterPro(CO2)'].connectionType === 'OpenAPI' || model.options.deviceConfig['MeterPro(CO2)'].connectionType === 'BLE/OpenAPI'));"
|
|
3182
|
+
}
|
|
3183
|
+
},
|
|
3184
|
+
"external": {
|
|
3185
|
+
"title": "External Accessory",
|
|
3186
|
+
"type": "boolean",
|
|
3187
|
+
"condition": {
|
|
3188
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro(CO2)'] && !model.options.deviceConfig['MeterPro(CO2)'].hide_device);"
|
|
3189
|
+
}
|
|
3190
|
+
},
|
|
3191
|
+
"maxRetry": {
|
|
3192
|
+
"title": "Max Retries for BLE",
|
|
3193
|
+
"type": "number",
|
|
3194
|
+
"placeholder": "5",
|
|
3195
|
+
"condition": {
|
|
3196
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro(CO2)'] && !model.options.deviceConfig['MeterPro(CO2)'].hide_device && (model.options.deviceConfig['MeterPro(CO2)'].connectionType === 'BLE' || model.options.deviceConfig['MeterPro(CO2)'].connectionType === 'BLE/OpenAPI'));"
|
|
3197
|
+
}
|
|
3198
|
+
},
|
|
3199
|
+
"maxRetries": {
|
|
3200
|
+
"title": "Device Max Retries for OpenAPI",
|
|
3201
|
+
"type": "number",
|
|
3202
|
+
"placeholder": 5,
|
|
3203
|
+
"condition": {
|
|
3204
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro(CO2)'] && !model.options.deviceConfig['MeterPro(CO2)'].hide_device && (model.options.deviceConfig['MeterPro(CO2)'].connectionType === 'OpenAPI' || model.options.deviceConfig['MeterPro(CO2)'].connectionType === 'BLE/OpenAPI'));"
|
|
3205
|
+
}
|
|
3206
|
+
},
|
|
3207
|
+
"delayBetweenRetries": {
|
|
3208
|
+
"title": "Device Delay Between Retries for OpenAPI (In Seconds)",
|
|
3209
|
+
"type": "number",
|
|
3210
|
+
"placeholder": 3,
|
|
3211
|
+
"condition": {
|
|
3212
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro(CO2)'] && !model.options.deviceConfig['MeterPro(CO2)'].hide_device && (model.options.deviceConfig['MeterPro(CO2)'].connectionType === 'OpenAPI' || model.options.deviceConfig['MeterPro(CO2)'].connectionType === 'BLE/OpenAPI'));"
|
|
3213
|
+
}
|
|
3214
|
+
},
|
|
3215
|
+
"disableCaching": {
|
|
3216
|
+
"title": "Disable Caching",
|
|
3217
|
+
"type": "boolean",
|
|
3218
|
+
"condition": {
|
|
3219
|
+
"functionBody": "return (model.options && model.options.deviceConfig && model.options.deviceConfig['MeterPro(CO2)'] && !model.options.deviceConfig['MeterPro(CO2)'].hide_device);"
|
|
3220
|
+
}
|
|
3221
|
+
},
|
|
3222
|
+
"offline": {
|
|
3223
|
+
"title": "Offline as Off",
|
|
3224
|
+
"type": "boolean",
|
|
3225
|
+
"condition": {
|
|
3226
|
+
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['MeterPro(CO2)'].hide_device);"
|
|
3227
|
+
}
|
|
3228
|
+
},
|
|
3229
|
+
"history": {
|
|
3230
|
+
"title": "EVE History",
|
|
3231
|
+
"type": "boolean",
|
|
3232
|
+
"condition": {
|
|
3233
|
+
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['MeterPro(CO2)'].hide_device);"
|
|
3234
|
+
}
|
|
3235
|
+
},
|
|
3236
|
+
"firmware": {
|
|
3237
|
+
"title": "Firmware Override",
|
|
3238
|
+
"type": "string",
|
|
3239
|
+
"placeholder": "1.2.8",
|
|
3240
|
+
"condition": {
|
|
3241
|
+
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['MeterPro(CO2)'].hide_device);"
|
|
3242
|
+
}
|
|
3243
|
+
},
|
|
3244
|
+
"logging": {
|
|
3245
|
+
"title": "Logging by Device Type",
|
|
3246
|
+
"type": "string",
|
|
3247
|
+
"default": "",
|
|
3248
|
+
"condition": {
|
|
3249
|
+
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['MeterPro(CO2)'].hide_device);"
|
|
3250
|
+
},
|
|
3251
|
+
"oneOf": [
|
|
3252
|
+
{
|
|
3253
|
+
"title": "Debug Logging",
|
|
3254
|
+
"enum": [
|
|
3255
|
+
"debug"
|
|
3256
|
+
]
|
|
3257
|
+
},
|
|
3258
|
+
{
|
|
3259
|
+
"title": "Default Logging",
|
|
3260
|
+
"enum": [
|
|
3261
|
+
""
|
|
3262
|
+
]
|
|
3263
|
+
},
|
|
3264
|
+
{
|
|
3265
|
+
"title": "No Logging",
|
|
3266
|
+
"enum": [
|
|
3267
|
+
"none"
|
|
3268
|
+
]
|
|
3269
|
+
},
|
|
3270
|
+
{
|
|
3271
|
+
"title": "Standard Logging",
|
|
3272
|
+
"enum": [
|
|
3273
|
+
"standard"
|
|
3274
|
+
]
|
|
3275
|
+
}
|
|
3276
|
+
]
|
|
3277
|
+
},
|
|
3278
|
+
"refreshRate": {
|
|
3279
|
+
"title": "Device Refresh Rate",
|
|
3280
|
+
"type": "number",
|
|
3281
|
+
"placeholder": 5,
|
|
3282
|
+
"condition": {
|
|
3283
|
+
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['MeterPro(CO2)'].hide_device);"
|
|
3284
|
+
}
|
|
3285
|
+
},
|
|
3286
|
+
"updateRate": {
|
|
3287
|
+
"title": "Update Rate",
|
|
3288
|
+
"type": "number",
|
|
3289
|
+
"minimum": 1,
|
|
3290
|
+
"placeholder": 5,
|
|
3291
|
+
"description": "Indicates the number of seconds before refreshing status while updating progress.",
|
|
3292
|
+
"condition": {
|
|
3293
|
+
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['MeterPro(CO2)'].hide_device);"
|
|
3294
|
+
}
|
|
3295
|
+
},
|
|
3296
|
+
"pushRate": {
|
|
3297
|
+
"title": "Device Push Rate",
|
|
3298
|
+
"type": "number",
|
|
3299
|
+
"placeholder": 360,
|
|
3300
|
+
"condition": {
|
|
3301
|
+
"functionBody": "return (model.options && model.options.deviceConfig && !model.options.deviceConfig['MeterPro(CO2)'].hide_device);"
|
|
3302
|
+
}
|
|
3303
|
+
}
|
|
3304
|
+
}
|
|
3305
|
+
},
|
|
2846
3306
|
"WoIOSensor": {
|
|
2847
3307
|
"type": "object",
|
|
2848
3308
|
"properties": {
|
|
@@ -8488,7 +8948,7 @@
|
|
|
8488
8948
|
"title": "Device ID",
|
|
8489
8949
|
"type": "string",
|
|
8490
8950
|
"placeholder": "81F3UT59513F",
|
|
8491
|
-
"pattern": "^[0-9A-Za-z]{2}-[0-9A-Za-z]{12}-[0-9A-Za-z]{8}$"
|
|
8951
|
+
"pattern": "^[0-9A-Za-z]{2}-[0-9A-Za-z]{12}-[0-9A-Za-z]{8}$|^[0-9A-Za-z]{18}$"
|
|
8492
8952
|
},
|
|
8493
8953
|
"hide_device": {
|
|
8494
8954
|
"title": "Hide Device",
|
|
@@ -12961,6 +13421,62 @@
|
|
|
12961
13421
|
"options.deviceConfig['Meter Plus (JP)'].pushRate"
|
|
12962
13422
|
]
|
|
12963
13423
|
},
|
|
13424
|
+
{
|
|
13425
|
+
"type": "fieldset",
|
|
13426
|
+
"title": "Meter Pro Settings",
|
|
13427
|
+
"expandable": true,
|
|
13428
|
+
"expanded": false,
|
|
13429
|
+
"items": [
|
|
13430
|
+
"options.deviceConfig['MeterPro'].hide_device",
|
|
13431
|
+
"options.deviceConfig['MeterPro'].hide_temperature",
|
|
13432
|
+
"options.deviceConfig['MeterPro'].convertUnitTo",
|
|
13433
|
+
"options.deviceConfig['MeterPro'].hide_humidity",
|
|
13434
|
+
"options.deviceConfig['MeterPro'].connectionType",
|
|
13435
|
+
"options.deviceConfig['MeterPro'].disablePlatformBLE",
|
|
13436
|
+
"options.deviceConfig['MeterPro'].scanDuration",
|
|
13437
|
+
"options.deviceConfig['MeterPro'].webhook",
|
|
13438
|
+
"options.deviceConfig['MeterPro'].external",
|
|
13439
|
+
"options.deviceConfig['MeterPro'].maxRetry",
|
|
13440
|
+
"options.deviceConfig['MeterPro'].maxRetries",
|
|
13441
|
+
"options.deviceConfig['MeterPro'].delayBetweenRetries",
|
|
13442
|
+
"options.deviceConfig['MeterPro'].disableCaching",
|
|
13443
|
+
"options.deviceConfig['MeterPro'].offline",
|
|
13444
|
+
"options.deviceConfig['MeterPro'].history",
|
|
13445
|
+
"options.deviceConfig['MeterPro'].firmware",
|
|
13446
|
+
"options.deviceConfig['MeterPro'].logging",
|
|
13447
|
+
"options.deviceConfig['MeterPro'].refreshRate",
|
|
13448
|
+
"options.deviceConfig['MeterPro'].updateRate",
|
|
13449
|
+
"options.deviceConfig['MeterPro'].pushRate"
|
|
13450
|
+
]
|
|
13451
|
+
},
|
|
13452
|
+
{
|
|
13453
|
+
"type": "fieldset",
|
|
13454
|
+
"title": "Meter Pro (CO2) Settings",
|
|
13455
|
+
"expandable": true,
|
|
13456
|
+
"expanded": false,
|
|
13457
|
+
"items": [
|
|
13458
|
+
"options.deviceConfig['MeterPro(CO2)'].hide_device",
|
|
13459
|
+
"options.deviceConfig['MeterPro(CO2)'].hide_temperature",
|
|
13460
|
+
"options.deviceConfig['MeterPro(CO2)'].convertUnitTo",
|
|
13461
|
+
"options.deviceConfig['MeterPro(CO2)'].hide_humidity",
|
|
13462
|
+
"options.deviceConfig['MeterPro(CO2)'].connectionType",
|
|
13463
|
+
"options.deviceConfig['MeterPro(CO2)'].disablePlatformBLE",
|
|
13464
|
+
"options.deviceConfig['MeterPro(CO2)'].scanDuration",
|
|
13465
|
+
"options.deviceConfig['MeterPro(CO2)'].webhook",
|
|
13466
|
+
"options.deviceConfig['MeterPro(CO2)'].external",
|
|
13467
|
+
"options.deviceConfig['MeterPro(CO2)'].maxRetry",
|
|
13468
|
+
"options.deviceConfig['MeterPro(CO2)'].maxRetries",
|
|
13469
|
+
"options.deviceConfig['MeterPro(CO2)'].delayBetweenRetries",
|
|
13470
|
+
"options.deviceConfig['MeterPro(CO2)'].disableCaching",
|
|
13471
|
+
"options.deviceConfig['MeterPro(CO2)'].offline",
|
|
13472
|
+
"options.deviceConfig['MeterPro(CO2)'].history",
|
|
13473
|
+
"options.deviceConfig['MeterPro(CO2)'].firmware",
|
|
13474
|
+
"options.deviceConfig['MeterPro(CO2)'].logging",
|
|
13475
|
+
"options.deviceConfig['MeterPro(CO2)'].refreshRate",
|
|
13476
|
+
"options.deviceConfig['MeterPro(CO2)'].updateRate",
|
|
13477
|
+
"options.deviceConfig['MeterPro(CO2)'].pushRate"
|
|
13478
|
+
]
|
|
13479
|
+
},
|
|
12964
13480
|
{
|
|
12965
13481
|
"type": "fieldset",
|
|
12966
13482
|
"title": "Indoor Outdoor Sensor Settings",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
<!DOCTYPE html><html class="default" lang="en" data-base=".."><head><style>body { visibility: hidden; }</style><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="IE=edge"><title>default | @switchbot/homebridge-switchbot</title><meta name="description" content="Documentation for @switchbot/homebridge-switchbot"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../assets/style.css"><link rel="stylesheet" href="../assets/highlight.css"><script defer="" src="../assets/main.js"></script><script async="" src="../assets/icons.js" id="tsd-icons-script"></script><link rel="stylesheet" href="../assets/dmt/dmt-components.css"><link rel="stylesheet" href="../assets/dmt/dmt-theme.css"><script src="../assets/dmt/dmt-components.js" type="module"></script><noscript><style>body { visibility: visible; }</style></noscript></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";</script><div class="overlay"></div>
|
|
2
|
-
<main><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field" id="dmt-search-main"></div><div class="field" id="dmt-toolbar"><a href="../index.html" class="title">@switchbot/homebridge-switchbot</a></div></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main" tabindex="-1"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"></ul><div class="dmt-title-header-flex"><h1>Function default</h1></div></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="default" class="tsd-anchor"></a><span class="tsd-kind-call-signature">default</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">api</span>: <span class="tsd-signature-type">API</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/homebridge-switchbot/blob/
|
|
2
|
+
<main><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field" id="dmt-search-main"></div><div class="field" id="dmt-toolbar"><a href="../index.html" class="title">@switchbot/homebridge-switchbot</a></div></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main" tabindex="-1"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"></ul><div class="dmt-title-header-flex"><h1>Function default</h1></div></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="default" class="tsd-anchor"></a><span class="tsd-kind-call-signature">default</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">api</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">API</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">api</span>: <span class="tsd-signature-type">API</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/OpenWonderLabs/homebridge-switchbot/blob/6368b8b294683f6d457f9cae25217f9cc04237d7/src/index.ts#L11">index.ts:11</a></li></ul></aside></li></ul></section></div><div class="col-sidebar" tabindex="-1"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked=""><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu" tabindex="-1"><nav class="tsd-navigation"><a href="../modules.html">@switchbot/homebridge-switchbot</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"></ul></nav></div></div></div></main></body></html>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@switchbot/homebridge-switchbot",
|
|
3
3
|
"displayName": "SwitchBot",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.3.1-beta.
|
|
5
|
+
"version": "4.3.1-beta.4",
|
|
6
6
|
"description": "The SwitchBot plugin allows you to access your SwitchBot device(s) from HomeKit.",
|
|
7
7
|
"author": "SwitchBot <support@wondertechlabs.com> (https://github.com/SwitchBot)",
|
|
8
8
|
"contributors": [
|