Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main.js #198

Merged
merged 1 commit into from
Feb 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading