Update MqttHandleHass.cpp

This commit is contained in:
Christopher Fenner 2023-09-22 15:41:31 +02:00 committed by GitHub
parent 5b9aa508c0
commit 6a10704f9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,8 +62,8 @@ void MqttHandleHassClass::publishConfig()
publishInverterNumber(inv, "Limit Persistent Absolute", "mdi:speedometer", "config", "cmd/limit_persistent_absolute", "status/limit_absolute", "W", 10, 2250);
publishInverterBinarySensor(inv, "Status", "connectivity", "diagnostic", "status/reachable", "1", "0");
publishInverterBinarySensor(inv, "Reachable", "status/reachable", "1", "0");
publishInverterBinarySensor(inv, "Producing", "status/producing", "1", "0");
publishInverterBinarySensor(inv, "Reachable", "", "", "status/reachable", "1", "0");
publishInverterBinarySensor(inv, "Producing", "", "", "status/producing", "1", "0");
// Loop all channels
for (auto& t : inv->Statistics()->getChannelTypes()) {