Skip to content

JakeTheRabbit/HAGR

Repository files navigation

HAGR: Home Assistant Grow Room

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.

Irrigation Control v2

Crop Steering Home Assistant automation:

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

AI Envornment Alerts for Home Assistant

https://github.com/JakeTheRabbit/HAGR/tree/main/addons/appdaemon/grow_monitor

🌱 Advanced Environmental Monitoring

  • 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.

🧠 AI-Powered Intelligence

  • 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).

🚨 Intelligent Alert System

  • 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:

Useful Links

Resources for automations:

Legacy Grow App - a work in progress open source seed to harvest, grow manager, because all the other ones are shit.

Tutorials:

General Info:

Links:

Features

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.

Screenshots

1_5_dashboard2 environment config crop steering config

Peri-pump automatic batch tank filling:

image

Automated batch tank

Home Assistant Addons

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

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

HACS Frontend Components

  • 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

About

Home Assistant automated hydroponic grow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published