|  Developer
Updated on March 28, 2023

groupSetItemValue

  • Set the value in every item that matches the device/item group with a new value. The value would be set for every item present at the moment the action is actually started. It will set the value passed through this command to a set of items present in the device/item group.
Edit
Field Type Required Description
blockOptions.method.args.deviceGroup External Reference, Device Group + Device Group identifier. Argument declaration of DeviceGroup ID
blockOptions.method.args.itemGroup External Reference, Item Group + Item Group Identifier. Argument declaration of ItemGroup ID
blockOptions.method.args.valueType enum, Item Value Types Item Value Type to limit scope of an action. Optional. Should not be used with constants, only with expressions.
blockOptions.method.args.value any + Argument declaration of Value should be set to item when event arises. The name is . The type is one of the .
Edit
Edit
				
					{
   "blockOptions": {
      "method": {
         "args": {
            "deviceGroup": "deviceGroup",
            "itemGroup": "itemGroup",
            "value": "value"
         },
         "name": "groupSetItemValue"
      }
   },
   "blockType": "then",
   "fields": [
      {
         "name": "deviceGroup",
         "type": "device_group",
         "value": "device_group_id"
      },
      {
         "name": "itemGroup",
         "type": "item_group",
         "value": "item_group_id"
      },
      {
         "name": "value",
         "type": "int",
         "value": 10
      }
   ]
}				
			
Edit

Examples of possible values:

				
					{
    "name":"value",
    "type":"bool",
    "value": false
}				
			
				
					{
    "name":"value",
    "type":"token",
    "value": "idle_off"
}				
			
				
					{
    "name":"value",
    "type":"power",
    "value": 30,
    "scale": "watt"
}				
			
				
					{
    "name":"value",
    "type": "float",
    "value": 5.0
}				
			
				
					{
    "name":"value",
    "type": "string",
    "value": "example"
}				
			

Note: Available since advanced_scenes/1.63.