Skip to content

Commit

Permalink
Merge branch 'rancilio-pid:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
mar0ni authored Oct 19, 2023
2 parents 2f889c5 + 5f128b2 commit 94d7f56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MQTT.h
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ int sendHASSIODiscoveryMsg() {
// Sensor Devices
DiscoveryObject actual_temperature = GenerateSensorDevice("temperature", "Boiler Temperature");
DiscoveryObject heaterPower = GenerateSensorDevice("heaterPower", "Heater Power", "ms", "power_factor");
DiscoveryObject machineStateDevice = GenerateSensorDevice("machineState", "Machine State", "null", "enum");
// Switch Devices
DiscoveryObject pidOn = GenerateSwitchDevice("pidON", "Use PID");
DiscoveryObject steamON = GenerateSwitchDevice("steamON", "Steam");
Expand All @@ -469,6 +470,7 @@ int sendHASSIODiscoveryMsg() {
aggIMax,
actual_temperature,
heaterPower,
machineStateDevice,
brewtime,
pidOn,
steamON,
Expand Down
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1985,6 +1985,7 @@ void setup() {
mqttSensors["currentKp"] = []{ return bPID.GetKp(); };
mqttSensors["currentKi"] = []{ return bPID.GetKi(); };
mqttSensors["currentKd"] = []{ return bPID.GetKd(); };
mqttSensors["machineState"] = []{ return machineState; };

Serial.begin(115200);

Expand Down

0 comments on commit 94d7f56

Please sign in to comment.