system.kanoa.asset.getModeSourceId(modeSourceName)
Returns the modeSourceId for a given modeSourceName. Used to store info on who set the modeEvent i.e. Operator, schedule, plc, etc.
Parameters
modeSourceName String: Name of mode source
Returns
modeSourceId Integer
Example
modeSourceId = system.kanoa.asset.getModeSourceId('Operator')
print "The modeSourceId for %s is %s"%(modeSourceName, modesourceId)