Skip to content

Get possible device commands/arguments via API #846

Description

@fhempy

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:

for device_class in DeviceGroupMeta.device_classes:
    print(device_class.get_device_group().name + ", cmds: " + str(device_class.get_device_group().commands.keys()))

It would be great if you could provide an API to get all possible commands and options for a device. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions