Skip to content
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

Add miot simulator #1539

Merged
merged 1 commit into from Sep 26, 2022
Merged

Add miot simulator #1539

merged 1 commit into from Sep 26, 2022

Commits on Sep 26, 2022

  1. Add miot simulator

    This adds a simple, full-functioning miot simulator based on miotspec files, making it possible to test both python-miio and downstream implementations.
    The simulator keeps an internal state constructed based on the defined properties.
    The values are currently randomly generated based on the constraints the spec file does.
    
    The simulator implements the main commands a miot device uses:
    * get_properties (get property values)
    * set_properties (set property values)
    * action (call actions, noop returning success)
    * miIO.info
    
    Additionally, the available services and properties can be dumped using `dump_services` and `dump_properties` commands.
    
    Using `miiocli devtools miot-simulator` requires defining the model (`--model`) and the path to a miotspec json file (`--file`.
    rytilahti committed Sep 26, 2022
    Configuration menu
    Copy the full SHA
    cb07abe View commit details
    Browse the repository at this point in the history