diff --git a/main.js b/main.js index 3ccf1d2..7eb12c1 100644 --- a/main.js +++ b/main.js @@ -315,6 +315,9 @@ function checkObjects(options, regType, regName, regFullName, tasks, newObjects) obj: regs[i].room }); newObjects.push(id); + + adapter.setState(id, regs[i].type === 'boolean' ? false : regs[i].value); + } if (regs.length) {