Appearance
Remote battery switch (function 25)
The remotely operated main battery switch. It reports whether the contactor is closed, whether power is being injected and how much, how many batteries are connected, and the boat power-on and power-off requests. Its command forces the contactor or the injection on or off, or hands either back to automatic control.
Published
device/25/<i>/life
metadata adds counter; expireAfterSec: 30.
Two keys contain literal spaces:
"boat power on","boat power off".
data field | Type | Unit | Description |
|---|---|---|---|
NbBatt | int | — | Connected batteries |
switch_ste | bool | — | Switch/relay state |
power_injection_ste | bool | — | Power injection state |
power_input_ste | bool | — | Power input state |
injected_current | number (1 dec) | A | Injected current |
boat power on | bool | — | Boat power-on flag |
boat power off | bool | — | Boat power-off flag |
json
{
"data": {
"NbBatt": 4,
"switch_ste": true,
"power_injection_ste": true,
"power_input_ste": false,
"injected_current": 15.5,
"boat power on": true,
"boat power off": false
},
"metadata": {
"rxdate": "2026-06-17T14:30:45.123Z",
"rxTimestamp": 1781793045,
"expireAfterSec": 30,
"counter": 1
}
}bash
mosquitto_sub -h 127.0.0.1 -t 'device/25/+/life' -vCommand — device/25/<i>/command
Regex ^device/25/([[:digit:]]+)/command$. Each field accepts the string "auto" (auto mode) or a boolean (true = force on, false = force off).
| Field | Type | Description |
|---|---|---|
relay | "auto" | bool | Contactor: auto / force on / force off |
injection | "auto" | bool | Grid injection: auto / force on / force off |
bash
mosquitto_pub -h 127.0.0.1 -t 'device/25/0/command' -m '{"relay":"auto"}'
mosquitto_pub -h 127.0.0.1 -t 'device/25/0/command' -m '{"relay":true}'
mosquitto_pub -h 127.0.0.1 -t 'device/25/0/command' -m '{"injection":false}'