demeter
Autonomous Hydroponic Intelligencegit clone https://github.com/maydayv7/demeter
agent/Marl/strategies.py (1308B)
1# agent/Marl/strategies.py
2
3STRATEGIES = {
4 # --- 🟢 GLOBAL / PASSIVE ---
5 0: "MAINTAIN_CURRENT", # Everything looks good, hold steady.
6 1: "CALIBRATE_SENSORS", # Data looks weird/impossible (e.g., pH 0). Check hardware.
7
8 # --- 💧 NUTRIENT INTERVENTIONS ---
9 2: "AGGRESSIVE_PH_DOWN", # pH is way too high (> 7.5).
10 3: "AGGRESSIVE_PH_UP", # pH is way too low (< 4.5).
11 4: "GENTLE_PH_BALANCING", # pH is slightly off, use mild correction.
12 5: "INCREASE_EC_VEG", # Plants are hungry (Vegetative Nitrogen boost).
13 6: "INCREASE_EC_BLOOM", # Plants are hungry (Flowering PK boost).
14 7: "LOWER_EC_FLUSH", # Nutrient burn detected (Tips yellowing). Reduce EC.
15 8: "CALMAG_BOOST", # Specific deficiency (Magnesium/Calcium).
16
17 # --- 🌤️ CLIMATE INTERVENTIONS ---
18 9: "RAISE_TEMP_HUMIDITY", # "VPD Low" protocol.
19 10: "LOWER_TEMP_HUMIDITY", # "VPD High" / Mold risk protocol.
20 11: "MAX_AIR_CIRCULATION", # Stagnant air / weak stems.
21
22 # --- 🚑 DISEASE / BIO ---
23 12: "FUNGAL_TREATMENT", # White powdery spots detected.
24 13: "PEST_ISOLATION", # Bugs visible.
25 14: "PRUNE_NECROTIC_LEAVES" # Remove dead plant matter to prevent spread.
26}
27
28NUM_ACTIONS = len(STRATEGIES)