From 3391dfb2c98f92f07fcd27530fc5d1c8b40c818b Mon Sep 17 00:00:00 2001 From: Empire Date: Sun, 6 Jun 2021 22:50:56 +0200 Subject: [PATCH] report raw distance for water sensor --- esp32/src/main.cpp | 1 + 1 file changed, 1 insertion(+) 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()));