How isystemsautomation/homemaster-dev works
HomeMaster is an open, local-first automation system: Home Assistant communicates with ESP32 controllers, which connect RP2350 I/O modules over RS-485 Modbus RTU. Module firmware provides device-specific sensing and control; the README also documents onboard rules, persistent configuration, and browser-based USB-C WebConfig. The tree contains module headers and selected drivers, but not the controller firmware or complete module applications, so those runtime internals are represented only where documented. The estimator is not described in the supplied README excerpt, so its role is left out.
Main entry points: hm-webconfig.js USB-C WebConfig · hm_common.h Energy Meter · hm_input_engine.h LED Controller · hm_pwm_output.h PWM Output
Components 18
Automation System
- ESP32 Controllers
- RS-485 Modbus
I/O Modules
- Energy Meter
ENM-223-R1/Firmware/v0.2.0/default_enm_223_r1/hm_common.h - Alarm I/O
ALM-173-R1/Firmware/v0.2.0/default_alm_173_r1/hm_common.h - AC Dimmer
DIM-420-R1/Firmware/v0.2.0/default_DIM_420_R1/hm_common.h - Analog I/O
AIO-422-R1/Firmware/v0.2.0/default_aio_422_r1/hm_common.h - LED Controller
RGB-621-R1/Firmware/v0.3.0/default_rgb_621_r1/hm_input_engine.h - PWM Output
RGB-621-R1/Firmware/v0.3.0/default_rgb_621_r1/hm_pwm_output.h - PWM Trace
RGB-621-R1/Firmware/v0.3.0/default_rgb_621_r1/hm_trace.h - Digital I/O
DIO-430-R1/Firmware/v0.3.0/default_DIO_430_R1/hm_common.h - Staircase LEDs
STR-3221-R1/Firmware/v0.2.0/default_str_3221_r1/hm_stair.h - Heating Control
STR-3221-R1/Firmware/v0.2.0/default_str_3221_r1/hm_heat.h - Leak Detection
WLD-521-R1/Firmware/v0.2.0/default_wld-521-r1/hm_common.h
Metering Drivers
- ATM90E32 Driver
ENM-223-R1/Firmware/v0.2.0/default_enm_223_r1/atm90e32.cpp - Modbus Register Map
RGB-621-R1/Firmware/v0.1.0/default_rgb_621_r1/src/enm_modbus.cpp
Module Configuration
- USB-C WebConfig
_shared/hm-webconfig.js
Other components
- Home Assistant
- Installer Browser
Connections 22
- Home Assistant → ESP32 Controllers: controls locally
- ESP32 Controllers → RS-485 Modbus: masters on
- RS-485 Modbus → Energy Meter: Modbus RTU
- RS-485 Modbus → Alarm I/O: Modbus RTU
- RS-485 Modbus → AC Dimmer: Modbus RTU
- RS-485 Modbus → Analog I/O: Modbus RTU
- RS-485 Modbus → LED Controller: Modbus RTU
- RS-485 Modbus → Digital I/O: Modbus RTU
- RS-485 Modbus → Staircase LEDs: Modbus RTU
- RS-485 Modbus → Leak Detection: Modbus RTU
- LED Controller → PWM Output: drives outputs
- PWM Output → PWM Trace: records changes
RGB-621-R1/Firmware/v0.3.0/default_rgb_621_r1/hm_pwm_output.h - Energy Meter → ATM90E32 Driver: measures power
- Installer Browser → USB-C WebConfig: configures modules
- USB-C WebConfig → Energy Meter: sets module options
- USB-C WebConfig → Alarm I/O: sets module options
- USB-C WebConfig → AC Dimmer: sets module options
- USB-C WebConfig → Analog I/O: sets module options
- USB-C WebConfig → LED Controller: sets module options
- USB-C WebConfig → Digital I/O: sets module options
- USB-C WebConfig → Staircase LEDs: sets module options
- USB-C WebConfig → Leak Detection: sets module options