-
-
Notifications
You must be signed in to change notification settings - Fork 568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get possible device commands/arguments via API #846
Comments
Hi, how about using annotations (e.g.,
It would be great if there were a nicer API for this as well as for getting the available commands, so contributions are welcome! |
Thanks for the hint with annotations. I could finally manage to get everything I need via annotations. Find my implementation here: I'm using inspect to get all details of the function including parameters. There are still a few methods which don't use annotations for their parameters. I'm going to create PRs if I come across one. |
Glad you got it working, PRs to add annotations are welcome! :-) In the future, I think that the |
Hi,
I want to use python-miio via API. To always support all integrated devices I would like to do a generic integration where I would like to get all possible commands via API. Is that possible?
I found a way to get device type and the possible commands, but not the options:
It would be great if you could provide an API to get all possible commands and options for a device. Thanks!
The text was updated successfully, but these errors were encountered: