You get the errors because, in your code, the cmds structure is an array. You are filling the array with hubitat.device.HubAction structures. Your are then passing the array to sendHubCommand() which only accepts hubitat.device.HubAction or hubitat.device.HubMultiAction structures.
You need to convert the cmds array into a structure that can be accepted by the sendHubCommands() function.
see here
THIS topic may also be of help.