Apple Developer · youtube
1A Matter device must have a root node representing the entire accessory, an endpoint (e.g., a color LED), and a state with commands and events.
“We’ll need to create what’s called a root node, which represents the entire Matter accessory. Then we’ll need an endpoint, in our case that’s going to be the color LED light, and that’s also going to be the object that has a state, for example the color and brightness, and can receive commands, for example to turn the light on or off.”