Example 2: string operation of any item that matches the device/item group with operation type:
Define a device group, define an item group, make a condition block to make a string operation of an hub.item.updated broadcast with the operation value.
The operation is stateless. It doesn’t have information about previous value of any item in the group.
Operation type: stateless
{
"blockType":"when",
"blockOptions":{
"method":{
"name":"stringOperation",
"args":{
"deviceGroup":"deviceGroup",
"itemGroup":"itemGroup",
"operation": "operation",
"value": "value"
}
}
},
"fields":[
{
"name":"deviceGroup",
"type":"device_group",
"value":"5de64f6a70c7be0541cc0853"
},
{
"name":"itemGroup",
"type":"item_group",
"value":"5de64f6a70c7be0541cc0854"
},
{
"name": "operation",
"type": "string",
"value": "contain"
},
{
"name": "value",
"type": "string",
"value": "operateOnThis"
}
]
}