From 8dfdb07257b2db5cd9c55f7741f72b925d0f83b6 Mon Sep 17 00:00:00 2001 From: SoftWareCrash Date: Mon, 7 Oct 2024 09:25:06 +0200 Subject: [PATCH] correct qpiws descriptor for ha --- src/PI_Serial/QPIWS.h | 4 ++-- src/main.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PI_Serial/QPIWS.h b/src/PI_Serial/QPIWS.h index d3d9416..c136153 100644 --- a/src/PI_Serial/QPIWS.h +++ b/src/PI_Serial/QPIWS.h @@ -53,11 +53,11 @@ bool PI_Serial::PIXX_QPIWS() qpiwsStr += "; "; } } - liveData["Fault_or_Warning"] = qpiwsStr; + liveData["Fault_code"] = qpiwsStr; } else { - liveData["Fault_or_Warning"] = "None"; + liveData["Fault_code"] = "None"; } } return true; diff --git a/src/main.h b/src/main.h index 183f3ae..c3ebea4 100644 --- a/src/main.h +++ b/src/main.h @@ -154,7 +154,7 @@ static const char *const haLiveDescriptor[][4]{ //{"Device_Status","state-machine","",""}, //{"EEPROM_Version","chip","",""}, //{"Fan_speed","fan","",""}, - //{"Fault_code","alert-outline","",""}, + {"Fault_code","alert-outline","",""}, {"Grid_frequency", "import", "Hz", "frequency"}, {"Grid_voltage", "import", "V", "voltage"}, {"Inverter_Bus_Temperature", "thermometer-lines", "°C", "temperature"},