|
|
|
@ -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,
|
|
|
|
|