Edit

Example 1: compareNumberRange operation of an item:

				
					{
   "blockType":"when",
      "blockOptions":{
         "method":{
            "name":"compareNumberRange",
            "args":{
               "item":"item",
               "comparator":"comparator",
               "startValue":"startValue",
               "endValue":"endValue"
            }
         }
      },
      "fields":[
         {
            "name":"item",
            "type":"item",
            "value":"5de64f6a70c7be0541cc0853"
         },
         {
            "name":"comparator",
            "type":"string",
            "value":"between"
         },
         {
            "name":"startValue",
            "type":"int",
            "value":51,
            "scale":"degrees"
         },
         {
            "name":"endValue",
            "type":"int",
            "value":100,
            "scale":"degrees"
         }
      ]
}				
			
Edit

Example 2: compareNumberRange 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 compareNumberRange 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":"compareNumberRange",
            "args":{
                "deviceGroup":"deviceGroup",
                "itemGroup":"itemGroup",
                "comparator":"comparator",
                "startValue":"startValue",
                "endValue":"endValue"
            }
        }
    },
    "fields":[
        {
            "name":"deviceGroup",
            "type":"device_group",
            "value":"5de64f6a70c7be0541cc0853"
        },
        {
            "name":"itemGroup",
            "type":"item_group",
            "value":"5de64f6a70c7be0541cc0854"
        },
        {
            "name":"comparator",
            "type":"string",
            "value":"between"
        },
        {
            "name":"startValue",
            "type":"int",
            "value":51,
            "scale":"degrees"
        },
        {
            "name":"endValue",
            "type":"int",
            "value":100,
            "scale":"degrees"
        }
    ]
}				
			

Available since: Group operations filtering is available since .