Welcome to the Home Assistant Grow Room (HAGR) repository. This project focuses on automating grow rooms using Home Assistant. Note that some features may not work as expected and instructions are minimal. Familiarity with Home Assistant is recommended. This is a slow burner work in progress, lots of stuff hasn't been published yet purely due to lack of time. I'm currently setting up a licensed medical facility which which is taking 120% of my time.
Here is an exmaple of my fertigation control dashboard.

Advanced irrigation control system for Home Assistant that uses crop steering principles to optimize plant growth and health, with full GUI configuration through blueprints. https://github.com/JakeTheRabbit/HA-Irrigation-Strategy
https://github.com/JakeTheRabbit/HAGR/tree/main/addons/appdaemon/grow_monitor
- 7 Sensor Types: Temperature, Humidity, CO₂, VPD, Leaf VPD, VWC (Volumetric Water Content), pwEC (Pore Water Electrical Conductivity).
- Day/Night Awareness: Different thresholds for lights-on / lights-off periods.
- Trend Analysis: Calculates sensor trends (RAPID_RISE, STABLE, etc.) to inform alert severity.
- Centralized Entity Configuration: All Home Assistant entities easily defined in
grow_monitor.py
.
- OpenAI Integration: Provides concise AI-generated summaries of current environmental issues in notifications (describes what is wrong, not how to fix it).
- Periodic AI Trend Analysis: A framework for future enhancements to analyze overall trends (currently logs a placeholder).
- Smart Summary Notifications: Consolidates multiple active alerts into a single notification. Notifications use a consistent tag to replace previous ones.
- Configurable Severity Levels: IGNORE, NORMAL, URGENT, CRITICAL, based on violation duration and trend.
- Intelligent Rate Limiting:
- Base 1-hour cooldown between summary notifications.
- Extends to a 6-hour quiet period after any sensor alert is acknowledged (muted) via a notification action.
- New critical alerts bypass cooldowns for immediate notification.
- Actionable Notifications:
- Buttons to mute specific alerting sensors for 1 hour or 6 hours.
- Button to activate a global "Pause ALL Alerts"
input_boolean
.
- Per-Sensor Muting: Temporarily silence alerts for specific sensors if an issue is known or non-critical.
- Persistent State: Remembers user-muted sensors and notification cooldown states across AppDaemon restarts (via a
.pkl
data file).
For more information on using the Teros-12 / Teros-12 Compatible SDI-12 with ESP32, visit: Teros-12 / Teros-12 Compatible SDI-12 to ESP32.
My Grow SOPs:
- Cloning/Propagation: Cloning Guide
- Environment cheat sheet: Environmental Parameters
- Air flow for indoor grow environments: Air flow requirements
- Athena batch tank calculator (metric) hosted on github:
-
- ESPHome sensors from M5stack.com used for indoor gardenining with configuration files: Chill-Division/M5Stack-ESPHome
- Excellent Home Assistant and ESP Home crop steering / garden automation repo: https://github.com/jeemers/Homegrown-Assistant/blob/main/README.md
- THC-S: kromadg/soil-sensor
- Killerherts HA growing functions: Killerherts/nodeRed-HA-GrowingFunctions
- Awesome Crop Steering: https://github.com/Intergalactic-XYZ/awesome-cropsteering
- If you like raw SDI-12 sensors and mqtt, none of this Home Assistant fluff: https://github.com/cropsteering/OS-SDI12
- Teros-12 / Teros-12 Compatable SDI-12 to ESP32 (not working out of the box) https://github.com/JakeTheRabbit/HAGR/blob/main/teros-12/Readme.md
- Another (USE THIS ONE) (working SDI-12 substrate sensor) with automatic MQTT discovery and calibrated https://github.com/Chill-Division/sdi12-substrate-sensor
- Hydrobuddy Mix your own nutes
- Open Salts Ingredients of common nutes
Resources for automations:
- Grodan Grow guide: https://www.grodan101.com/siteassets/downloads/downloads-na-101/grow-guide-2023/grow-guide---cannabis-edition-2024.pdf
- Athena Grow Guide: https://issuu.com/athenaag/docs/athena_hb_me
- Growlink Crop Steering: https://www.growlink.ag/crop-steering
Legacy Grow App - a work in progress open source seed to harvest, grow manager, because all the other ones are shit.
Tutorials:
- How to splice wires for sensors the right way: https://www.youtube.com/watch?v=aTpYi5nYjO0
General Info:
- Airflow simulation in a cannabis grow room: https://youtu.be/TOYe9ZFVRy8?si=7zaU3VCEeO92pmpk&t=11
- Grow room HVAC guide (commcercial offering documentation but still useful): https://midwestmachinery.net/wp-content/uploads/2020/01/Ultimate-Grow-Room-HVAC-Guide.pdf
- HydroBuddy v1.100 : The First Free Open Source Hydroponic Nutrient Calculator Program Available Online: https://scienceinhydroponics.com/2016/03/the-first-free-hydroponic-nutrient-calculator-program-o.html
Links:
- Open THC https://github.com/openthc
- Farm OS: https://github.com/farmOS/farmOS
- Open Foam: https://www.openfoam.com/
- M5Stack.com where I buy most of my sensors.
The integrated features include but are not limited to:
- CO2 Control: Setpoints for day/night, high / low alerting, safety off (turns off the relay if left on for more than x minutes), hysteresis, auto-dim lights on low CO2 (if your CO2 levels drop below your set point for too long the lights dim to prevent damage).
- Teros-12 SDI-12 to ESP32: Integrate VWC (moisture) and substrate EC readings into Home Assistant. Connect your Teros 12 or make a cheap chinese version and connect to Home Assistant with an ESP32
- Thermal Camera: Live leaf temperature readings using ESP32 and MLX90641.
- VPD Calculations: Live leaf and environment calculations to maintain optimal humidity and temperature.
- Automatic VPD Control: Adjusts the relative humidity to maintain a static leaf VPD despite temperature and humidity fluctuations. Can control the dehumidifier/humidifier to achieve this.
- Nutrient Dosing: Automated dosing with peristaltic pumps using Athena Pro line nutrients.
- Lighting Control: LED lights and drivers controlled via PWM as dimmable entities in Home Assistant. Automatic light acclimation (i.e. increase ppfd by 5% every day until 1200umol).
- Tank Level Monitoring: Ultrasonic distance sensor for tank levels, alters for empty batch tank, status monitor % full.
- Notifications: Hourly sensor updates and alerts for high/low setpoints (e.g., Temperature, VWC, CO2). Urgent/Alarm alerts for critical stuff like low CO2, high temperature (breaks through DND).
- Fan Speed Control: Automatically adjusts fan speed to maintain a temperature.
- AC Control: Control your wall mounted AC unit with an IR blaster. PID control a room to +/- 0.2 celcius with a regular AC.
- Irrigation Strategy & Crop Steering:
- Multiple sensor triggers for redundancy
- Dosing calculations and adjustments
- Emergency shots and dryback percentage calculations
- Various transitions and fail-safes
- Lighting Automation: Automatic lights on/off.
- Temperature Control: Day/night setpoints.



Peri-pump automatic batch tank filling:

I use these Home Assistant Addons:
- ESPHome
- SSH & Web Terminal
- File Editor
- Samba
- Home Assistant Google Drive Backup
- InfluxDB
- Grafana
- Node-Red
- Mosquito Broker
Integrations:
- HACS
- AC Infinity
- Blue Iris NVR
- Bluetooth
- ESPHome
- Google Calendar
- HASS.Agent
- LocalTuya
- Node-Red Companion
- Passive BLE Monitor
- RuuviTag BLE
- TP-Link Kasa Smart
- Tuya
- Xiaomi BLE
- Zigbee2Mqtt
- Mushroom
- Multiple Entity Row
- Notify Card
- Slider Button Card
- Layout-card
- Card-mod
- VPD Chart Card (may cause lag)
- Slider-entity-row
- Mushroom - Better Sliders
- Plotly Graph Card
- card-tools
- mini-graph-card