Skip to content

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 fieldTypeUnitDescription
NbBattint—Connected batteries
switch_stebool—Switch/relay state
power_injection_stebool—Power injection state
power_input_stebool—Power input state
injected_currentnumber (1 dec)AInjected current
boat power onbool—Boat power-on flag
boat power offbool—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' -v

Command — 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).

FieldTypeDescription
relay"auto" | boolContactor: auto / force on / force off
injection"auto" | boolGrid 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}'

Integration of multiplexed solutions
MUXEN and the MUXEN logo are trademarks of MUXEN SAS.