matterbridge-roborock-vacuum-plugin 1.1.1-rc11 → 1.1.1-rc12
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/platform.js
CHANGED
|
@@ -28,11 +28,12 @@ export class RoborockMatterbridgePlatform extends MatterbridgeDynamicPlatform {
|
|
|
28
28
|
regionUrls = {
|
|
29
29
|
US: 'https://usiot.roborock.com',
|
|
30
30
|
EU: 'https://euiot.roborock.com',
|
|
31
|
-
CN: 'https://
|
|
31
|
+
CN: 'https://cniot.roborock.com',
|
|
32
|
+
RU: 'https://ruiot.roborock.com',
|
|
32
33
|
};
|
|
33
34
|
constructor(matterbridge, log, config) {
|
|
34
35
|
super(matterbridge, log, config);
|
|
35
|
-
if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.
|
|
36
|
+
if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.4.6')) {
|
|
36
37
|
throw new Error(`This plugin requires Matterbridge version >= "3.3.6". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
|
|
37
38
|
}
|
|
38
39
|
this.log.info('Initializing platform:', this.config.name);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Matterbridge Roborock Vacuum Plugin",
|
|
3
|
-
"description": "matterbridge-roborock-vacuum-plugin v. 1.1.1-
|
|
3
|
+
"description": "matterbridge-roborock-vacuum-plugin v. 1.1.1-rc12 by https://github.com/RinDevJunior",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"required": ["username"],
|
|
6
6
|
"properties": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"region": {
|
|
33
33
|
"description": "Roborock account region",
|
|
34
34
|
"type": "string",
|
|
35
|
-
"enum": ["US", "EU", "CN"],
|
|
35
|
+
"enum": ["US", "EU", "CN", "RU"],
|
|
36
36
|
"default": "US"
|
|
37
37
|
},
|
|
38
38
|
"authentication": {
|
package/package.json
CHANGED
package/src/platform.ts
CHANGED
|
@@ -33,14 +33,15 @@ export class RoborockMatterbridgePlatform extends MatterbridgeDynamicPlatform {
|
|
|
33
33
|
private regionUrls: Record<string, string> = {
|
|
34
34
|
US: 'https://usiot.roborock.com',
|
|
35
35
|
EU: 'https://euiot.roborock.com',
|
|
36
|
-
CN: 'https://
|
|
36
|
+
CN: 'https://cniot.roborock.com',
|
|
37
|
+
RU: 'https://ruiot.roborock.com',
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
constructor(matterbridge: PlatformMatterbridge, log: AnsiLogger, config: PlatformConfig) {
|
|
40
41
|
super(matterbridge, log, config);
|
|
41
42
|
|
|
42
43
|
// Verify that Matterbridge is the correct version
|
|
43
|
-
if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.
|
|
44
|
+
if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.4.6')) {
|
|
44
45
|
throw new Error(
|
|
45
46
|
`This plugin requires Matterbridge version >= "3.3.6". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`,
|
|
46
47
|
);
|