A room lit at two colour temperatures: a lamp burning warm on the left, a cool white LED strip along the ceiling on the right

Bluetooth Mesh on ESP32,
one model per C++ class.

A wall switch on one side of a room and a lamp on the other: one OnOff Set into a group address, two nodes, one AppKey - and a room sensor that lights the same lamp by publishing presence, which the lamp node's Light LC server takes as occupancy.

a Sensor Status, into a groupan OnOff Set, into a groupor a scene recalla room sensora room sensor0x1100 sensor serverpublishes presencea wall switcha wall switch0x1001 on-off client0x1003 level clienta remotea remote0x1205 scene clientthe lampthe lamp0x1000 on-off server0x1300 lightness server0x1303 ctl server0x1307 hsl server0x130F light LC serverone network · one AppKey · a group address between them
51mesh models
6model families
10example nodes
5.5+ESP-IDF
0PTS submissions so far
what you can build with it

A lamp, a switch, a remote, a presence sensor.

Each one is a complete node for a single board, composed from the models named under its picture.

light-ctl-node

A tunable-white lamp: level and colour temperature in one message, stored as a scene.

0x10000x13030x13040x12030x1204

what it composes →

onoff-server-node

The smallest node a Provisioner can do anything with: a switch, a dimmer, and storing the result.

0x10000x10020x12030x1204

what it composes →

sensor-presence-node

A room detector reported as Presence Detected 0x004D - and published, so a lighting node can act on it.

0x11000x1101measured on air

what it composes →

Every node in this set, and what each one is composed from →

the whole ceiling

Five elements, twenty-eight models, one lamp that answers.

Element 0 is the lamp and everything a Provisioner writes to it. Elements 1 to 3 are the colour controls, each with the Generic Level a Provisioner binds to it, so a wall dimmer can turn a hue knob without knowing anything about colour. Element 4 is the Light Control element: its clock, its own OnOff as a mirror, and its output bound back to the lamp across the elements.

element 0 17 models the lamp Generic OnOff Server 0x1000 Generic OnOff Server 0x1000 Generic Level Server 0x1002 Generic Level Server 0x1002 Generic Power Level Server 0x1009 Generic Power Level Server 0x1009 Generic Power Level Setup Server 0x100A Generic Power Level Setu… 0x100A Generic Power OnOff Server 0x1006 Generic Power OnOff Server 0x1006 Generic Power OnOff Setup Server 0x1007 Generic Power OnOff Setu… 0x1007 Light Lightness Server 0x1300 Light Lightness Server 0x1300 Light Lightness Setup Server 0x1301 Light Lightness Setup Se… 0x1301 Light CTL Server 0x1303 Light CTL Server 0x1303 Light CTL Setup Server 0x1304 Light CTL Setup Server 0x1304 Light HSL Server 0x1307 Light HSL Server 0x1307 Light HSL Setup Server 0x1308 Light HSL Setup Server 0x1308 Health Server 0x0002 Health Server 0x0002 Generic Scene Server 0x1203 Generic Scene Server 0x1203 Generic Scene Setup Server 0x1204 Generic Scene Setup Server 0x1204 Scheduler Server 0x1206 Scheduler Server 0x1206 Scheduler Setup Server 0x1207 Scheduler Setup Server 0x1207 element 1 2 models hue dial Light HSL Hue Server 0x130A Light HSL Hue Server 0x130A Generic Level Server 0x1002 Generic Level Server 0x1002 element 2 2 models saturation dial Light HSL Saturation Server 0x130B Light HSL Saturation Ser… 0x130B Generic Level Server 0x1002 Generic Level Server 0x1002 element 3 2 models temperature dial Light CTL Temperature Server 0x1306 Light CTL Temperature Se… 0x1306 Generic Level Server 0x1002 Generic Level Server 0x1002 element 4 5 models the Light Control element Generic Time Server 0x1200 Generic Time Server 0x1200 Generic Time Setup Server 0x1201 Generic Time Setup Server 0x1201 Generic OnOff Server 0x1000 - the mirror of Light LC Light mode; drives nothing Generic OnOff Server 0x1000 Light LC Server 0x130F Light LC Server 0x130F Light LC Setup Server 0x1310 Light LC Setup Server 0x1310 the switch the lamp answers a Provisioner binds the dial a Provisioner binds the dial a Provisioner binds the dial one colour engine one colour engine one colour engine one colour engine the colour question on the CTL state the colour question on the CTL state Light LC Linear Output, across elements Light LC Linear Output, across elements Server Setup Server (nested) state mirror, no hardware answered from another element output bound across elements bound by a Provisioner
The models, family by family, with the identifier each is addressed by →
The rig: one lamp, three colour dials, a Light Control element, scenes and a schedule. · why each element is where it is
how it behaves

The model owns the state, so the answer cannot disagree with it.

This is the difference between a node that answers from a copy of the state and a node that answers from the thing itself. It is also why a relay cannot end up on while a Provisioner believes it is off.

What happens to one acknowledged Set What happens to one acknowledged Set The same path, whether the message came from a peer, from a group, from a scene or from the clock. a Provisionera Provisioner the elementthe element the modelthe model the hardwarethe hardware Set, acknowledged, over a bound AppKey Set, acknowledged, over a bound AppKey 1 the message reaches the model that answers for it the message reaches the model that answers for it 2 the model decides - it may refuse, and then nothing moves the model decides - it may refuse, and then nothing moves 3 the hardware hook: a pin, a PWM channel, a relay the hardware hook: a pin, a PWM channel, a relay 4 the state as it is now, not as it was the state as it is now, not as it was 5 Status, built from that state, to whoever asked Status, built from that state, to whoever asked 6 Every change of state is reported with what caused it — and those are the causes: a peer, acknowledged a peer, unacknowledged the application itself a scene recall a scheduler entry the stack
A model may also let the stack answer on its own; the choice is made per model, before the node starts, and it becomes part of the composition data.
boundaries

Where the line is.

Half of this list is work not done, half is a decision the component makes by not making it for you. Telling the two apart is the difference between a limitation and a design.

Not there yet

  • No transitions yet: a Set that carries a transition time is applied and answered immediately.
  • Provisioning is No-OOB: anything in radio range can complete it.
  • The set of models is fixed before the node starts; a model cannot be added or removed while it runs.
  • The property clients, the power configuration servers and the bridge configuration server are not implemented. For the last of them the obstacle is the ESP-IDF stack, not this component.
  • There is no teardown: once started, the node runs until it is reset.

By design, not by omission

  • A node here is a node: not a Provisioner, not a relay and not a gateway. It does not create a network or bring other devices into one.
  • Nothing about a reboot is decided for you. The component keeps no copy of what should survive a power cut and chooses no storage: the application decides what is worth keeping and where it lives. The example nodes are written both ways - some keep their scenes and their schedule register in NVS, some keep nothing.
  • Group Gets are answered the way unicast ones are, so several members of a group can answer at once.
  • A model answers for one element. A recall, a schedule or a group message reaches an element, not the whole device, so a node with several elements has to be composed as such.
  • A Set is answered as it arrives: nothing queues a second message behind a transition, so a stream of Sets is a stream of hardware movements.

None of this is a PTS result, and a bench run proves the messages it sent and no others. What has been measured, and by whom →