python-overkiz-api icon indicating copy to clipboard operation
python-overkiz-api copied to clipboard

suggestion to add at least one example of how to control a device

Open klausfmh opened this issue 10 months ago • 2 comments

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.

klausfmh avatar Feb 02 '25 20:02 klausfmh

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 :|

chrishowell avatar Mar 14 '25 00:03 chrishowell

Do you have more information about your device? This should not be required, and I haven't seen this notation before.

iMicknl avatar Mar 14 '25 13:03 iMicknl