Run specific Android device with grid

Hi, i’m using selenium grid with 2 android devices that connected to my MAC.
i’m running 2 nodes for each device with capabilities accordingly.
i understood that grid selects the device according to adb devices output , the first on the list.
how can i set that it will select my device according to the capabilities setting?the second one?

maybe this helps: Appium - Parallel Execution (Grid)