Skip to content

Battery (function 5) ​

A battery and its monitor. This is where the state of charge on the screens comes from, along with voltage, current, temperature, the charge/discharge limits the battery imposes, and its cycle count. The command connects and disconnects it.

  • state enum: ok, warning, alarm.
  • request enum: no-charge, mid-load, overload, low-battery, off.

Published ​

device/5/<i>/life ​

metadata adds counter; expireAfterSec: 30.

data fieldTypeUnitDescription
statestring—Battery state (enum)
stateCodeint—Raw state
requeststring—Charge request (enum)
requestCodeint—Raw request
voltagenumber (1 dec)VBattery voltage
currentnumber (1 dec)ABattery current (signed)
socint%State of charge
temperatureint°CBattery temperature
BindToParcint—Parc binding id
json
{
  "data": {
    "state": "ok",
    "stateCode": 0,
    "request": "mid-load",
    "requestCode": 1,
    "voltage": 12.8,
    "current": -15.4,
    "soc": 87,
    "temperature": 24,
    "BindToParc": 1
  },
  "metadata": {
    "rxdate": "2026-06-17T14:30:45.123Z",
    "rxTimestamp": 1781793045,
    "expireAfterSec": 30,
    "counter": 3
  }
}

device/5/<i>/state ​

expireAfterSec: 30.

data fieldTypeUnitDescription
maxChargeVoltagenumber (1 dec)VMax charge voltage
maxChargeCurrentnumber (1 dec)AMax charge current
maxDischargeCurrentnumber (1 dec)AMax discharge current
minDischargeVoltagenumber (1 dec)VMin discharge voltage
json
{
  "data": {
    "maxChargeVoltage": 14.6,
    "maxChargeCurrent": 100.0,
    "maxDischargeCurrent": 200.0,
    "minDischargeVoltage": 10.5
  },
  "metadata": {
    "rxdate": "2026-06-17T14:30:45.123Z",
    "rxTimestamp": 1781793045,
    "expireAfterSec": 30
  }
}

device/5/<i>/cycle ​

expireAfterSec: 60.

data fieldTypeDescription
cycleintCharge/discharge cycle count
errorCodeintAlarm code (0 = none)
json
{
  "data": {
    "cycle": 342,
    "errorCode": 0
  },
  "metadata": {
    "rxdate": "2026-06-17T14:30:45.123Z",
    "rxTimestamp": 1781793045,
    "expireAfterSec": 60
  }
}
bash
mosquitto_sub -h 127.0.0.1 -t 'device/5/+/#' -v

Command — device/5/<i>/command ​

Regex ^device/5/([[:digit:]]+)/command$. If both true, requestOn is cleared.

FieldTypeDescription
requestOnboolTurn battery on
requestOffboolTurn battery off
bash
mosquitto_pub -h 127.0.0.1 -t 'device/5/0/command' -m '{"requestOn":true}'
mosquitto_pub -h 127.0.0.1 -t 'device/5/0/command' -m '{"requestOff":true}'

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