Plug

Todo

Pull requests for documentation are welcome!

See miplug –help for usage.

miplug –help

miplug

A tool to command Xiaomi Smart Plug.

miplug [OPTIONS] COMMAND [ARGS]...

Options

--ip <ip>
--token <token>
-d, --debug

Environment variables

DEVICE_IP
Provide a default for --ip
DEVICE_TOKEN
Provide a default for --token

discover

Search for plugs in the network.

miplug discover [OPTIONS]

off

Power off.

miplug off [OPTIONS]

on

Power on.

miplug on [OPTIONS]

raw-command

Run a raw command.

miplug raw-command [OPTIONS] CMD [PARAMETERS]

Arguments

CMD

Required argument

PARAMETERS

Optional argument

status

Returns the state information.

miplug status [OPTIONS]