Metrics
Metric names are lowercase with digits and _. The following names are sent in telemetry, event, and status (Payload formats). A sensor that cannot be read is not sent.
Measurements
Section titled “Measurements”| Metric | Type | Unit | Source |
|---|---|---|---|
tN_name (default t1…t4) |
number | Cel |
DS18B20 per active slot |
temp_ambient |
number | Cel |
SHT41 |
humidity |
number | %RH |
SHT41 |
voltage |
number | V |
PZEM-004T |
current |
number | A |
PZEM-004T |
power_draw |
number | W |
PZEM-004T |
energy |
number | kWh |
PZEM-004T (cumulative) |
frequency |
number | Hz |
PZEM-004T |
power_factor |
number | / |
PZEM-004T |
dN_name (default d1…d4) |
boolean | digital input (true = active) |
|
oN_name (default o1…o4) |
boolean | digital output (true = ON) |
|
uptime |
number | s |
ESP32 |
heap_free |
number | By |
ESP32 |
expander_ok |
boolean | false = PCF8574 not answering |
|
maintenance |
boolean | only while maintenance mode is active |
Alarms
Section titled “Alarms”| Metric | Meaning |
|---|---|
alarm_level |
0 normal, 1 warning, 2 alarm |
alarm_<name>_warn, alarm_<name>_high |
temperature warning and alarm of slot <name>; trigger value in …_value |
alarm_<name>_active, alarm_<name>_inactive |
digital input alarms |
alarm_voltage_low, alarm_voltage_high, alarm_current_high, alarm_power_draw_high |
power alarms; trigger value in …_value |
See Alarms.
Rules and sources
Section titled “Rules and sources”| Metric | Meaning |
|---|---|
rule_<id> |
active status of each rule with en: true (boolean); rule_<id>_value if an event action uses val |
flag_f1…flag_f4 |
flags used by the rules set |
src_<id>_ok |
Modbus source diagnostics (only if diag: true) |
prefix_suffix |
Modbus device metrics, e.g. rak1_voltage, grid_power |
Status metrics (status topic)
Section titled “Status metrics (status topic)”state (online / offline), fw, model, hw, ip, gateway, and button (button events: identify, factory_reset).
Reserved prefixes
Section titled “Reserved prefixes”alarm_, rule_, flag_, and src_ must not be used as the prefix of a slot or source name.