From 490673e04ffee2fc8fb6ab9d80f94e283677c6d6 Mon Sep 17 00:00:00 2001 From: BrettS Date: Mon, 1 Dec 2025 11:45:31 +0100 Subject: [PATCH] Rename energy price CSS classes --- .../modules/web_themes/standard_legacy/web/index.html | 10 +++++----- .../standard_legacy/web/processAllMqttMsg.js | 7 ++++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/modules/web_themes/standard_legacy/web/index.html b/packages/modules/web_themes/standard_legacy/web/index.html index 4d31ef1b29..e96ef1b852 100644 --- a/packages/modules/web_themes/standard_legacy/web/index.html +++ b/packages/modules/web_themes/standard_legacy/web/index.html @@ -211,7 +211,7 @@
-
+

@@ -250,7 +250,7 @@
aktuell
-
+
-- ct/kWh
@@ -412,7 +412,7 @@
-- - + @@ -1013,7 +1013,7 @@

Einstellungen für "Ziel"

Einstellungen für "Eco"

-
+
diff --git a/packages/modules/web_themes/standard_legacy/web/processAllMqttMsg.js b/packages/modules/web_themes/standard_legacy/web/processAllMqttMsg.js index 6477393953..d356efa16e 100644 --- a/packages/modules/web_themes/standard_legacy/web/processAllMqttMsg.js +++ b/packages/modules/web_themes/standard_legacy/web/processAllMqttMsg.js @@ -1173,14 +1173,15 @@ function processETProviderMessages(mqttTopic, mqttPayload) { if (mqttTopic == 'openWB/optional/ep/configured') { const configured = JSON.parse(mqttPayload); if (configured) { - $('.et-configured').removeClass('hide'); + $('.ep-configured').removeClass('hide'); } else { - $('.et-configured').addClass('hide'); + $('.ep-configured').addClass('hide'); } } else if (mqttTopic == 'openWB/optional/ep/get/prices') { electricityPriceList = JSON.parse(mqttPayload); + $('.charge-point-eco-charge-max_price-button').prop('disabled', false); var currentPrice = electricityPriceList[Object.keys(electricityPriceList)[0]] * 100000; - $('.et-current-price').text(currentPrice.toLocaleString(undefined, { maximumFractionDigits: 2, minimumFractionDigits: 2 }) + ' ct/kWh'); + $('.ep-current-price').text(currentPrice.toLocaleString(undefined, { maximumFractionDigits: 2, minimumFractionDigits: 2 }) + ' ct/kWh'); } }