From 041ae7bae795cf39dab2321e673de123dddbd7be Mon Sep 17 00:00:00 2001 From: Florian <70096465+turrican944@users.noreply.github.com> Date: Fri, 22 Nov 2024 08:21:13 +0100 Subject: [PATCH] add Sum of DC Powrr add Sum of DC power of all enabled inverters to Homeassistant MQTT autodiscovery --- src/MqttHandleHass.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MqttHandleHass.cpp b/src/MqttHandleHass.cpp index 6491c9baf..c39485dd8 100644 --- a/src/MqttHandleHass.cpp +++ b/src/MqttHandleHass.cpp @@ -70,6 +70,7 @@ void MqttHandleHassClass::publishConfig() publishDtuSensor("Yield Total", "ac/yieldtotal", "kWh", "", DEVICE_CLS_ENERGY, STATE_CLS_TOTAL_INCREASING, CATEGORY_NONE); publishDtuSensor("Yield Day", "ac/yieldday", "Wh", "", DEVICE_CLS_ENERGY, STATE_CLS_TOTAL_INCREASING, CATEGORY_NONE); publishDtuSensor("AC Power", "ac/power", "W", "", DEVICE_CLS_PWR, STATE_CLS_MEASUREMENT, CATEGORY_NONE); + publishDtuSensor("DC Power", "dc/power", "W", "", DEVICE_CLS_PWR, STATE_CLS_MEASUREMENT, CATEGORY_NONE); publishDtuBinarySensor("Status", config.Mqtt.Lwt.Topic, config.Mqtt.Lwt.Value_Online, config.Mqtt.Lwt.Value_Offline, DEVICE_CLS_CONNECTIVITY, STATE_CLS_NONE, CATEGORY_DIAGNOSTIC);