1# set_device 2 3## Description 4 5Sets the hardware device that will be used by subsequent actions. 6 7Many actions read from or write to a device. Initially this is the 8[device](device.md) that contains the regulator operation being performed, such 9as [configuration](configuration.md) or 10[sensor_monitoring](sensor_monitoring.md). 11 12Use "set_device" if you need to change the hardware device used by actions. For 13example, you need to check a bit in two different I/O expanders to detect a 14phase fault. 15 16## Property Value 17 18String containing the unique ID of the [device](device.md). 19 20## Return Value 21 22true 23 24## Example 25 26``` 27{ 28 "set_device": "io_expander2" 29} 30``` 31