|  Developer
Updated on March 29, 2023

hub.item.value.set (multiply items with one value)

Connection type:
Permissions:

  • Set multiply items with one value. Uses multicast request for setting devices
Edit
Field Type Required Description
ids array of strings + List of item ids to send multicast request
value depends on item type + New item value.
scale depends on item type New item value scale. If the scale field is present, the firmware will work with the obtained value in accordance with the specified scale. If the scale field is NOT present, the firmware will work with the obtained value in accordance with the scale from a hub configuration or an item.
source object Optional. Contains information about the operation source.
Edit
Edit
Broadcast Description
hub.item.updated Informs about item changed
Edit
Edit
request_multicast:
				
					{
    "method": "hub.item.value.set",
    "id": "<request_id>",
    "params": {
        "ids" : ["5cf0dc8c7f000068d223e88a", "5cf0dc8c7f000068d223e88b"],
        "value" : true
    }
}				
			
Edit
				
					{
    "api": "1.0",
    "error": null,
    "id": "_ID_",
    "result": {}
}				
			
Edit
Situation Error code Description Error code
Item scale cannot be converted to target scale -32602 The specified scale cannot be used rpc.params.scale.invalid
Bus send message operation timeout -32602 Bus request timeout
Bus incorrect message size (more then 100K) -32602 Bus message is too long
Bus data transfer another error -32602 Bus internal error