|  Developer
Updated on May 24, 2022

setItemValue

  • Set the value for the specific item.
Edit
Field Type Required Description
blockOptions.method.args.item string + Argument declaration of of Item ID. The name is . The type is .
blockOptions.method.args.value string + Argument declaration of Value should be set to item when event arises. The name is . The type is .
Edit
Edit
				
					"then" : [{
   "blockOptions":{
      "method":{
         "args":{
            "item":"item",
            "value":"value"
         },
         "name":"setItemValue"
      }
   },
   "blockType":"then",
   "delay" : {
       "seconds": 12,
       "minutes": 30,
       "hours": 1,
       "days": 0
   },
   "fields":[
      {
         "name":"item",
         "type":"item",
         "value" : "897607_32771_1"
      },
      {
         "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"
}