WIP more changes for 15min prices

This commit is contained in:
Gunnar Skjold
2025-06-05 15:28:15 +02:00
parent b9594568ee
commit b592532c1d
13 changed files with 323 additions and 185 deletions

View File

@@ -1545,7 +1545,7 @@ void MQTT_connect() {
if(mqttHandler != NULL) {
mqttHandler->connect();
mqttHandler->publishSystem(&hw, ps, &ea);
if(ps != NULL && ps->getValueForHour(PRICE_DIRECTION_IMPORT, 0) != PRICE_NO_VALUE) {
if(ps != NULL && ps->hasPrice()) {
mqttHandler->publishPrices(ps);
}
}