Appearance
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-field | Type | Unit | Description |
|---|---|---|---|
chN.state | bool | — | Channel on/off |
chN.dimming | int | 0-255 | Dimming 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' -vCommand — 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.
| Field | Type | Description |
|---|---|---|
channel | int 0-5 | Target channel |
dimming | int 0-100 | Dimming level (%) |
on | bool | Channel 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}'