miplug command not found

In this troubleshooting guide we learn how to fix miplug command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

miplug: command not found

or when using sudo you get the following error message

sudo: miplug: command not found

Solutions to miplug: command not found

How To Fix miplug: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu miplug is provided by miio-tools package.

miio-tools is:

This tool allows one to interface with devices using Xiaomi’s miIO protocol.

  • miceil (command Xiaomi Philips LED Ceiling Lamp)
  • mieye (command Xiaomi Philips Eyecare Smart Lamp 2)
  • miiocli (command various appliances)
  • miio-extract-tokens (Reads device information out from an sqlite3 DB)
  • miplug (command Xiaomi Smart Plug)
  • mirobo (command Xiaomi Vacuum robot)

To fix this problem, we can install more using the command below.

sudo apt-get -y install miio-tools

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install miio-tools.

sudo apt -y install miio-tools

Or if you have aptitude installed you can use the following command.

sudo aptitude install miio-tools

Summary

In this tutorial we learn how to fix miplug command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.