Skip to content

Commit

Permalink
Merge PR #738: go-e: Update force state to actually force on
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins committed Jul 17, 2024
2 parents 75f9bd3 + 45bdeec commit 24d04e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goecharger/integrationplugingoecharger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ void IntegrationPluginGoECharger::executeAction(ThingActionInfo *info)
// The url query has to be JSON encoded, i.e. <url>/set?fna="mein charger"
QUrlQuery configuration;
// 0 neutral (prefere on), 1 off, 2 on force
configuration.addQueryItem("frc", (power ? "0": "1"));
configuration.addQueryItem("frc", (power ? "2": "1"));
QNetworkRequest request = buildConfigurationRequestV2(address, configuration);
QNetworkReply *reply = hardwareManager()->networkManager()->get(request);
connect(info, &ThingActionInfo::aborted, reply, &QNetworkReply::abort);
Expand Down

0 comments on commit 24d04e3

Please sign in to comment.