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 CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "renault",
4
- "version": "0.0.10",
4
+ "version": "0.0.13",
5
5
  "news": {
6
+ "0.0.13": {
7
+ "en": "add remote object for force refresh"
8
+ },
6
9
  "0.0.10": {
7
10
  "en": "update apikey"
8
11
  },
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
- }, 10 * 1000);
546
+ }, 20 * 1000);
541
547
  }
542
548
  }
543
549
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.renault",
3
- "version": "0.0.10",
3
+ "version": "0.0.13",
4
4
  "description": "Adapter for Renault and Renault",
5
5
  "author": {
6
6
  "name": "TA2k",