How to use matter button(generic button) device for automation

Hi there,
This is Leo from Heiman again.
I am tinkering my home again, but I realized that matter button as automation trigger was not work properly, but there are couple of options to do that.

I googled it, seems someone has the same issue:

my HA version:

my generic button:

Option 1: control it with Apple home.

Option 2: create automation via Node-RED:

And now, I am happy to play with it again, I am testing the both way simultaneously, let’s see which way is more stable, but I will probably use Node-RED only in the feature, since I can control zigbee, matter and other products, it would be an extra benefits for me as a developer.

Now it looks much more better.