def object_id(value):
 _object_id = '{}_{}_{}'.format(slugify(_value_name(value)), value.node.node_id, value.index)
 if (value.instance > 1):
  return '{}_{}'.format(_object_id, value.instance)
 return _object_id

def object_id ( value ) : _object_id = '{}_{}_{}' . format ( slugify ( _value_name ( value ) ) , value . node . node_id , value . index ) if ( value . instance > 1 ) : return '{}_{}' . format ( _object_id , value . instance ) return _object_id
return the object_id of the device value .