Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
indigo_2025.1_documentation:device_class [2026/03/10 22:26] – [Group With Device] davel17indigo_2025.1_documentation:device_class [2026/03/10 22:43] (current) – [Ungroup With Device] davel17
Line 727: Line 727:
  
 === Group With Device === === Group With Device ===
-To group two or more devices together, use the ''//indigo.device.groupWithDevice()//'' command. The parameters are the Indigo Device object IDs of the devices to be grouped. +To group two or more devices together, use the ''//indigo.device.groupWithDevice()//'' command. The parameters are the Indigo Device object IDs of the devices to be grouped. **Note if you have the device dialog UI openit will not dynamically update, and you shouldn’t call either method if the device factory UI is open.** 
-<code> +
-indigo.device.groupWithDevice(devsomeOtherDev)  # group dev with another device +
-</code>+
  
-For example, if you want to group devices 123 and 456, you would use ''//indigo.device.groupWithDevice(123456)//''. There is no message printed to the events log if the devices grouped together successfully. If you want to add device 789 to the group, you would use ''//indigo.device.groupWithDevice(456, 789)//''. This is a great way to bring together different devices that have a common threadbut bear in mind that it's best not to try to group too many devices together.+^  Command Syntax Examples 
 +<code>indigo.device.groupWithDevice(dev_1dev_2 # group dev with another device</code> 
 + 
 +^  Parameters  ^^^^ 
 +^  Parameter  ^  Required  ^  Type  ^  Description 
 +|direct parameter (dev_1)|  Yes  |  integer  |id, name or instance of a device that will belong to the group.
 +|direct parameter (dev_2)|  Yes  |  integer  |idname or instance of another device that will belong to the group.|
  
-See also ''//indigo.device.ungroupDevice()//'' and ''//indigo.device.getGroupList()//''.+For example, if you want to group devices 123 and 456, you would use ''//indigo.device.groupWithDevice(123, 456)//''. There is no message printed to the events log if the devices grouped together successfully. If you want to add device 789 to the group, you would use ''//indigo.device.groupWithDevice(456, 789)//''. This is a great way to bring together different devices that have a common thread, but bear in mind that it's best not to try to group too many devices together. See also ''//indigo.device.ungroupDevice()//'' and ''//indigo.device.getGroupList()//''.
 === Move To Folder === === Move To Folder ===
  
Line 853: Line 856:
  
 === Ungroup With Device === === Ungroup With Device ===
 +If you want to remove a device from a group, use the ''//indigo.device.ungroupDevice()//'' command. Use this command with the ID of the device you want removed from the group.**Note if you have the device dialog UI open, it will not dynamically update, and you shouldn’t call either method if the device factory UI is open.**
  
 +^  Command Syntax Examples  ^
 <code> <code>
   indigo.device.ungroupDevice(dev)  # ungroup dev   indigo.device.ungroupDevice(dev)  # ungroup dev
 </code> </code>
  
-See also ''//indigo.device.groupWithDevice()//'' and ''//indigo.device.getGroupList()//''.+^  Parameters  ^^^^ 
 +^  Parameter  ^  Required  ^  Type  ^  Description 
 +|direct parameter|  Yes  |  integer  |id, name or instance of the device to be removed from the group.| 
 +If successful, nothing will be printed to the events log. See also ''//indigo.device.groupWithDevice()//'' and ''//indigo.device.getGroupList()//''.
 === Unlock === === Unlock ===
  
  • /www/perceptive/wiki/data/attic/indigo_2025.1_documentation/device_class.1773181614.txt.gz
  • Last modified: 2026/03/10 22:26
  • by davel17