How keefo/open-plant-pulse works
Open Plant Pulse pairs a battery-powered sensor with an always-on local hub. The sensor samples soil, ambient conditions, and battery state, then broadcasts BTHome reports; the hub receives and decodes them, persists history, and serves plant monitoring and management. Distinct hub capabilities include plant profiles and care insights, sensor configuration and firmware updates, and scheduled grow-light control. The sensor also provides a local console and can be discovered directly by Home Assistant. Relationships for unsampled subsystems are included only where the README documents them; prototype end-to-end validation remains incomplete.
Main entry points: web.py Hub web application · app_main.c Sensor application · store.py History and state · report_delivery.c Report delivery
Components 23
Sensor sampling
- Soil probe
sensor/firmware/main/soil_probe.c - SHT45 monitor
sensor/firmware/main/sht45_monitor.c - Battery monitor
sensor/firmware/main/battery_monitor.c - Sensor application
sensor/firmware/main/app_main.c
Sensor delivery
- Report delivery
sensor/firmware/main/report_delivery.c - Report queue
sensor/firmware/components/report_queue/report_queue.c - BTHome encoder
sensor/firmware/components/bthome_payload/bthome_payload.c - BLE broadcaster
sensor/firmware/main/bthome_broadcaster.c
Hub collection
- BLE subscriber
hub/src/open_plant_pulse_hub/ingestion/ble.py - Advertisement ingestion
hub/src/open_plant_pulse_hub/application/ingestion.py - BTHome decoder
hub/src/open_plant_pulse_hub/ingestion/bthome.py - History and state
hub/src/open_plant_pulse_hub/application/store.py
Plant management
- Profiles and care
hub/src/open_plant_pulse_hub/domain/plant_profiles.py - Care event detection
hub/src/open_plant_pulse_hub/domain/care_events.py - Hub web application
hub/src/open_plant_pulse_hub/web.py - Browser dashboard
hub/src/open_plant_pulse_hub/static/app.js - Light scheduling
hub/src/open_plant_pulse_hub/lighting/service.py - Light integrations
hub/src/open_plant_pulse_hub/lighting/neewer_gl1c.py
Device services
- Sensor configuration
hub/src/open_plant_pulse_hub/ingestion/device_configuration.py - Firmware updates
hub/src/open_plant_pulse_hub/application/firmware.py - Sensor console
sensor/firmware/main/web_ui.c
Other components
- Household user
- Home Assistant
Connections 21
- Sensor application → Soil probe: samples soil
README.md - Sensor application → SHT45 monitor: samples air
README.md - Sensor application → Battery monitor: reads battery
README.md - Sensor application → Report delivery: submits sample
README.md - Report delivery → Report queue: queues reports
README.md - Report delivery → BTHome encoder: encodes reports
README.md - BLE broadcaster → Household user: broadcasts BLE
README.md - BLE broadcaster → Home Assistant: broadcasts BTHome
README.md - BLE subscriber → Advertisement ingestion: passes advertisements
hub/src/open_plant_pulse_hub/ingestion/ble.py - Advertisement ingestion → BTHome decoder: decodes payload
hub/src/open_plant_pulse_hub/application/ingestion.py - Advertisement ingestion → History and state: records readings
hub/src/open_plant_pulse_hub/application/ingestion.py - Household user → Browser dashboard: manages plants
README.md - Browser dashboard → Hub web application: uses HTTP app
README.md - Hub web application → History and state: reads and writes
hub/src/open_plant_pulse_hub/web.py - History and state → Profiles and care: uses plant profiles
hub/src/open_plant_pulse_hub/application/store.py - History and state → Care event detection: stores care history
README.md - Hub web application → Light scheduling: routes light control
hub/src/open_plant_pulse_hub/web.py - Light scheduling → Light integrations: dispatches drivers
hub/src/open_plant_pulse_hub/lighting/service.py - Hub web application → Sensor configuration: manages sensor settings
README.md - Hub web application → Firmware updates: offers firmware updates
README.md - Household user → Sensor console: views device console
README.md