Actions can be used in rules by creating an action object. All actions return a Map<String, Object>.
Returned values can be accessed by name, sometimes the type deduction needs some hints, as shown below:
val actions = getActions("tinkerforge", "tinkerforge:brickletdualbutton:[UID]")
val hwVersion = actions.brickletDualButtonGetIdentity().get("hardwareVersion") as short[]
logInfo("Example", "Hardware version: " + hwVersion.get(0) + "." + hwVersion.get(1) + "." + hwVersion.get(2))