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
2 changes: 1 addition & 1 deletion simpleAPI/simpleAPI_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ def _set_minimal_permanent_current(self, chargepoint_id: str, current: str):
def _set_max_price_eco(self, chargepoint_id: str, price: str):
"""Set maximum price for ECO charging."""
try:
price_value = float(price)
price_value = float(price) / 100000
charge_template = self._get_charge_template(chargepoint_id)

if charge_template is None:
Expand Down
1 change: 1 addition & 0 deletions simpleAPI/src/ParameterHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,7 @@ private function setMinimalPvSoc($chargepointId, $value)
private function setMaxPriceEco($chargepointId, $value)
{
try {
$value = $value / 100000;
$templateTopic = "openWB/chargepoint/{$chargepointId}/set/charge_template";
$templateJson = $this->mqttClient->getValue($templateTopic);
if (!$templateJson) {
Expand Down