The extremely good plant sensor named LILYGO TTGO-T-HIGrow, is here integrated into Home Assistant, via MQTT messages, that can be Autodiscovered, via the belonging Python program. The program supports both DHT sensors, the new BME280 sensor and the external soil temperature sensor.
There was a small error in the DST routine, so summertime dit not get registered correctly.
It is now fixed.
Finally managed to get the days on battery correct calculated, by using Epoch time.
In preparation for the Greenhouse Auto Watering project I am right now working on, the variable "plantValveNo" have been added.
The plantValveNo will later tell the Greenhouse Auto Watering, which water valve is assigned to the plant.
As the BME280 library gave a lot of problems in the implementation, the BME280 library is now included in the lib folder.
The sensor BME280 is now implemented into the TTGO-T-HIGrow module.
Note, the changes in the user-variables.h ---> see the WIKI
The BME280 is autodiscovered.
If module both have DHT sensor and BME280 sensor, the BME280 sensor will overwrite the DHT sensor values.
It is now possible to add the external TTGO soil sensor to the board.
The bord can be used both with or without the sensor, you just set the assigned variable in user-variables.h to either false or true
From this release, the WIFI hostname, will automatically be assigned the designated Plant Name.
This makes it far easier to locate the IP of the TTGO-T-HIGrow module in the router.
You might have to refres the browser window in order to see the change.
Once again, I try to get this correct.
Merged change from @@reenari, and corrected counter days since last change
Charged date, and days since last charged, is added to SPIFFS, so that you can reset the module, without loosing data.
Data is however reset, if you connect an USB cable to the board, as this will be seen as a new start of recharging.