|  Developer
Updated on November 10, 2021

isItemState

  • This events arises when the of item is equal to the is set in this when block. Optionally it checks device armed status by logical AND operator with isItemState condition.
Edit
Field Type Required Description
blockOptions.method.args.item string + Argument declaration of item ID. The value should be in block with name.
blockOptions.method.args.value string + Argument declaration of item value. The value should be in block with name.
blockOptions.method.args.armed string Argument declaration of armed state of device is corresponding to current item. The value should be in block with name. This adds optional condition checks device armed status and is connected with isItemState condition by logical AND operator.
Edit
				
					"when" : [{
   "blockOptions":{
      "method":{
         "args":{
            "item":"item",
            "value":"value",
            "armed":"armed"
         },
         "name":"isItemState"
      }
   },
   "blockType":"when",
   "fields":[
      {
          "name":"item",
          "type":"item",
          "value" : "35656_5656_56"
      },
      {
          "name":"value",
          "type":"int",
          "value":0
      },
      {
          "name":"armed",
          "type":"bool",
          "value":true
      }
   ]
}]