It works with the Hue hub and using hue integration or with Zigbee2MQTT. It might also with with ZHA, however i have not tried.
The blueprint in this tread, is if the switch is connected using the hue hub and hue integration.
If you would like to use the switch through Zigbee2MQTT then this link will point to blueprints.