           devicePreset.customCommands[filename] ?= {}
           devicePreset.customCommands[filename].preset ?= {}
           devicePreset.customCommands[filename].preset.expiry = parseInt(c.expiry)
-          devicePreset.customCommands[filename].preset.expiryCommand = c.expiryCommand
+          devicePreset.customCommands[filename].preset.expiryCommand = c.command
           continue if not deviceCustomCommands[filename]? or commandName not in deviceCustomCommands[filename]
           if cmd = common.getParamValueFromPath(device, "_customCommands.#{filename}")
             devicePreset.customCommands[filename].current = cmd

          devicePreset.customCommands[filename] ?= {}
          devicePreset.customCommands[filename].preset ?= {}
          devicePreset.customCommands[filename].preset.value = c.value
          devicePreset.customCommands[filename].preset.valueCommand = c.valueCommand
          continue if not deviceCustomCommands[filename]? or commandName not in deviceCustomCommands[filename]
          if cmd = common.getParamValueFromPath(device, "_customCommands.#{filename}")
            devicePreset.customCommands[filename].current = cmd

                setParameterValues.push(["#{parameterPath}.#{i}.#{paramName}", presetValue, paramDetails.type])
        else
          vals = []
          for k,v of objectDetails.preset
            vals.push([k, v]) if k[0] != '_'
          taskList.push({device : deviceId, name : 'addObject', objectName : parameterPath, parameterValues : vals, instanceName : objectName})
      else if Object.keys(objectDetails.current) > 0
