feat: pH/EC Regulation v2 — Telegram, daily dose limits, water level safety lock - #29
Draft
m0nk1111 wants to merge 1 commit into
Draft
feat: pH/EC Regulation v2 — Telegram, daily dose limits, water level safety lock#29m0nk1111 wants to merge 1 commit into
m0nk1111 wants to merge 1 commit into
Conversation
…locks Improved version of the built-in regulate_ph_ec function with: - Telegram notifications for danger ranges and missing measurements - Daily dose limits (ml/day) with automatic midnight reset - Water level safety lock (blocks dosing when reservoir is dry) - Up to 4 EC nutrient pumps (A-D) instead of just raise/lower - In-band dose halving for gentle convergence to setpoint - InfluxDB dose logging (ml per event) for dashboard graphs - Sensor sanity checks (stale readings, flatline detection) - Persistent function_status_always() for dashboard widget - Per-pump calibration (ml/min) for accurate dose calculation - Countdown timer in status display - All-time and daily dose tracking with persistence
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enhanced pH/EC regulation function that replaces/supplements the built-in
regulate_ph_ec.py. Designed for hydroponic and aquaponic setups where reliability and safety are critical.What's New vs Built-in
regulate_ph_ecfunction_status_always()Key Design Decisions
regulate_ph_ec_v2), does not modify the existingregulate_ph_ec.pyTesting
Tested on a production Raspberry Pi 4B running Mycodo v8.16.2 with:
Target
This PR is on the fork for review. Intended for upstream submission to
kizniche/Mycodoonce validated.Checklist
lazy_gettextfor translatable option labels