Fibaro integration new Event type

Hello,
In the 2023.11 release, there is the new event type.
Up to now, I was using nodered to catch the events and send them to HA.
I would like to use the new possibility but struggle to find how to catch an event.
With nodered, I use short press on S2 and also long press on S2 (events 22 and 26)
Can someone help me and maybe post some code ?
thanks,
Seb