From 2fb026074ad8a89fcc2fe5ba894dfcba5402ea77 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Tue, 24 Sep 2024 22:16:17 +0200 Subject: [PATCH] Feature: Publish YieldTotal, YieldDay and Power of all inverters to Home Assistant --- src/MqttHandleHass.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MqttHandleHass.cpp b/src/MqttHandleHass.cpp index 1b20a84e..bcc3404e 100644 --- a/src/MqttHandleHass.cpp +++ b/src/MqttHandleHass.cpp @@ -67,6 +67,10 @@ void MqttHandleHassClass::publishConfig() publishDtuSensor("Largest Free Heap Block", "dtu/heap/maxalloc", "Bytes", "mdi:memory", "", "diagnostic"); publishDtuSensor("Lifetime Minimum Free Heap", "dtu/heap/minfree", "Bytes", "mdi:memory", "", "diagnostic"); + publishDtuSensor("Yield Total", "ac/yieldtotal", "kWh", "", "energy", ""); + publishDtuSensor("Yield Day", "ac/yieldday", "Wh", "", "energy", ""); + publishDtuSensor("AC Power", "ac/power", "W", "", "power", ""); + publishDtuBinarySensor("Status", config.Mqtt.Lwt.Topic, config.Mqtt.Lwt.Value_Online, config.Mqtt.Lwt.Value_Offline, "connectivity", "diagnostic"); // Loop all inverters