the example code snippets in the doc show how to list devices. It could be nice to have et least one example of how to control a device.