|
|
|
@ -272,12 +272,15 @@ function checkObjects(options, regType, regName, regFullName, tasks, newObjects)
|
|
|
|
|
adapter.log.warn('regs=' + JSON.stringify(regs));
|
|
|
|
|
|
|
|
|
|
for (let i = 0; regs.length > i; i++) {
|
|
|
|
|
const id = adapter.namespace + '.' + regType + '.' + regs[i]._address;
|
|
|
|
|
|
|
|
|
|
const id = adapter.namespace + '.' + regType + '.' + regs[i]._address + '.' + regs[i].name;
|
|
|
|
|
|
|
|
|
|
regs[i].id = id;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
adapter.log.warn('id=' + id);
|
|
|
|
|
|
|
|
|
|
regs[i].fullId = id;
|
|
|
|
|
|
|
|
|
|
objects[id] = {
|
|
|
|
|
_id: regs[i].id,
|
|
|
|
|
type: 'state',
|
|
|
|
|