fix #397 MQTT reports zero values

fix #397 remove "not producing" if not yet available for MQTT and HTML
This commit is contained in:
lumapu 2022-11-06 20:16:09 +01:00
parent 64fb587cf3
commit 11da974772
2 changed files with 34 additions and 30 deletions

View file

@ -153,11 +153,13 @@
for(var i of obj) {
html += "Inverter #" + i["id"] + ": " + i["name"] + " (v" + i["version"] + ") is ";
if(false == i["is_avail"])
html += "not ";
html += "available and is ";
if(false == i["is_producing"])
html += "not ";
html += "producing\n";
html += "not yet available";
else {
html += "available and is ";
if(false == i["is_producing"])
html += "not ";
html += "producing\n";
}
if(false == i["is_avail"]) {
if(i["ts_last_success"] > 0) {