sensor-presence-node
A room detector reported as Presence Detected 0x004D - and published, so a lighting node can act on it.
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.