Example: compare value of any item that matches the device/item group: Define a device group, define an item group, make a condition block to make a comparison of an hub.item.updated broadcast with the condition value.
The comparison is stateles s. It doesn’t have information about previous value of any item in the group.
Comparison type: stateless.
"when" :{
"blockOptions": {
"method": {
"args": {
"deviceGroup": "deviceGroup",
"itemGroup":"itemGroup",
"value": "value"
},
"name": "isItemState"
}
},
"blockType": "when",
"fields": [
{
"name": "deviceGroup",
"type": "device_group",
"value": "6388c2020000005778a83997"
},
{
"name":"itemGroup",
"type":"item_group",
"value":"5de64f6a70c7be0541cc0854"
},
{
"name": "value",
"type": "bool",
"value": true
}
]
}