Skip to content

Conversation

@Brett-S-OWB
Copy link
Contributor

Das MQTT-Routing in handleMessage hat die neuen Topics erst nicht erfasst. Der Zweig prüfte nur openWB/optional/et/, die tatsächlichen Topics kamen aber als openWB/optional/ep/. Dadurch wurde processETProviderMessages nicht aufgerufen und .et-configured und das Tariff-Button blieb hidden.

@LKuemmel LKuemmel merged commit e3119e0 into openWB:master Nov 28, 2025
1 check passed
Comment on lines 1176 to 1183
$('.et-configured').removeClass('hide');
} else {
$('.et-configured').addClass('hide');
}
} else if (mqttTopic == 'openWB/optional/ep/get/prices') {
electricityPriceList = JSON.parse(mqttPayload);
var currentPrice = electricityPriceList[Object.keys(electricityPriceList)[0]] * 100000;
$('.et-current-price').text(currentPrice.toLocaleString(undefined, { maximumFractionDigits: 2, minimumFractionDigits: 2 }) + ' ct/kWh');
Copy link
Contributor

Choose a reason for hiding this comment

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

sollte man das nicht auch hier anpassen?

			$('.ep-configured').removeClass('hide');
		} else {
			$('.ep-configured').addClass('hide');
		}
	} else if (mqttTopic == 'openWB/optional/ep/get/prices') {
		electricityPriceList = JSON.parse(mqttPayload);
		var currentPrice = electricityPriceList[Object.keys(electricityPriceList)[0]] * 100000;
Comment view
		$('.ep-current-price').text(currentPrice.toLocaleString(undefined, { maximumFractionDigits: 2, minimumFractionDigits: 2 }) + ' ct/kWh');

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Danke für den Hinweis
Ich stimme zu – die Anpassung der CSS-Klassen ist sinnvoll.
Ich habe das in einem separaten PR umgesetzt,
Rename energy price CSS classes #2992

@Brett-S-OWB Brett-S-OWB deleted the fix-tarif-topic branch December 2, 2025 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants