From 4ab4db9f2f10e043b39043196ad15bd72f944ef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E8=BF=9B?= Date: Wed, 26 Sep 2018 14:34:35 +0800 Subject: [PATCH] Update main.js --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index dc079fb..e00c3ba 100644 --- a/main.js +++ b/main.js @@ -409,7 +409,7 @@ function parseConfig(callback) { let tasks = []; - checkObjects(adapter.config, 'door', 'door', 'Door', tasks, newObjects); + checkObjects(adapter.config, 'door', 'door', 'Door', tasks, newObjects); tasks.push({ @@ -471,13 +471,13 @@ function checkObjects(options, regType, regName, regFullName, tasks, newObjects) let regs = options[regType]; for (let i = 0; regs.length > i; i++) { - const id = adapter.namespace + '.' + regs[i].deviceId; + const id = adapter.namespace + '.' + regs[i].id; adapter.log.info("id=" + id); regs[i].fullId = id; objects[id] = { - _id: regs[i].deviceId, + _id: regs[i].id, type: 'state', common: { name: regs[i].description,