|  Developer
Updated on May 16, 2022

scripts/add_setting

  • Manually add specific setting.
Edit
Field format is described in core.add_setting command.
Edit

Edit
Edit
				
					{
    "method": "extensions.plugin.run",
    "id": "_ID_",
    "params": {
        "script": "HUB:test_plugin/scripts/add_setting",
        "scriptParams": {
            "device_id": "6036382146aaf0042145b1e4",
            "value_type": "int",
            "value": 15,
            "label": {
                "text": "Test label"
            },
            "description": {
                "text": "Test description"
            }
        }
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}