|  Developer
Updated on May 16, 2022

scripts/add_device

  • Manually add specific device.
Edit
Field format is described in core.add_device command.
Edit

Edit
Edit
				
					{
    "method": "extensions.plugin.run",
    "id": "_ID_",
    "params": {
        "script": "HUB:test_plugin/scripts/add_device",
        "scriptParams": {
            "name": "TestSwitch",
            "category": "switch",
            "subcategory": "interior_plugin",
            "type": "switch.outlet",
            "device_type_id": "test",
            "battery_powered": false
        }
    }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {}
}