npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-xiaomi-mi-robot-vacuum

v1.3.0

Published

Xiaomi Mi robot vacuum plugin for Homebridge.

Downloads

12

Readme

homebridge-xiaomi-mi-robot-vacuum

This is Xiaomi Mi Robot Vacuum plugin for Homebridge. Since Apple Homekit is not supporting vacuum cleaner device yet, this plugin will add the robot as Fan to your Home app.

mi-air-purifier

Features

  • Switch on / off. When off, it will returning to charging dock automatically.

  • Control suction power by adjust the fan speed.

    • Quiet (1 -38%)
    • Balance (39 - 60%)
    • Turbo (61 - 77%)
    • Max Speed (>77%)
  • Display battery level, and notify on low battery.

  • Display battery charging state.

Installation

  1. Install required packages.

    npm install -g homebridge-xiaomi-mi-robot-vacuum miio

  2. Remove Mi Robot Vaccum from your Mi Home app.

  3. Press "Power" and "Home" button simultaneously and hold for 3 seconds on your Mi Robot Vacuum to reset the Wi-Fi.

    mi-robot-reset-wifi

  4. It will advertised a new Wi-Fi spot similar torockrobo-vacumum-v1_xxxx.

  5. Connect your PC to that Wi-Fi network.

  6. Open command prompt or terminal. Run following command to discover the device:

    miio --discover --sync

    Notes: This will take about a minute or two.

  7. Wait until you get output similar to this:

    Device ID: 49466045
    Model info: Unknown
    Address: 192.168.8.1
    Token: 6f7a65786550386b755a6b526666744d via auto-token
    Support: Unknown
  8. Record down the value value for Token as we need it later.

  9. Disconnect from robot Wi-Fi network.

  10. Open Mi Home app and add the device as usual.

  11. In Mi Home app, get the Robot Vacuum IP address from General Settings > Network Info.

  12. Add these values to config.json.

      "accessories": [
        {
          "accessory": "MiRobotVacuum",
          "name": "Vacuum Cleaner",
          "ip": "IP_ADDRESS_OF_THE_ROBOT",
          "token": "TOKEN_DISCOVERED_FROM_STEP_7",
          "pause": false
        }
      ]

    ​Set "pause" to true or false to display or hide pause button for the vacuum.

  13. Restart Homebridge, and your Mi Robot Vacuum will be added to Home app.

License

See the LICENSE file for license rights and limitations (MIT).