Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
_wallboxPlugStateLocal hinzugefügt
  • Loading branch information
Andre-0815-4711 authored Jan 25, 2024
1 parent 69f860b commit 331c85a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ const _wallboxChargemodeLocal = {
3: 'Green'
};


const _wallboxPlugStateLocal = {
0: 'Not Connected',
1: 'Connected',
2: 'Charging'
};

let adapter;
const adapterName = require('./package.json').name.split('.').pop();
Expand Down Expand Up @@ -580,7 +584,12 @@ async function requestLocalAPI(root_dataPoints, information_dataPoints, data_dat
if (type == 7 && key == '1') {
data = data !== undefined ? _wallboxChargemodeLocal[data] : 'Undefined';
}


// State for chargemode Wallbox Type 7
if (type == 7 && key == '26') {
data = data !== undefined ? _wallboxPlugStateLocal[data] : 'Undefined';
}

await setDataPoint(dataPoint, data);
}

Expand Down

0 comments on commit 331c85a

Please sign in to comment.