From 6137f3dea40766ada77556910859f62c4e2310d3 Mon Sep 17 00:00:00 2001 From: Lorenz Uhlig <98092139+LoQue90@users.noreply.github.com> Date: Tue, 24 Sep 2024 02:02:33 +0200 Subject: [PATCH] add timeBrewed to MQTT --- src/brewHandler.h | 3 ++- src/main.cpp | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/brewHandler.h b/src/brewHandler.h index 630dcfae..3d31eaf8 100644 --- a/src/brewHandler.h +++ b/src/brewHandler.h @@ -11,7 +11,8 @@ // move brewPIDDisabled to kBrew? // add flush to display templates, SHOTTIMER 0 // check all Scale stuff -// add shot time log info output +// add shot time log info output +// check params website // ... #pragma once diff --git a/src/main.cpp b/src/main.cpp index 85ea21c1..b9671485 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1277,7 +1277,9 @@ void setup() { mqttSensors["currentKi"] = [] { return bPID.GetKi(); }; mqttSensors["currentKd"] = [] { return bPID.GetKd(); }; mqttSensors["machineState"] = [] { return machineState; }; - +#if FEATURE_BREWSWITCH == 1 + mqttSensors["timeBrewed"] = [] { return timeBrewed / 1000; }; +#endif #if FEATURE_PRESSURESENSOR == 1 mqttSensors["pressure"] = [] { return inputPressureFilter; }; #endif