From f86b5950c6d6aad00d51eb15dfc84437429f92e0 Mon Sep 17 00:00:00 2001 From: TA2k Date: Sat, 13 Jan 2024 18:11:00 +0100 Subject: [PATCH] add lock to id --- main.js | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 4c8fccf..6351516 100644 --- a/main.js +++ b/main.js @@ -2034,6 +2034,27 @@ class VwWeconnect extends utils.Adapter { }, native: {}, }); + this.setObjectNotExists(vin + ".remote.lock", { + type: "state", + common: { + name: "Lock ", + type: "boolean", + role: "switch", + write: true, + }, + native: {}, + }); + + this.setObjectNotExists(vin + ".remote.lockv2", { + type: "state", + common: { + name: "Lock v2", + type: "boolean", + role: "switch", + write: true, + }, + native: {}, + }); } resolve(); return; @@ -2287,7 +2308,7 @@ class VwWeconnect extends utils.Adapter { this.setObjectNotExists(vin + ".remote.lock", { type: "state", common: { - name: "Lock test", + name: "Lock ", type: "boolean", role: "switch", write: true, @@ -2298,7 +2319,7 @@ class VwWeconnect extends utils.Adapter { this.setObjectNotExists(vin + ".remote.lockv2", { type: "state", common: { - name: "Lock test", + name: "Lock v2", type: "boolean", role: "switch", write: true,