ioBroker/ioBroker.history

file-naming converting issue when DP has a ":" in the naming

daloki83 opened this issue · 0 comments

Versions:

  • Adapter version: v2.2.0
  • JS-Controller version: 4.0.23
  • Node version: v18.8.0
  • Operating system: linux

While moving data from history to MySql the script ignores some ID's. After some investigation the namings of these .json files are not 1:1 like the DPs and therefore be skipped. In this case ":" was replaced by "~".

Datapoint:
bshb.0.hdm:ZigBee:385b44fffeabccbb.PowerMeter.powerConsumption
File in Data-Dir:
history.bshb.0.hdm~ZigBee~385b44fffeabccbb.PowerMeter.energyConsumption.json

Datapoints are created from the Adapter "ioBroker.bshb v0.1.20" for the Bosch devices.

Additional Info: Output from history2db.js:
Day 20220925 - history.bshb.0.hdm~ZigBee~385b44fffeabccbb.PowerMeter.energyConsumption.json Ignore ID history.bshb.0.hdm~ZigBee~385b44fffeabccbb.PowerMeter.energyConsumption.json: bshb.0.hdm~ZigBee~385b44fffeabccbb.PowerMeter.energyConsumption