Skip to content

Commit

Permalink
Fix up time sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
dzungpv authored Aug 28, 2024
1 parent c3d3457 commit 6e28e31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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);
}
}

0 comments on commit 6e28e31

Please sign in to comment.