Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Automate all the things

Owner

jas caf

Status

Status
colourBlue
titledraft

Last date updated

On this page

Table of Contents
minLevel2
maxLevel2

Panel
panelIconIdatlassian-note
panelIcon:note:
bgColor#FFF0B3

Goals

  • Leverage COTs devices to enable a fully automated hydro / aero garden to simplify indoor gardening

  • Support a drop in solution for getting started into aeroponics or hydroponics

📐 Architecture


Intentional Arch

Drawio
zoom1
simple0
inComment0
pageId9568274
custContentId9535586
lbox1
diagramDisplayNameint-arch-aero-auto
contentVer1
revision1
baseUrlhttps://aerogrow.atlassian.net/wiki
diagramNameint-arch-aero-auto
pCenter0
width571
links
tbstyle
height761

Current Arch:

Drawio
zoom1
simple0
inComment0
pageId9568274
custContentId9568349
lbox1
diagramDisplayNameUntitled Diagram.drawio
contentVer1
revision1
baseUrlhttps://aerogrow.atlassian.net/wiki
diagramNameUntitled Diagram.drawio
pCenter0
width551
links
tbstyle
height681

Architecture flow

🚀 Github code

https://github.com/j-devops/aero-autogarden/blob/main/config/configuration.yaml

⌨ Code bits

VPD:

Code Block
template:
  - sensor:
      - name: "VPD (Vapor Pressure Deficit)"
        unique_id: 'Sensor.VPD.test'
        unit_of_measurement: "kPa"
        state_class: measurement
        state: >-
          {% set T = ((states('sensor.qingping_air_monitor_lite_temperature') | float) - 32) * 5/9 %}
          {% set RH = states('sensor.qingping_air_monitor_lite_humidity')|float %}
          {% set SVP = 0.61078 * e ** (17.2694 * T / (T + 238.3)) %}
          {% set VPD = ((100-RH) / 100) * SVP %}
          {{-VPD | round(2) -}}

Auto-pump disable based on wattage:

Code Block
- id: '1663006770786'
  alias: growroom1-auto-drain
  description: ''
  trigger:
  - platform: state
    entity_id:
    - input_boolean.growroom1_veg_cycle
    from: 'off'
    to: 'on'
  condition: []
  action:
  - repeat:
      while:
      - condition: state
        entity_id: input_boolean.growroom1_veg_cycle
        state: 'on'
      sequence:
      - type: turn_on
        device_id: ec51c9a3eeaef19ec020ea03b2fe54c5
        entity_id: switch.drain_pump
        domain: switch
      - delay:
          hours: 0
          minutes: 0
          seconds: 40
          milliseconds: 0
      - type: turn_off
        device_id: ec51c9a3eeaef19ec020ea03b2fe54c5
        entity_id: switch.drain_pump
        domain: switch
      - delay:
          hours: 1
          minutes: 0
          seconds: 0
          milliseconds: 0
  mode: single
- id: '1663390101736'
  alias: drain-pump-auto-off
  description: ''
  trigger:
  - platform: numeric_state
    entity_id: sensor.drain_pump_current_consumption
    above: 40
    below: 42
  condition: []
  action:
  - type: turn_off
    device_id: ec51c9a3eeaef19ec020ea03b2fe54c5
    entity_id: switch.drain_pump
    domain: switch
  mode: single

🤝 SLA

Not good; not good at all.

🗂 References and documentation

Image AddedImage AddedImage AddedImage AddedImage AddedImage AddedImage AddedImage AddedImage AddedImage Added