diff --git a/esp32/src/main.cpp b/esp32/src/main.cpp index 8d2e810..a83af1b 100644 --- a/esp32/src/main.cpp +++ b/esp32/src/main.cpp @@ -809,6 +809,7 @@ void plantcontrol(bool withHomie) if (withHomie) { sensorWater.setProperty("remaining").send(String(waterLevelMax.get() - waterRawSensor.getAverage())); + sensorWater.setProperty("distance").send(String(waterRawSensor.getAverage())); sensorLipo.setProperty("percent").send(String(100 * batteryVoltage / VOLT_MAX_BATT)); sensorLipo.setProperty("volt").send(String(batteryVoltage)); sensorLipo.setProperty("current").send(String(battery.getCurrent()));