For all Aqara H2 switches, each button can be clicked on the top and bottom section. The top one works as a relay switch while the bottom one as a virtual button.
In Home Assistant, the relay switch is exposed as a light entity (valid for 2026.2 release) and as a button event entity. The bottom one only as a button event entity.
With this blueprint you can assign a behavior for when the button event is triggered (for example, you can use it to alternate the relay switch making the physical button works the same if pressed on the top or bottom section), or anything else you want, like activating a scene, sending a notification message, starting your robot vacumm cleaner, etc.