How to bind a switch to a zigbee group

There’s a post in the Cookbook about migrating from a Hue hub to Zigbee which has a section on this:

Mind you, all the devices described are Hue, so you would expect them to play nice together.