From 6e28e31021fe8325de0edae0b1160c2b510da67a Mon Sep 17 00:00:00 2001 From: Pham Viet Dzung Date: Wed, 28 Aug 2024 17:17:59 +0700 Subject: [PATCH] Fix up time sensor --- main/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/main.cpp b/main/main.cpp index 149154f..31d80d8 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2243,7 +2243,7 @@ void hpStatusChanged(heatpumpStatus currentStatus) events.send(currentSettings.mode, "mode", millis(), 100); events.send(currentSettings.power, "power", millis(), 110); rootInfo["compressorFrequency"] = currentStatus.compressorFrequency; - rootInfo["upTime"] = getUpTime(); + rootInfo["up_time"] = getUpTime(); if (mqttClient != nullptr && mqttClient->connected()) { String mqttOutput; @@ -2846,7 +2846,7 @@ void sendHaConfig() // Freq sensor haConfigFreq("compressorFreq", "Hz", "mdi:sine-wave"); // Up time - haConfigSensor("upTime", "", "mdi:clock"); + haConfigSensor("Up Time", "", "mdi:clock"); // HVAC connection state haConfigSensor("Connection state", "", "mdi:check-network"); haConfigSensor("Free Heap", "%", "mdi:memory"); @@ -3638,4 +3638,4 @@ String getWifiBSSID() char wifi_bssid[18]; snprintf(wifi_bssid, 18, "%02X:%02X:%02X:%02X:%02X:%02X", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); return String(wifi_bssid); -} \ No newline at end of file +}