Giter Club home page Giter Club logo

Comments (4)

aholstenson avatar aholstenson commented on August 12, 2024

Thanks for the report! Can I ask you to run two other commands for me and paste the results as a comment?

The first command will attempt to switch the plug on and the second one will fetch the state of the plug.

To switch the plug on: miio --control 351685 --command set_on --args '[]'
To get the state of the plug: miio --control 351685 --command get_prop --args '["on","usb_on"]'

If the first command works we'll know the right command to power the plug on or off and the second will indicate if we can actually fetch if the device is on or not.

from miio.

cnliri1 avatar cnliri1 commented on August 12, 2024

@aholstenson it works.

miio --control 351685 --command set_on --args '[]'
 INFO  Attempting to control 351685

 INFO  Got result:
0

miio --control 351685 --command get_prop --args '["on","usb_on"]'
 INFO  Attempting to control 351685

 INFO  Got result:
[
  true,
  true
]

from miio.

aholstenson avatar aholstenson commented on August 12, 2024

Thank you! I think I can see what has gone wrong now. I'll push a fix for the issue in this project in the next few days, but it'll require some updates in homebridge-miio before you will be able to use your plug properly.

from miio.

aholstenson avatar aholstenson commented on August 12, 2024

There is now a new release 0.12.0 that hopefully fixes this issue. Thanks for your help with reporting and debugging this issue!

from miio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.