system.kanoa.asset.getModeSourceId
Description
Returns the modeSourceId for a given modeSourceName. Used to store info on who set the modeEvent i.e. Operator, schedule, plc, etc.Syntax
getModeSourceId(modeSourceName)Parameters:
Returns:
Code Examples
# Example Usage:
mode_source_id = system.kanoa.asset.getModeSourceId('Operator')
print(f"The modeSourceId for 'Operator' is {mode_source_id}.")