Will update a work-in progress config and high level logic in this post periodically:
Main features/logic:
Done:
- Deep sleep at night
- Sleep wake/on interval during day
- Go back to sleep when data has been sent
- “Stay awake” swtiches in HA so next time node wakes up it will stay awake (for updates.OTA).
- Multi-sample sensors that have variability/spikes
To do:
- Optimise pump speed to feed “drip watering” style system.
- Pump control based on moisture, water tank, and battery level.
- Consolidate and minimise code once all testing is done (optimise for energy)
Edit: Config moved down here: