|  Developer
Updated on May 16, 2022

scripts/add_item

  • Manually add specific item.
Edit
Field format is described in core.add_item command.
Edit

Edit
Edit
				
					{
    "method": "extensions.plugin.run",
    "id": "_ID_",
    "params": {
        "script": "HUB:test_plugin/scripts/add_item",
        "scriptParams": {
            "name": "switch",
            "value_type": "bool",
            "value": false,
            "has_getter": true,
            "has_setter": true,
            "device_id": "5f16acb446aaf03ea2095e03"
        }
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}