iobroker.eusec 1.3.2 → 2.0.0-alpha.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/LICENSE +1 -0
- package/README.md +27 -556
- package/admin/jsonConfig.json +42 -21
- package/build/main.js +3 -1
- package/build/main.js.map +2 -2
- package/io-package.json +209 -194
- package/package.json +110 -99
package/admin/jsonConfig.json
CHANGED
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"xs": 12,
|
|
14
14
|
"sm": 12,
|
|
15
15
|
"md": 12,
|
|
16
|
-
"lg": 12
|
|
16
|
+
"lg": 12,
|
|
17
|
+
"xl": 12
|
|
17
18
|
},
|
|
18
19
|
"username": {
|
|
19
20
|
"newLine": true,
|
|
@@ -22,7 +23,8 @@
|
|
|
22
23
|
"xs": 12,
|
|
23
24
|
"sm": 12,
|
|
24
25
|
"md": 6,
|
|
25
|
-
"lg": 3
|
|
26
|
+
"lg": 3,
|
|
27
|
+
"xl": 3
|
|
26
28
|
},
|
|
27
29
|
"password": {
|
|
28
30
|
"type": "password",
|
|
@@ -32,7 +34,8 @@
|
|
|
32
34
|
"xs": 12,
|
|
33
35
|
"sm": 12,
|
|
34
36
|
"md": 8,
|
|
35
|
-
"lg": 6
|
|
37
|
+
"lg": 6,
|
|
38
|
+
"xl": 6
|
|
36
39
|
},
|
|
37
40
|
"country": {
|
|
38
41
|
"newLine": true,
|
|
@@ -1047,7 +1050,8 @@
|
|
|
1047
1050
|
"xs": 12,
|
|
1048
1051
|
"sm": 12,
|
|
1049
1052
|
"md": 4,
|
|
1050
|
-
"lg": 3
|
|
1053
|
+
"lg": 3,
|
|
1054
|
+
"xl": 3
|
|
1051
1055
|
},
|
|
1052
1056
|
"otherHeader": {
|
|
1053
1057
|
"newLine": true,
|
|
@@ -1057,7 +1061,8 @@
|
|
|
1057
1061
|
"xs": 12,
|
|
1058
1062
|
"sm": 12,
|
|
1059
1063
|
"md": 12,
|
|
1060
|
-
"lg": 12
|
|
1064
|
+
"lg": 12,
|
|
1065
|
+
"xl": 12
|
|
1061
1066
|
},
|
|
1062
1067
|
"pollingInterval": {
|
|
1063
1068
|
"newLine": true,
|
|
@@ -1067,7 +1072,8 @@
|
|
|
1067
1072
|
"xs": 12,
|
|
1068
1073
|
"sm": 12,
|
|
1069
1074
|
"md": 4,
|
|
1070
|
-
"lg": 3
|
|
1075
|
+
"lg": 3,
|
|
1076
|
+
"xl": 3
|
|
1071
1077
|
},
|
|
1072
1078
|
"eventDuration": {
|
|
1073
1079
|
"type": "number",
|
|
@@ -1077,7 +1083,8 @@
|
|
|
1077
1083
|
"xs": 12,
|
|
1078
1084
|
"sm": 12,
|
|
1079
1085
|
"md": 4,
|
|
1080
|
-
"lg": 3
|
|
1086
|
+
"lg": 3,
|
|
1087
|
+
"xl": 3
|
|
1081
1088
|
},
|
|
1082
1089
|
"alarmSoundDuration": {
|
|
1083
1090
|
"type": "number",
|
|
@@ -1086,7 +1093,8 @@
|
|
|
1086
1093
|
"xs": 12,
|
|
1087
1094
|
"sm": 12,
|
|
1088
1095
|
"md": 4,
|
|
1089
|
-
"lg": 3
|
|
1096
|
+
"lg": 3,
|
|
1097
|
+
"xl": 3
|
|
1090
1098
|
},
|
|
1091
1099
|
"p2pConnectionType": {
|
|
1092
1100
|
"newLine": true,
|
|
@@ -1105,7 +1113,8 @@
|
|
|
1105
1113
|
"xs": 12,
|
|
1106
1114
|
"sm": 12,
|
|
1107
1115
|
"md": 4,
|
|
1108
|
-
"lg": 3
|
|
1116
|
+
"lg": 3,
|
|
1117
|
+
"xl": 3
|
|
1109
1118
|
},
|
|
1110
1119
|
"acceptInvitations": {
|
|
1111
1120
|
"newLine": true,
|
|
@@ -1114,7 +1123,8 @@
|
|
|
1114
1123
|
"xs": 12,
|
|
1115
1124
|
"sm": 12,
|
|
1116
1125
|
"md": 6,
|
|
1117
|
-
"lg": 3
|
|
1126
|
+
"lg": 3,
|
|
1127
|
+
"xl": 3
|
|
1118
1128
|
}
|
|
1119
1129
|
}
|
|
1120
1130
|
},
|
|
@@ -1129,7 +1139,8 @@
|
|
|
1129
1139
|
"xs": 12,
|
|
1130
1140
|
"sm": 12,
|
|
1131
1141
|
"md": 12,
|
|
1132
|
-
"lg": 12
|
|
1142
|
+
"lg": 12,
|
|
1143
|
+
"xl": 12
|
|
1133
1144
|
},
|
|
1134
1145
|
"hostname": {
|
|
1135
1146
|
"newLine": false,
|
|
@@ -1138,7 +1149,8 @@
|
|
|
1138
1149
|
"xs": 12,
|
|
1139
1150
|
"sm": 12,
|
|
1140
1151
|
"md": 6,
|
|
1141
|
-
"lg": 3
|
|
1152
|
+
"lg": 3,
|
|
1153
|
+
"xl": 3
|
|
1142
1154
|
},
|
|
1143
1155
|
"https": {
|
|
1144
1156
|
"type": "checkbox",
|
|
@@ -1146,7 +1158,8 @@
|
|
|
1146
1158
|
"xs": 12,
|
|
1147
1159
|
"sm": 12,
|
|
1148
1160
|
"md": 6,
|
|
1149
|
-
"lg": 3
|
|
1161
|
+
"lg": 3,
|
|
1162
|
+
"xl": 3
|
|
1150
1163
|
},
|
|
1151
1164
|
"maxLivestreamDuration": {
|
|
1152
1165
|
"newLine": true,
|
|
@@ -1155,7 +1168,8 @@
|
|
|
1155
1168
|
"xs": 12,
|
|
1156
1169
|
"sm": 12,
|
|
1157
1170
|
"md": 4,
|
|
1158
|
-
"lg": 3
|
|
1171
|
+
"lg": 3,
|
|
1172
|
+
"xl": 3
|
|
1159
1173
|
},
|
|
1160
1174
|
"go2rtcHeader": {
|
|
1161
1175
|
"type": "header",
|
|
@@ -1164,7 +1178,8 @@
|
|
|
1164
1178
|
"xs": 12,
|
|
1165
1179
|
"sm": 12,
|
|
1166
1180
|
"md": 12,
|
|
1167
|
-
"lg": 12
|
|
1181
|
+
"lg": 12,
|
|
1182
|
+
"xl": 12
|
|
1168
1183
|
},
|
|
1169
1184
|
"go2rtc_api_port": {
|
|
1170
1185
|
"type": "number",
|
|
@@ -1172,7 +1187,8 @@
|
|
|
1172
1187
|
"xs": 12,
|
|
1173
1188
|
"sm": 12,
|
|
1174
1189
|
"md": 4,
|
|
1175
|
-
"lg": 3
|
|
1190
|
+
"lg": 3,
|
|
1191
|
+
"xl": 3
|
|
1176
1192
|
},
|
|
1177
1193
|
"go2rtc_srtp_port": {
|
|
1178
1194
|
"type": "number",
|
|
@@ -1180,7 +1196,8 @@
|
|
|
1180
1196
|
"xs": 12,
|
|
1181
1197
|
"sm": 12,
|
|
1182
1198
|
"md": 4,
|
|
1183
|
-
"lg": 3
|
|
1199
|
+
"lg": 3,
|
|
1200
|
+
"xl": 3
|
|
1184
1201
|
},
|
|
1185
1202
|
"go2rtc_webrtc_port": {
|
|
1186
1203
|
"type": "number",
|
|
@@ -1188,7 +1205,8 @@
|
|
|
1188
1205
|
"xs": 12,
|
|
1189
1206
|
"sm": 12,
|
|
1190
1207
|
"md": 4,
|
|
1191
|
-
"lg": 3
|
|
1208
|
+
"lg": 3,
|
|
1209
|
+
"xl": 3
|
|
1192
1210
|
},
|
|
1193
1211
|
"go2rtc_rtsp_port": {
|
|
1194
1212
|
"type": "number",
|
|
@@ -1196,7 +1214,8 @@
|
|
|
1196
1214
|
"xs": 12,
|
|
1197
1215
|
"sm": 12,
|
|
1198
1216
|
"md": 4,
|
|
1199
|
-
"lg": 3
|
|
1217
|
+
"lg": 3,
|
|
1218
|
+
"xl": 3
|
|
1200
1219
|
},
|
|
1201
1220
|
"go2rtc_rtsp_username": {
|
|
1202
1221
|
"newLine": true,
|
|
@@ -1205,7 +1224,8 @@
|
|
|
1205
1224
|
"xs": 12,
|
|
1206
1225
|
"sm": 12,
|
|
1207
1226
|
"md": 6,
|
|
1208
|
-
"lg": 3
|
|
1227
|
+
"lg": 3,
|
|
1228
|
+
"xl": 3
|
|
1209
1229
|
},
|
|
1210
1230
|
"go2rtc_rtsp_password": {
|
|
1211
1231
|
"type": "password",
|
|
@@ -1215,7 +1235,8 @@
|
|
|
1215
1235
|
"xs": 12,
|
|
1216
1236
|
"sm": 12,
|
|
1217
1237
|
"md": 8,
|
|
1218
|
-
"lg": 6
|
|
1238
|
+
"lg": 6,
|
|
1239
|
+
"xl": 6
|
|
1219
1240
|
}
|
|
1220
1241
|
}
|
|
1221
1242
|
}
|
package/build/main.js
CHANGED
|
@@ -1405,8 +1405,10 @@ class euSec extends utils.Adapter {
|
|
|
1405
1405
|
await this.setStateAsync("info.mqtt_connection", { val: false, ack: true });
|
|
1406
1406
|
}
|
|
1407
1407
|
async onStationCommandResult(station, result) {
|
|
1408
|
-
if (result.return_code !== 0 && result.command_type !== import_eufy_security_client.CommandType.P2P_QUERY_STATUS_IN_LOCK && result.command_type !== import_eufy_security_client.CommandType.CMD_STORAGE_INFO_HB3 || result.return_code !== 0 && result.return_code !== import_eufy_security_client.ErrorCode.ERROR_DEV_BUSY && result.command_type === import_eufy_security_client.CommandType.CMD_STORAGE_INFO_HB3) {
|
|
1408
|
+
if (result.return_code !== 0 && result.command_type !== import_eufy_security_client.CommandType.P2P_QUERY_STATUS_IN_LOCK && result.command_type !== import_eufy_security_client.CommandType.CMD_STORAGE_INFO_HB3 && result.command_type !== import_eufy_security_client.CommandType.CMD_SDINFO_EX || result.return_code !== 0 && result.return_code !== import_eufy_security_client.ErrorCode.ERROR_DEV_BUSY && result.command_type === import_eufy_security_client.CommandType.CMD_STORAGE_INFO_HB3) {
|
|
1409
1409
|
this.logger.error(`Station: ${station.getSerial()} command ${import_eufy_security_client.CommandType[result.command_type]} failed with error: ${import_eufy_security_client.ErrorCode[result.return_code]} (${result.return_code})`);
|
|
1410
|
+
} else if (result.return_code !== 0 && result.return_code !== import_eufy_security_client.TFCardStatus.REMOVE && result.return_code !== import_eufy_security_client.TFCardStatus.BUSY && result.command_type === import_eufy_security_client.CommandType.CMD_SDINFO_EX) {
|
|
1411
|
+
this.logger.error(`Station: ${station.getSerial()} command ${import_eufy_security_client.CommandType[result.command_type]} failed with error: ${import_eufy_security_client.TFCardStatus[result.return_code]} (${result.return_code})`);
|
|
1410
1412
|
}
|
|
1411
1413
|
}
|
|
1412
1414
|
async onStationPropertyChanged(station, name, value) {
|