8000 Keba: Add plugged in interface state and translate different states by t-mon · Pull Request #473 · nymea/nymea-plugins · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Keba: Add plugged in interface state and translate different states #473

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

Merged
merged 2 commits into from
Sep 18, 2021
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions keba/integrationpluginkeba.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,12 @@ void IntegrationPluginKeba::setDevicePlugState(Thing *thing, KeContact::PlugStat
thing->setStateValue(wallboxPlugStateStateTypeId, "Plugged in on EV and locked");
break;
}

if (plugState >= 5) {
thing->setStateValue(wallboxPluggedInStateTypeId, true);
} else {
thing->setStateValue(wallboxPluggedInStateTypeId, false);
}
}

void IntegrationPluginKeba::searchNetworkDevices()
Expand Down
8 changes: 8 additions & 0 deletions keba/integrationpluginkeba.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@
"type": "QString",
"defaultValue": "-"
},
{
"id": "6c227717-f420-4dcd-bd52-49973715603b",
"name": "pluggedIn",
"displayName": "Car plugged in",
"displayNameEvent": "Car plugged in changed",
"type": "bool",
"defaultValue": false
},
{
"id": "a29c1748-fe97-4830-a56e-e1cc4e618385",
"name": "current",
Expand Down
Loading
0