From 2d344b7848c6d97ccc8a09bb6c593deacae1a46a Mon Sep 17 00:00:00 2001 From: TA2k Date: Sat, 16 Mar 2024 22:21:07 +0100 Subject: [PATCH] add null status --- main.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 4fdeac4..78ed688 100644 --- a/main.js +++ b/main.js @@ -2752,7 +2752,12 @@ class VwWeconnect extends utils.Adapter { ); } // this.extractKeys(this, vin + ".status", data); - this.json2iob.parse(vin + ".status", data, { forceIndex: true, makeStateWritableWithEnding: ["settings"] }); + await this.json2iob.parse(vin + ".status", data, { + forceIndex: true, + makeStateWritableWithEnding: ["settings"], + }); + this.setOtherStatesInChannelNull(vin + ".status.accessStatus", Date.now()); + if (this.config.rawJson) { await this.setObjectNotExistsAsync(vin + ".status" + "rawJson", { type: "state",