iobroker.renault 0.0.10 → 0.0.13
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/io-package.json +4 -1
- package/main.js +7 -1
- package/package.json +1 -1
package/io-package.json
CHANGED
package/main.js
CHANGED
|
@@ -220,6 +220,7 @@ class Renault extends utils.Adapter {
|
|
|
220
220
|
{ command: "actions/charging-start", name: "True = Start, False = Stop" },
|
|
221
221
|
{ command: "charge/pause-resume", name: "True = Start, False = Stop" },
|
|
222
222
|
{ command: "charge/start", name: "True = Start, False = Stop" },
|
|
223
|
+
{ command: "refresh", name: "True = Refresh Data" },
|
|
223
224
|
];
|
|
224
225
|
remoteArray.forEach((remote) => {
|
|
225
226
|
this.setObjectNotExists(device.vin + ".remote." + remote.command, {
|
|
@@ -486,6 +487,11 @@ class Renault extends utils.Adapter {
|
|
|
486
487
|
if (path === "hvac-temperature") {
|
|
487
488
|
return;
|
|
488
489
|
}
|
|
490
|
+
if (path === "refresh") {
|
|
491
|
+
this.log.info("Force refresh");
|
|
492
|
+
this.updateDevices();
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
489
495
|
if (!this.account) {
|
|
490
496
|
this.log.error("No account found");
|
|
491
497
|
return;
|
|
@@ -537,7 +543,7 @@ class Renault extends utils.Adapter {
|
|
|
537
543
|
clearTimeout(this.refreshTimeout);
|
|
538
544
|
this.refreshTimeout = setTimeout(async () => {
|
|
539
545
|
await this.updateDevices();
|
|
540
|
-
},
|
|
546
|
+
}, 20 * 1000);
|
|
541
547
|
}
|
|
542
548
|
}
|
|
543
549
|
}
|