python-overkiz-api
python-overkiz-api copied to clipboard
suggestion to add at least one example of how to control a device
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.
A LOT of trial and error, and I've found the magic.
exec_id = await client.execute_command(device.device_url, Command(OverkizCommand.CLOSE, [0]))
Without specifying that [0] as a parameter for the commands that don't take any parameters, I just received UNSPECIFIED_ERRORs with no error text, VERY unhelpful :|
Do you have more information about your device? This should not be required, and I haven't seen this notation before.