fixed wrong percent calculation, emit trigger value to mqtt

This commit is contained in:
Your Name
2021-08-17 16:55:52 +02:00
parent 2e052710e2
commit 61098724b6
2 changed files with 4 additions and 2 deletions

View File

@@ -120,6 +120,7 @@ void Plant::postMQTTconnection(void)
this->mPlant->setProperty("moist").send(String(round(pct*10)/10));
this->mPlant->setProperty("moistraw").send(String(raw));
this->mPlant->setProperty("moisttrigger").send(String(getSetting2Moisture()));
}