xiaomi_miio switch platform allows you to control the state of your Xiaomi Smart WiFi Socket aka Plug or Xiaomi Smart Power Strip.
Currently, the supported features are
off. If the device provides the current load, it will be reported.
Please follow the instructions on Retrieving the Access Token to get the API token to use in the
To add a plug to your installation, add the following to your
# Example configuration.yaml entries switch: - platform: xiaomi_miio name: Original Xiaomi Mi Smart WiFi Socket host: 192.168.130.59 token: YOUR_TOKEN
- host (Required): The IP of your plug.
- token (Required): The API token of your plug.
- name (Optional): The name of your plug.