@switchbot/homebridge-switchbot 3.5.0-beta.39 → 3.5.0-beta.40
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/dist/device/blindtilt.js +3 -3
- package/dist/device/blindtilt.js.map +1 -1
- package/dist/device/bot.js +3 -3
- package/dist/device/bot.js.map +1 -1
- package/dist/device/ceilinglight.js +3 -3
- package/dist/device/ceilinglight.js.map +1 -1
- package/dist/device/colorbulb.js +3 -3
- package/dist/device/colorbulb.js.map +1 -1
- package/dist/device/contact.js +3 -3
- package/dist/device/contact.js.map +1 -1
- package/dist/device/curtain.js +3 -3
- package/dist/device/curtain.js.map +1 -1
- package/dist/device/device.d.ts.map +1 -1
- package/dist/device/device.js +8 -5
- package/dist/device/device.js.map +1 -1
- package/dist/device/fan.js +6 -6
- package/dist/device/fan.js.map +1 -1
- package/dist/device/hub.js +3 -3
- package/dist/device/hub.js.map +1 -1
- package/dist/device/humidifier.js +3 -3
- package/dist/device/humidifier.js.map +1 -1
- package/dist/device/iosensor.js +3 -3
- package/dist/device/iosensor.js.map +1 -1
- package/dist/device/lightstrip.js +3 -3
- package/dist/device/lightstrip.js.map +1 -1
- package/dist/device/lock.js +3 -3
- package/dist/device/lock.js.map +1 -1
- package/dist/device/meter.js +3 -3
- package/dist/device/meter.js.map +1 -1
- package/dist/device/meterplus.js +3 -3
- package/dist/device/meterplus.js.map +1 -1
- package/dist/device/motion.js +3 -3
- package/dist/device/motion.js.map +1 -1
- package/dist/device/plug.js +3 -3
- package/dist/device/plug.js.map +1 -1
- package/dist/device/robotvacuumcleaner.js +3 -3
- package/dist/device/robotvacuumcleaner.js.map +1 -1
- package/dist/device/waterdetector.js +3 -3
- package/dist/device/waterdetector.js.map +1 -1
- package/dist/homebridge-ui/public/index.html +2 -2
- package/dist/irdevice/irdevice.js +6 -6
- package/dist/irdevice/irdevice.js.map +1 -1
- package/dist/platform.js +55 -55
- package/dist/platform.js.map +1 -1
- package/package.json +1 -1
- package/src/device/blindtilt.ts +3 -3
- package/src/device/bot.ts +3 -3
- package/src/device/ceilinglight.ts +3 -3
- package/src/device/colorbulb.ts +3 -3
- package/src/device/contact.ts +3 -3
- package/src/device/curtain.ts +3 -3
- package/src/device/device.ts +8 -5
- package/src/device/fan.ts +6 -6
- package/src/device/hub.ts +3 -3
- package/src/device/humidifier.ts +3 -3
- package/src/device/iosensor.ts +3 -3
- package/src/device/lightstrip.ts +3 -3
- package/src/device/lock.ts +3 -3
- package/src/device/meter.ts +3 -3
- package/src/device/meterplus.ts +3 -3
- package/src/device/motion.ts +3 -3
- package/src/device/plug.ts +3 -3
- package/src/device/robotvacuumcleaner.ts +3 -3
- package/src/device/waterdetector.ts +3 -3
- package/src/homebridge-ui/public/index.html +2 -2
- package/src/irdevice/irdevice.ts +6 -6
- package/src/platform.ts +55 -55
package/dist/platform.js
CHANGED
|
@@ -798,7 +798,7 @@ export class SwitchBotPlatform {
|
|
|
798
798
|
existingAccessory.context.deviceID = device.deviceId;
|
|
799
799
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
800
800
|
if (device.version && !device.firmware) {
|
|
801
|
-
existingAccessory.context.
|
|
801
|
+
existingAccessory.context.version = device.version;
|
|
802
802
|
}
|
|
803
803
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
804
804
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -826,7 +826,7 @@ export class SwitchBotPlatform {
|
|
|
826
826
|
accessory.context.model = device.deviceType;
|
|
827
827
|
accessory.context.deviceID = device.deviceId;
|
|
828
828
|
if (device.version && !device.firmware) {
|
|
829
|
-
accessory.context.
|
|
829
|
+
accessory.context.version = device.version;
|
|
830
830
|
}
|
|
831
831
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
832
832
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -855,7 +855,7 @@ export class SwitchBotPlatform {
|
|
|
855
855
|
existingAccessory.context.deviceID = device.deviceId;
|
|
856
856
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
857
857
|
if (device.version && !device.firmware) {
|
|
858
|
-
existingAccessory.context.
|
|
858
|
+
existingAccessory.context.version = device.version;
|
|
859
859
|
}
|
|
860
860
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
861
861
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -883,11 +883,11 @@ export class SwitchBotPlatform {
|
|
|
883
883
|
accessory.context.model = device.deviceType;
|
|
884
884
|
accessory.context.deviceID = device.deviceId;
|
|
885
885
|
if (device.version && !device.firmware) {
|
|
886
|
-
accessory.context.
|
|
886
|
+
accessory.context.version = device.version;
|
|
887
887
|
}
|
|
888
888
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
889
889
|
accessory.context.connectionType = await this.connectionType(device);
|
|
890
|
-
// accessory.context.
|
|
890
|
+
// accessory.context.version = findaccessories.accessoryAttribute.softwareRevision;
|
|
891
891
|
// create the accessory handler for the newly create accessory
|
|
892
892
|
// this is imported from `platformAccessory.ts`
|
|
893
893
|
new Bot(this, accessory, device);
|
|
@@ -913,7 +913,7 @@ export class SwitchBotPlatform {
|
|
|
913
913
|
existingAccessory.context.deviceID = device.deviceId;
|
|
914
914
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
915
915
|
if (device.version && !device.firmware) {
|
|
916
|
-
existingAccessory.context.
|
|
916
|
+
existingAccessory.context.version = device.version;
|
|
917
917
|
}
|
|
918
918
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
919
919
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -941,7 +941,7 @@ export class SwitchBotPlatform {
|
|
|
941
941
|
accessory.context.model = device.deviceType;
|
|
942
942
|
accessory.context.deviceID = device.deviceId;
|
|
943
943
|
if (device.version && !device.firmware) {
|
|
944
|
-
accessory.context.
|
|
944
|
+
accessory.context.version = device.version;
|
|
945
945
|
}
|
|
946
946
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
947
947
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -971,7 +971,7 @@ export class SwitchBotPlatform {
|
|
|
971
971
|
existingAccessory.context.deviceID = device.deviceId;
|
|
972
972
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
973
973
|
if (device.version && !device.firmware) {
|
|
974
|
-
existingAccessory.context.
|
|
974
|
+
existingAccessory.context.version = device.version;
|
|
975
975
|
}
|
|
976
976
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
977
977
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -999,7 +999,7 @@ export class SwitchBotPlatform {
|
|
|
999
999
|
accessory.context.model = device.deviceType;
|
|
1000
1000
|
accessory.context.deviceID = device.deviceId;
|
|
1001
1001
|
if (device.version && !device.firmware) {
|
|
1002
|
-
accessory.context.
|
|
1002
|
+
accessory.context.version = device.version;
|
|
1003
1003
|
}
|
|
1004
1004
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1005
1005
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -1029,7 +1029,7 @@ export class SwitchBotPlatform {
|
|
|
1029
1029
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1030
1030
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1031
1031
|
if (device.version && !device.firmware) {
|
|
1032
|
-
existingAccessory.context.
|
|
1032
|
+
existingAccessory.context.version = device.version;
|
|
1033
1033
|
}
|
|
1034
1034
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1035
1035
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1057,7 +1057,7 @@ export class SwitchBotPlatform {
|
|
|
1057
1057
|
accessory.context.model = device.deviceType;
|
|
1058
1058
|
accessory.context.deviceID = device.deviceId;
|
|
1059
1059
|
if (device.version && !device.firmware) {
|
|
1060
|
-
accessory.context.
|
|
1060
|
+
accessory.context.version = device.version;
|
|
1061
1061
|
}
|
|
1062
1062
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1063
1063
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -1086,7 +1086,7 @@ export class SwitchBotPlatform {
|
|
|
1086
1086
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1087
1087
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1088
1088
|
if (device.version && !device.firmware) {
|
|
1089
|
-
existingAccessory.context.
|
|
1089
|
+
existingAccessory.context.version = device.version;
|
|
1090
1090
|
}
|
|
1091
1091
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1092
1092
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1114,7 +1114,7 @@ export class SwitchBotPlatform {
|
|
|
1114
1114
|
accessory.context.model = device.deviceType;
|
|
1115
1115
|
accessory.context.deviceID = device.deviceId;
|
|
1116
1116
|
if (device.version && !device.firmware) {
|
|
1117
|
-
accessory.context.
|
|
1117
|
+
accessory.context.version = device.version;
|
|
1118
1118
|
}
|
|
1119
1119
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1120
1120
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -1143,7 +1143,7 @@ export class SwitchBotPlatform {
|
|
|
1143
1143
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1144
1144
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1145
1145
|
if (device.version && !device.firmware) {
|
|
1146
|
-
existingAccessory.context.
|
|
1146
|
+
existingAccessory.context.version = device.version;
|
|
1147
1147
|
}
|
|
1148
1148
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1149
1149
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1171,7 +1171,7 @@ export class SwitchBotPlatform {
|
|
|
1171
1171
|
accessory.context.model = device.deviceType;
|
|
1172
1172
|
accessory.context.deviceID = device.deviceId;
|
|
1173
1173
|
if (device.version && !device.firmware) {
|
|
1174
|
-
accessory.context.
|
|
1174
|
+
accessory.context.version = device.version;
|
|
1175
1175
|
}
|
|
1176
1176
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1177
1177
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -1200,7 +1200,7 @@ export class SwitchBotPlatform {
|
|
|
1200
1200
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1201
1201
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1202
1202
|
if (device.version && !device.firmware) {
|
|
1203
|
-
existingAccessory.context.
|
|
1203
|
+
existingAccessory.context.version = device.version;
|
|
1204
1204
|
}
|
|
1205
1205
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1206
1206
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1228,7 +1228,7 @@ export class SwitchBotPlatform {
|
|
|
1228
1228
|
accessory.context.model = device.deviceType;
|
|
1229
1229
|
accessory.context.deviceID = device.deviceId;
|
|
1230
1230
|
if (device.version && !device.firmware) {
|
|
1231
|
-
accessory.context.
|
|
1231
|
+
accessory.context.version = device.version;
|
|
1232
1232
|
}
|
|
1233
1233
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1234
1234
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -1257,7 +1257,7 @@ export class SwitchBotPlatform {
|
|
|
1257
1257
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1258
1258
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1259
1259
|
if (device.version && !device.firmware) {
|
|
1260
|
-
existingAccessory.context.
|
|
1260
|
+
existingAccessory.context.version = device.version;
|
|
1261
1261
|
}
|
|
1262
1262
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1263
1263
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1285,7 +1285,7 @@ export class SwitchBotPlatform {
|
|
|
1285
1285
|
accessory.context.model = device.deviceType;
|
|
1286
1286
|
accessory.context.deviceID = device.deviceId;
|
|
1287
1287
|
if (device.version && !device.firmware) {
|
|
1288
|
-
accessory.context.
|
|
1288
|
+
accessory.context.version = device.version;
|
|
1289
1289
|
}
|
|
1290
1290
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1291
1291
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -1314,7 +1314,7 @@ export class SwitchBotPlatform {
|
|
|
1314
1314
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1315
1315
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1316
1316
|
if (device.version && !device.firmware) {
|
|
1317
|
-
existingAccessory.context.
|
|
1317
|
+
existingAccessory.context.version = device.version;
|
|
1318
1318
|
}
|
|
1319
1319
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1320
1320
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1354,7 +1354,7 @@ export class SwitchBotPlatform {
|
|
|
1354
1354
|
accessory.context.model = device.deviceType;
|
|
1355
1355
|
accessory.context.deviceID = device.deviceId;
|
|
1356
1356
|
if (device.version && !device.firmware) {
|
|
1357
|
-
accessory.context.
|
|
1357
|
+
accessory.context.version = device.version;
|
|
1358
1358
|
}
|
|
1359
1359
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1360
1360
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -1383,7 +1383,7 @@ export class SwitchBotPlatform {
|
|
|
1383
1383
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1384
1384
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1385
1385
|
if (device.version && !device.firmware) {
|
|
1386
|
-
existingAccessory.context.
|
|
1386
|
+
existingAccessory.context.version = device.version;
|
|
1387
1387
|
}
|
|
1388
1388
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1389
1389
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1423,7 +1423,7 @@ export class SwitchBotPlatform {
|
|
|
1423
1423
|
accessory.context.model = device.deviceType;
|
|
1424
1424
|
accessory.context.deviceID = device.deviceId;
|
|
1425
1425
|
if (device.version && !device.firmware) {
|
|
1426
|
-
accessory.context.
|
|
1426
|
+
accessory.context.version = device.version;
|
|
1427
1427
|
}
|
|
1428
1428
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1429
1429
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -1452,7 +1452,7 @@ export class SwitchBotPlatform {
|
|
|
1452
1452
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1453
1453
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1454
1454
|
if (device.version && !device.firmware) {
|
|
1455
|
-
existingAccessory.context.
|
|
1455
|
+
existingAccessory.context.version = device.version;
|
|
1456
1456
|
}
|
|
1457
1457
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1458
1458
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1480,7 +1480,7 @@ export class SwitchBotPlatform {
|
|
|
1480
1480
|
accessory.context.model = device.deviceType;
|
|
1481
1481
|
accessory.context.deviceID = device.deviceId;
|
|
1482
1482
|
if (device.version && !device.firmware) {
|
|
1483
|
-
accessory.context.
|
|
1483
|
+
accessory.context.version = device.version;
|
|
1484
1484
|
}
|
|
1485
1485
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1486
1486
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -1509,7 +1509,7 @@ export class SwitchBotPlatform {
|
|
|
1509
1509
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1510
1510
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1511
1511
|
if (device.version && !device.firmware) {
|
|
1512
|
-
existingAccessory.context.
|
|
1512
|
+
existingAccessory.context.version = device.version;
|
|
1513
1513
|
}
|
|
1514
1514
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1515
1515
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1537,7 +1537,7 @@ export class SwitchBotPlatform {
|
|
|
1537
1537
|
accessory.context.model = device.deviceType;
|
|
1538
1538
|
accessory.context.deviceID = device.deviceId;
|
|
1539
1539
|
if (device.version && !device.firmware) {
|
|
1540
|
-
accessory.context.
|
|
1540
|
+
accessory.context.version = device.version;
|
|
1541
1541
|
}
|
|
1542
1542
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1543
1543
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -1566,7 +1566,7 @@ export class SwitchBotPlatform {
|
|
|
1566
1566
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1567
1567
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1568
1568
|
if (device.version && !device.firmware) {
|
|
1569
|
-
existingAccessory.context.
|
|
1569
|
+
existingAccessory.context.version = device.version;
|
|
1570
1570
|
}
|
|
1571
1571
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1572
1572
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1594,7 +1594,7 @@ export class SwitchBotPlatform {
|
|
|
1594
1594
|
accessory.context.model = device.deviceType;
|
|
1595
1595
|
accessory.context.deviceID = device.deviceId;
|
|
1596
1596
|
if (device.version && !device.firmware) {
|
|
1597
|
-
accessory.context.
|
|
1597
|
+
accessory.context.version = device.version;
|
|
1598
1598
|
}
|
|
1599
1599
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1600
1600
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -1623,7 +1623,7 @@ export class SwitchBotPlatform {
|
|
|
1623
1623
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1624
1624
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1625
1625
|
if (device.version && !device.firmware) {
|
|
1626
|
-
existingAccessory.context.
|
|
1626
|
+
existingAccessory.context.version = device.version;
|
|
1627
1627
|
}
|
|
1628
1628
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1629
1629
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1651,7 +1651,7 @@ export class SwitchBotPlatform {
|
|
|
1651
1651
|
accessory.context.model = device.deviceType;
|
|
1652
1652
|
accessory.context.deviceID = device.deviceId;
|
|
1653
1653
|
if (device.version && !device.firmware) {
|
|
1654
|
-
accessory.context.
|
|
1654
|
+
accessory.context.version = device.version;
|
|
1655
1655
|
}
|
|
1656
1656
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1657
1657
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -1680,7 +1680,7 @@ export class SwitchBotPlatform {
|
|
|
1680
1680
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1681
1681
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1682
1682
|
if (device.version && !device.firmware) {
|
|
1683
|
-
existingAccessory.context.
|
|
1683
|
+
existingAccessory.context.version = device.version;
|
|
1684
1684
|
}
|
|
1685
1685
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1686
1686
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1708,7 +1708,7 @@ export class SwitchBotPlatform {
|
|
|
1708
1708
|
accessory.context.model = device.deviceType;
|
|
1709
1709
|
accessory.context.deviceID = device.deviceId;
|
|
1710
1710
|
if (device.version && !device.firmware) {
|
|
1711
|
-
accessory.context.
|
|
1711
|
+
accessory.context.version = device.version;
|
|
1712
1712
|
}
|
|
1713
1713
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1714
1714
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -1737,7 +1737,7 @@ export class SwitchBotPlatform {
|
|
|
1737
1737
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1738
1738
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1739
1739
|
if (device.version && !device.firmware) {
|
|
1740
|
-
existingAccessory.context.
|
|
1740
|
+
existingAccessory.context.version = device.version;
|
|
1741
1741
|
}
|
|
1742
1742
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1743
1743
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1765,7 +1765,7 @@ export class SwitchBotPlatform {
|
|
|
1765
1765
|
accessory.context.model = device.deviceType;
|
|
1766
1766
|
accessory.context.deviceID = device.deviceId;
|
|
1767
1767
|
if (device.version && !device.firmware) {
|
|
1768
|
-
accessory.context.
|
|
1768
|
+
accessory.context.version = device.version;
|
|
1769
1769
|
}
|
|
1770
1770
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1771
1771
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -1794,7 +1794,7 @@ export class SwitchBotPlatform {
|
|
|
1794
1794
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1795
1795
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1796
1796
|
if (device.version && !device.firmware) {
|
|
1797
|
-
existingAccessory.context.
|
|
1797
|
+
existingAccessory.context.version = device.version;
|
|
1798
1798
|
}
|
|
1799
1799
|
existingAccessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1800
1800
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1822,7 +1822,7 @@ export class SwitchBotPlatform {
|
|
|
1822
1822
|
accessory.context.model = device.deviceType;
|
|
1823
1823
|
accessory.context.deviceID = device.deviceId;
|
|
1824
1824
|
if (device.version && !device.firmware) {
|
|
1825
|
-
accessory.context.
|
|
1825
|
+
accessory.context.version = device.version;
|
|
1826
1826
|
}
|
|
1827
1827
|
accessory.context.deviceType = `SwitchBot: ${device.deviceType}`;
|
|
1828
1828
|
accessory.context.connectionType = await this.connectionType(device);
|
|
@@ -1849,7 +1849,7 @@ export class SwitchBotPlatform {
|
|
|
1849
1849
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1850
1850
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1851
1851
|
if (device.version && !device.firmware) {
|
|
1852
|
-
existingAccessory.context.
|
|
1852
|
+
existingAccessory.context.version = device.version;
|
|
1853
1853
|
}
|
|
1854
1854
|
existingAccessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
1855
1855
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1873,7 +1873,7 @@ export class SwitchBotPlatform {
|
|
|
1873
1873
|
accessory.context.model = device.remoteType;
|
|
1874
1874
|
accessory.context.deviceID = device.deviceId;
|
|
1875
1875
|
if (device.version && !device.firmware) {
|
|
1876
|
-
accessory.context.
|
|
1876
|
+
accessory.context.version = device.version;
|
|
1877
1877
|
}
|
|
1878
1878
|
accessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
1879
1879
|
accessory.context.connectionType = device.connectionType;
|
|
@@ -1901,7 +1901,7 @@ export class SwitchBotPlatform {
|
|
|
1901
1901
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1902
1902
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1903
1903
|
if (device.version && !device.firmware) {
|
|
1904
|
-
existingAccessory.context.
|
|
1904
|
+
existingAccessory.context.version = device.version;
|
|
1905
1905
|
}
|
|
1906
1906
|
existingAccessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
1907
1907
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1929,7 +1929,7 @@ export class SwitchBotPlatform {
|
|
|
1929
1929
|
accessory.context.model = device.remoteType;
|
|
1930
1930
|
accessory.context.deviceID = device.deviceId;
|
|
1931
1931
|
if (device.version && !device.firmware) {
|
|
1932
|
-
accessory.context.
|
|
1932
|
+
accessory.context.version = device.version;
|
|
1933
1933
|
}
|
|
1934
1934
|
accessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
1935
1935
|
accessory.context.connectionType = device.connectionType;
|
|
@@ -1958,7 +1958,7 @@ export class SwitchBotPlatform {
|
|
|
1958
1958
|
existingAccessory.context.deviceID = device.deviceId;
|
|
1959
1959
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
1960
1960
|
if (device.version && !device.firmware) {
|
|
1961
|
-
existingAccessory.context.
|
|
1961
|
+
existingAccessory.context.version = device.version;
|
|
1962
1962
|
}
|
|
1963
1963
|
existingAccessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
1964
1964
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -1986,7 +1986,7 @@ export class SwitchBotPlatform {
|
|
|
1986
1986
|
accessory.context.model = device.remoteType;
|
|
1987
1987
|
accessory.context.deviceID = device.deviceId;
|
|
1988
1988
|
if (device.version && !device.firmware) {
|
|
1989
|
-
accessory.context.
|
|
1989
|
+
accessory.context.version = device.version;
|
|
1990
1990
|
}
|
|
1991
1991
|
accessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
1992
1992
|
accessory.context.connectionType = device.connectionType;
|
|
@@ -2015,7 +2015,7 @@ export class SwitchBotPlatform {
|
|
|
2015
2015
|
existingAccessory.context.deviceID = device.deviceId;
|
|
2016
2016
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
2017
2017
|
if (device.version && !device.firmware) {
|
|
2018
|
-
existingAccessory.context.
|
|
2018
|
+
existingAccessory.context.version = device.version;
|
|
2019
2019
|
}
|
|
2020
2020
|
existingAccessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
2021
2021
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -2043,7 +2043,7 @@ export class SwitchBotPlatform {
|
|
|
2043
2043
|
accessory.context.model = device.remoteType;
|
|
2044
2044
|
accessory.context.deviceID = device.deviceId;
|
|
2045
2045
|
if (device.version && !device.firmware) {
|
|
2046
|
-
accessory.context.
|
|
2046
|
+
accessory.context.version = device.version;
|
|
2047
2047
|
}
|
|
2048
2048
|
accessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
2049
2049
|
accessory.context.connectionType = device.connectionType;
|
|
@@ -2072,7 +2072,7 @@ export class SwitchBotPlatform {
|
|
|
2072
2072
|
existingAccessory.context.deviceID = device.deviceId;
|
|
2073
2073
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
2074
2074
|
if (device.version && !device.firmware) {
|
|
2075
|
-
existingAccessory.context.
|
|
2075
|
+
existingAccessory.context.version = device.version;
|
|
2076
2076
|
}
|
|
2077
2077
|
existingAccessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
2078
2078
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -2100,7 +2100,7 @@ export class SwitchBotPlatform {
|
|
|
2100
2100
|
accessory.context.model = device.remoteType;
|
|
2101
2101
|
accessory.context.deviceID = device.deviceId;
|
|
2102
2102
|
if (device.version && !device.firmware) {
|
|
2103
|
-
accessory.context.
|
|
2103
|
+
accessory.context.version = device.version;
|
|
2104
2104
|
}
|
|
2105
2105
|
accessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
2106
2106
|
accessory.context.connectionType = device.connectionType;
|
|
@@ -2129,7 +2129,7 @@ export class SwitchBotPlatform {
|
|
|
2129
2129
|
existingAccessory.context.deviceID = device.deviceId;
|
|
2130
2130
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
2131
2131
|
if (device.version && !device.firmware) {
|
|
2132
|
-
existingAccessory.context.
|
|
2132
|
+
existingAccessory.context.version = device.version;
|
|
2133
2133
|
}
|
|
2134
2134
|
existingAccessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
2135
2135
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -2157,7 +2157,7 @@ export class SwitchBotPlatform {
|
|
|
2157
2157
|
accessory.context.model = device.remoteType;
|
|
2158
2158
|
accessory.context.deviceID = device.deviceId;
|
|
2159
2159
|
if (device.version && !device.firmware) {
|
|
2160
|
-
accessory.context.
|
|
2160
|
+
accessory.context.version = device.version;
|
|
2161
2161
|
}
|
|
2162
2162
|
accessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
2163
2163
|
accessory.context.connectionType = device.connectionType;
|
|
@@ -2186,7 +2186,7 @@ export class SwitchBotPlatform {
|
|
|
2186
2186
|
existingAccessory.context.deviceID = device.deviceId;
|
|
2187
2187
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
2188
2188
|
if (device.version && !device.firmware) {
|
|
2189
|
-
existingAccessory.context.
|
|
2189
|
+
existingAccessory.context.version = device.version;
|
|
2190
2190
|
}
|
|
2191
2191
|
existingAccessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
2192
2192
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -2214,7 +2214,7 @@ export class SwitchBotPlatform {
|
|
|
2214
2214
|
accessory.context.model = device.remoteType;
|
|
2215
2215
|
accessory.context.deviceID = device.deviceId;
|
|
2216
2216
|
if (device.version && !device.firmware) {
|
|
2217
|
-
accessory.context.
|
|
2217
|
+
accessory.context.version = device.version;
|
|
2218
2218
|
}
|
|
2219
2219
|
accessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
2220
2220
|
accessory.context.connectionType = device.connectionType;
|
|
@@ -2243,7 +2243,7 @@ export class SwitchBotPlatform {
|
|
|
2243
2243
|
existingAccessory.context.deviceID = device.deviceId;
|
|
2244
2244
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
2245
2245
|
if (device.version && !device.firmware) {
|
|
2246
|
-
existingAccessory.context.
|
|
2246
|
+
existingAccessory.context.version = device.version;
|
|
2247
2247
|
}
|
|
2248
2248
|
existingAccessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
2249
2249
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -2271,7 +2271,7 @@ export class SwitchBotPlatform {
|
|
|
2271
2271
|
accessory.context.model = device.remoteType;
|
|
2272
2272
|
accessory.context.deviceID = device.deviceId;
|
|
2273
2273
|
if (device.version && !device.firmware) {
|
|
2274
|
-
accessory.context.
|
|
2274
|
+
accessory.context.version = device.version;
|
|
2275
2275
|
}
|
|
2276
2276
|
accessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
2277
2277
|
accessory.context.connectionType = device.connectionType;
|
|
@@ -2300,7 +2300,7 @@ export class SwitchBotPlatform {
|
|
|
2300
2300
|
existingAccessory.context.deviceID = device.deviceId;
|
|
2301
2301
|
existingAccessory.displayName = device.configDeviceName || device.deviceName;
|
|
2302
2302
|
if (device.version && !device.firmware) {
|
|
2303
|
-
existingAccessory.context.
|
|
2303
|
+
existingAccessory.context.version = device.version;
|
|
2304
2304
|
}
|
|
2305
2305
|
existingAccessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
2306
2306
|
this.infoLog(`Restoring existing accessory from cache: ${existingAccessory.displayName} DeviceID: ${device.deviceId}`);
|
|
@@ -2328,7 +2328,7 @@ export class SwitchBotPlatform {
|
|
|
2328
2328
|
accessory.context.model = device.remoteType;
|
|
2329
2329
|
accessory.context.deviceID = device.deviceId;
|
|
2330
2330
|
if (device.version && !device.firmware) {
|
|
2331
|
-
accessory.context.
|
|
2331
|
+
accessory.context.version = device.version;
|
|
2332
2332
|
}
|
|
2333
2333
|
accessory.context.deviceType = `IR: ${device.remoteType}`;
|
|
2334
2334
|
accessory.context.connectionType = device.connectionType;
|