Saymi - A Mi Home device API command line interface

In case you’re interested. I made this project to simplify interaction with our Mi Home devices. Let me know what do you think.


A simple API command line interface for your Mi Home devices. Built on top of an awesome project: miio


Before installing you need at least nodejs 6.6+ and npm 4.0+.

  npm install -g saymi

For more info, you can check out the repository here.

1 Like

Is the issue of having more than two Mi devices, mi wifi plug in particular, still persist on this tool?

Hi, thanks for this interesting project.
I own an Xiaomi Airpurifier 2 and a gateway with several sensors attached to it.

I installed saymi on my pi but when I start the discovery, nothing happens. It just sits there and does not find my Airpurifier.
There is no error.
What am I missing?

I don’t have enough mi devices at the moment. Unfortunately, I can’t replicate the issue. But I think it will not be an issue since it will fire 1 command per device then disconnected after each command.

But if you can test it, I’ll appreciate it. Let me know how it goes.

Just tested, it’s working fine on my Rpi 3.

May be these pointers will help you:

  • Make sure you’re using node 6.6+ and npm4+
  • Make sure you’re using the latest Mi firmwares.
  • Make sure you’re running it inside the same LAN.
  • Check this link for more info too: Issue #31

I’m glad you can share, thank you, there are many Mi devices still need to obtain the token can be achieved through the capture.

I agree. You can contribute to the repository too, if you like :slight_smile:

Added support for Mi Humidifier.