@switchbot/homebridge-switchbot 3.5.0-beta.3 → 3.5.0-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 +39 -4
- package/package.json +1 -1
package/config.schema.json
CHANGED
|
@@ -149,6 +149,12 @@
|
|
|
149
149
|
"WoIOSensor"
|
|
150
150
|
]
|
|
151
151
|
},
|
|
152
|
+
{
|
|
153
|
+
"title": "Water Detector",
|
|
154
|
+
"enum": [
|
|
155
|
+
"Water Detector"
|
|
156
|
+
]
|
|
157
|
+
},
|
|
152
158
|
{
|
|
153
159
|
"title": "Meter",
|
|
154
160
|
"enum": [
|
|
@@ -484,6 +490,32 @@
|
|
|
484
490
|
}
|
|
485
491
|
}
|
|
486
492
|
},
|
|
493
|
+
"waterdetector": {
|
|
494
|
+
"type": "object",
|
|
495
|
+
"properties": {
|
|
496
|
+
"hide_leak": {
|
|
497
|
+
"title": "Hide Water Detector's Leak Sensor",
|
|
498
|
+
"type": "boolean",
|
|
499
|
+
"condition": {
|
|
500
|
+
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Water Detector' && model.options.devices[arrayIndices].deviceId);"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"hide_temperature": {
|
|
504
|
+
"title": "Hide Water Detector's Temperature Sensor",
|
|
505
|
+
"type": "boolean",
|
|
506
|
+
"condition": {
|
|
507
|
+
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Water Detector' && model.options.devices[arrayIndices].deviceId);"
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
"hide_humidity": {
|
|
511
|
+
"title": "Hide Water Detector's Humidity Sensor",
|
|
512
|
+
"type": "boolean",
|
|
513
|
+
"condition": {
|
|
514
|
+
"functionBody": "return (model.options && model.options.devices && !model.options.devices[arrayIndices].hide_device && model.options.devices[arrayIndices].configDeviceType === 'Water Detector' && model.options.devices[arrayIndices].deviceId);"
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
},
|
|
487
519
|
"humidifier": {
|
|
488
520
|
"type": "object",
|
|
489
521
|
"properties": {
|
|
@@ -853,28 +885,28 @@
|
|
|
853
885
|
"type": "string",
|
|
854
886
|
"placeholder": "192.168.7.1",
|
|
855
887
|
"condition": {
|
|
856
|
-
"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 === '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)'));"
|
|
888
|
+
"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)'));"
|
|
857
889
|
}
|
|
858
890
|
},
|
|
859
891
|
"mqttOptions": {
|
|
860
892
|
"title": "MQTT Options",
|
|
861
893
|
"type": "string",
|
|
862
894
|
"condition": {
|
|
863
|
-
"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 === '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)'));"
|
|
895
|
+
"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)'));"
|
|
864
896
|
}
|
|
865
897
|
},
|
|
866
898
|
"mqttPubOptions": {
|
|
867
899
|
"title": "MQTT Pub Options",
|
|
868
900
|
"type": "string",
|
|
869
901
|
"condition": {
|
|
870
|
-
"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 === '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)'));"
|
|
902
|
+
"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)'));"
|
|
871
903
|
}
|
|
872
904
|
},
|
|
873
905
|
"history": {
|
|
874
906
|
"title": "EVE History",
|
|
875
907
|
"type": "boolean",
|
|
876
908
|
"condition": {
|
|
877
|
-
"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 === '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)'));"
|
|
909
|
+
"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)'));"
|
|
878
910
|
}
|
|
879
911
|
},
|
|
880
912
|
"firmware": {
|
|
@@ -1618,6 +1650,9 @@
|
|
|
1618
1650
|
"options.devices[].bot.pushRatePress",
|
|
1619
1651
|
"options.devices[].meter.hide_temperature",
|
|
1620
1652
|
"options.devices[].meter.hide_humidity",
|
|
1653
|
+
"options.devices[].waterdetector.hide_leak",
|
|
1654
|
+
"options.devices[].waterdetector.hide_temperature",
|
|
1655
|
+
"options.devices[].waterdetector.hide_humidity",
|
|
1621
1656
|
"options.devices[].humidifier.set_minStep",
|
|
1622
1657
|
"options.devices[].humidifier.hide_temperature",
|
|
1623
1658
|
"options.devices[].curtain.set_minStep",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "SwitchBot",
|
|
3
3
|
"name": "@switchbot/homebridge-switchbot",
|
|
4
|
-
"version": "3.5.0-beta.
|
|
4
|
+
"version": "3.5.0-beta.4",
|
|
5
5
|
"description": "The SwitchBot plugin allows you to access your SwitchBot device(s) from HomeKit.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "SwitchBot",
|