The Aqara buttons aren’t available in the Phoscon app. They are only available via the api.
At the moment i switch different things in my flat.
Just in this moment I created a case where I can use the button for dimming my bath lights.
Rule for short press:
when state of Aqara-Switch-1 is "1002" then toggle beleuchtung-bad
Rules for long press:
when $dimlevel-bad > 100 then $dimlevel-bad = 25
when state of Aqara-Switch-1 is "1001" then $dimlevel-bad = $dimlevel-bad + 25 and after 1 second dim beleuchtung-bad to $dimlevel-bad
It’s also possible to define unlimited cases dependent on the press duration.
Just use the pimatic-datetime plugin and count the duration between press and release. Based on the result you could trigger as much actions you want.
You only need two rules for the measurement and one rule per action you want to trigger dependent on the duration.