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