Appearance
Power source genset (function 4)
Generator/group manager.
stateenum:off,contact,starting,on,stopping,error.
Published
device/4/<i>/life
metadata adds counter; expireAfterSec: 30.
data field | Type | Unit | Description |
|---|---|---|---|
state | string | — | Group state (enum) |
stateCode | int | — | Raw state |
alarmTemperatureOil | bool | — | Oil temperature alarm |
alarmTemperatureWater | bool | — | Water temperature alarm |
noStart | bool | — | Auto-start blocked (batteries full) |
noCutOff | bool | — | Stop rejected (batteries too low) |
temperature | int | °C | Temperature |
voltage | number (1 dec) | V | Voltage |
json
{
"data": {
"state": "on",
"stateCode": 3,
"alarmTemperatureOil": false,
"alarmTemperatureWater": false,
"noStart": false,
"noCutOff": true,
"temperature": 72,
"voltage": 13.8
},
"metadata": {
"rxdate": "2026-06-17T14:30:45.123Z",
"rxTimestamp": 1781793045,
"expireAfterSec": 30,
"counter": 7
}
}device/4/<i>/state
expireAfterSec: 30.
data field | Type | Unit | Description |
|---|---|---|---|
voltage | number (1 dec) | V | Voltage |
current | number (1 dec) | A | Current (signed) |
rpm | int | rpm | Engine RPM |
power | int | W | Output power |
json
{
"data": {
"voltage": 13.8,
"current": 110.5,
"rpm": 1500,
"power": 3200
},
"metadata": {
"rxdate": "2026-06-17T14:30:45.123Z",
"rxTimestamp": 1781793045,
"expireAfterSec": 30
}
}bash
mosquitto_sub -h 127.0.0.1 -t 'device/4/+/#' -vCommand — device/4/<i>/command
Regex ^device/4/([[:digit:]]+)/command$. If stopRequest and startRequest both true → startRequest cleared.
| Field | Type | Description |
|---|---|---|
startRequest | bool | Start group |
stopRequest | bool | Stop group |
clearError | bool | Clear error |
ForceCmd | bool | Force command |
bash
mosquitto_pub -h 127.0.0.1 -t 'device/4/0/command' -m '{"startRequest":true}'
mosquitto_pub -h 127.0.0.1 -t 'device/4/0/command' -m '{"stopRequest":true}'