Merge branch 'master' of github.com:0110/PlantCtrl

This commit is contained in:
Empire
2023-07-20 20:11:58 +02:00
5 changed files with 21 additions and 8 deletions

View File

@@ -230,8 +230,8 @@ void Plant::activatePump(void)
ledcWrite(this->mPlantId, desiredPowerLevelPercent * PWM_BITS);
if (this->mConnected)
{
const String OFF = String("ON");
this->mPlant->setProperty("switch").send(OFF);
const String ON = String("ON");
this->mPlant->setProperty("switch").send(ON);
this->mPlant->setProperty("lastPump").send(String(getCurrentTime()));
}
}

View File

@@ -704,7 +704,7 @@ void pumpActiveLoop()
}
bool mqttUpdateTick = false;
if (lastSendPumpUpdate + 1000 < millis())
if (lastSendPumpUpdate + 3000 < millis())
{
lastSendPumpUpdate = millis();
mqttUpdateTick = true;
@@ -808,7 +808,7 @@ void safeSetup()
}
/************************* Start Homie Framework ***************/
Homie_setFirmware("PlantControl", FIRMWARE_VERSION);
Homie_setFirmware(FIRMWARE_NAME, FIRMWARE_VERSION);
Homie.disableLedFeedback();
Homie_setBrand("PlantControl");
// Set default values