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