Ok - so some progress.
A couple of things - and apologies if you have little or no English, but please read at least point 11 of the linked page below. Your yaml must be posted in code (preformatted text) tags, which look like </> on the posting toolbar. This will improve the readability of your code and also ensure that people can see if the indentation is correct. You don't need to re-post, just edit the post above to include the tags.
Secondly, I assume you don't have a device at the moment with a suitable button to click? If you have a Zigbee hub, some Zigbee buttons support click, double click and other actions. I can't help you choose one - but if you post a Zigbee question maybe someone can.
Personally I am more comfortable making my own button device with ESPHome. This will require you to assemble some hardware and do a small bit of yaml coding.