fixed wrong percent calculation, emit trigger value to mqtt
This commit is contained in:
@@ -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()));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user