Skip to content

Commit

Permalink
Feature: Publish YieldTotal, YieldDay and Power of all inverters to H…
Browse files Browse the repository at this point in the history
…ome Assistant
  • Loading branch information
tbnobody committed Sep 24, 2024
1 parent 01e4377 commit 2fb0260
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MqttHandleHass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fb0260

Please sign in to comment.