@rslueb - It depends on what you actually require, whether just an on/off state, or an IAS Zone Device (which is used by the devices you have shown above).
If you would just like a switch on/off state, then I’d use the Occupancy Sensor example as it’s an End Device and has a GPIO state.
For some reason the Espressif On/Off switch is a ZCZR device… I tend to work with the idea that a Zigbee On/Off device is an End Device (Sleepy) - like a key fob?
If you’d like a specific device like a “(Sleepy) On/Off Button”, then you need to create it yourself.