Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ function handleMessage(mqttTopic, mqttPayload) {
else if (mqttTopic.match(/^openWB\/pv\//i)) { processPvMessages(mqttTopic, mqttPayload); }
else if (mqttTopic.match(/^openWB\/chargepoint\//i)) { processChargePointMessages(mqttTopic, mqttPayload); }
else if (mqttTopic.match(/^openWB\/vehicle\//i)) { processVehicleMessages(mqttTopic, mqttPayload); }
else if (mqttTopic.match(/^openWB\/general\/chargemode_config\/pv_charging\//i)) { processPvConfigMessages(mqttTopic, mqttPayload); }
else if (mqttTopic.match(/^openWB\/general\/chargemode_config\/bat\/mode$/i)) { processPvConfigMessages(mqttTopic, mqttPayload); }

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For Colors Theme @cshagen will take care of the implementation: #3466 (comment)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Da ging es eher um die neuen Features. Ich habe noch einen PR erstellt #3946

else if (mqttTopic.match(/^openWB\/graph\//i)) { processGraphMessages(mqttTopic, mqttPayload); }
else if (mqttTopic.match(/^openWB\/optional\/ep\//i)) { processETProviderMessages(mqttTopic, mqttPayload); }
else if (mqttTopic.match(/^openWB\/optional\//i)) { processOptionalMessages(mqttTopic, mqttPayload); }
Expand Down
4 changes: 2 additions & 2 deletions simpleAPI/src/ParameterHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ private function setBatMode($value)

/**
* Reservierte Batterie-Ladeleistung setzen (W)
* Setzt openWB/set/general/chargemode_config/pv_charging/bat_power_reserve
* Setzt openWB/set/general/chargemode_config/bat/power_reserve
* Ermöglicht externes Energiemanagement der Speicherreservierung ohne UI-Eingriff.
*/
private function setBatPowerReserve($value)
Expand All @@ -1616,7 +1616,7 @@ private function setBatPowerReserve($value)
}

try {
$topic = "openWB/set/general/chargemode_config/pv_charging/bat_power_reserve";
$topic = "openWB/set/general/chargemode_config/bat/power_reserve";

if ($this->mqttClient->setValue($topic, $watts)) {
return [
Expand Down