Skip to content

Commit

Permalink
Expand device class metadata thanks to @sbf- in #13 linking to the `s…
Browse files Browse the repository at this point in the history
…bfspot` metadata! 🙏
  • Loading branch information
wimleers committed Mar 30, 2023
1 parent 99ae79b commit 209ce84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const PLUGIN_NAME = PACKAGE.name;

// Massage METADATA into useful data structures.
// @see https://files.sma.de/downloads/ClusterController_MODBUS-TI-en-18.pdf
// @see https://github.com/SBFspot/SBFspot/blob/master/SBFspot/TagListEN-US.txt
const METADATA = require('./metadata.json');
const arrayToMap = (array) => {
return JSON.parse(
Expand Down
7 changes: 6 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
"DEVICE_CLASSES": [
[8000, "all devices"],
[8001, "solar inverter"],
[8002, "wind inverter"],
[8002, "wind turbine inverter"],
[8007, "battery inverter"],
[8008, "charger station"],
[8009, "hybrid inverter"],
[8033, "load"],
[8064, "sensor technology general"],
[8065, "energy meter"],
[8066, "gas meter"],
[8067, "generic meter"],
[8096, "tracker"],
[8128, "communication products"]
]
}

0 comments on commit 209ce84

Please sign in to comment.