Skip to content

Lighting (function 8) ​

A six-channel lighting controller. Each channel is one lighting circuit, with an on/off state and a dimming level. This is what a "cabin lights" button on a screen drives.

Published ​

device/8/<i>/life ​

expireAfterSec: 30. data holds 6 nested channel objects ch0..ch5.

Sub-fieldTypeUnitDescription
chN.statebool—Channel on/off
chN.dimmingint0-255Dimming level
json
{
  "data": {
    "ch0": {
      "state": true,
      "dimming": 200
    },
    "ch1": {
      "state": false,
      "dimming": 0
    },
    "ch2": {
      "state": true,
      "dimming": 128
    },
    "ch3": {
      "state": false,
      "dimming": 0
    },
    "ch4": {
      "state": false,
      "dimming": 0
    },
    "ch5": {
      "state": false,
      "dimming": 0
    }
  },
  "metadata": {
    "rxdate": "2026-06-17T14:30:45.123Z",
    "rxTimestamp": 1781793045,
    "expireAfterSec": 30
  }
}
bash
mosquitto_sub -h 127.0.0.1 -t 'device/8/+/life' -v

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

Regex ^device/8/([[:digit:]]+)/command$. channel must be a JSON integer 0-5 or the command is dropped. dimming is clamped to 0-100.

FieldTypeDescription
channelint 0-5Target channel
dimmingint 0-100Dimming level (%)
onboolChannel on/off
bash
mosquitto_pub -h 127.0.0.1 -t 'device/8/0/command' -m '{"channel":0,"dimming":50,"on":true}'
mosquitto_pub -h 127.0.0.1 -t 'device/8/0/command' -m '{"channel":2,"on":false}'

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