Harmony Hub button presses and groups

I have two Dyson fans that are controlled by my Harmony Hub, they are currently working perfectly and written into my sitemap with no problems.

I would like to create a group for the major functions of the two Dysons.

Is it possible to create a group for each pair of those strings ?..one switch to turn both Dysons on or off and another to oscillate both of them ?

something like Group dysons_oscillate and Group dysons_switch

Thanks !

Yes: https://www.openhab.org/docs/configuration/items.html#groups