ioBroker.zigbee icon indicating copy to clipboard operation
ioBroker.zigbee copied to clipboard

Wrong/outdated names in dev_names.json

Open theimo1221 opened this issue 2 years ago • 3 comments

Hello team,

Checking the backup file I noticed that most of the device names are missing: image

Now I fear that in case of a crash, the names will not be recovered.

Just pressing edit name and save without changes doesn't update the dev_names.json. Only changing combined with changing back does indeed update the file, with than a correct name.

Is there any way I can let ioBroker recreate the whole file with correct names? I can't do it manually as there are over 200 devices in the file.

Best regards

Thiemo

theimo1221 avatar Aug 22 '22 12:08 theimo1221

Temporary Workaround

Using this snippet one can recreate the text content in the browser console, by using the data within the cards in the zigbee devices overview:

var data = [];
$(".card").each((i, e) => {
  var jq = $(e);
  var name = jq.find('.card-title').eq(0).text()
  var id = jq.find('.labelinfo:contains("iee")').eq(0).next().text().split("0x")[1];
  data.push(`"${id}": "${name}"`);
})
console.log(data.join(",\n"))

theimo1221 avatar Aug 22 '22 15:08 theimo1221

@asgothian dev_names.json is yours product :-)

arteck avatar Aug 23 '22 10:08 arteck

yep, but it will have to wait to next weekend - i am off to vienna :)

I'll check for a sollution inside the adapter.

asgothian avatar Aug 23 '22 16:08 asgothian

check version 1.9.2 .. you can rebuild it with this button grafik

arteck avatar Dec 25 '23 08:12 arteck