Creating devices and sub-devices with MQTT discovery

FWIW, that information is found throughout the forum (device with entities); here’s one example (see point #3):

What is not found is what you requested, namely devices with sub-devices (with entities). I don’t know if the Frontend is even capable of rendering that kind of hierarchy.