sensor-presence-node

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

element 0 2 models a presence sensor Sensor Server 0x1100 Sensor Server 0x1100 Sensor Setup Server 0x1101 Sensor Setup Server 0x1101 Server Setup Server (nested)
1 element, 2 models. A dashed box is a Setup Server, nested under the Server it writes through; a line between two columns is a relationship between models on different elements. Wider than the window — the drawing scrolls sideways rather than shrinking its type.

What is worth reading in it

  • The two sensor models share one state array: the Setup Server is constructed with the Sensor Server it extends, because MMD 4.1.1 makes it an extension of one.
  • Publication is not the node's to choose: until a Provisioner sets a publication on the Sensor Server model, the state updates and the publish is refused with a named reason.
  • A lighting node takes that published presence as occupancy - see full-light-node's Light LC server - which is how a detector in one room ends up controlling a lamp in another.

Model budget

1 elements, 2 models, plus one slot the component keeps for the Config Server on element 0.