Skip to content

Commit 4574c08

Browse files
syssiballoob
authored andcommitted
Documentation of Xiaomi Smart WiFi Socket and Power Strip component (home-assistant#3248)
* Documentation for Xiaomi Smart WiFi Socket and Smart Power Strip component added. * Section "Retrieving the Access Token" has a central place now. * Spelling & grammar fixed. * Broken link fixed. HA version updated. * Component renamed: switch.xiaomi_plug -> switch.xiaomi_miio. * Update switch.xiaomi_miio.markdown
1 parent 1d04a73 commit 4574c08

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
layout: page
3+
title: "Xiaomi Smart WiFi Socket and Smart Power Strip"
4+
description: "Instructions how to integrate your Xiaomi Smart WiFi Socket aka Plug or Xiaomi Smart Power Strip within Home Assistant."
5+
date: 2017-08-26 10:18
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: xiaomi.png
11+
ha_category: Switch
12+
ha_version: 0.56
13+
ha_iot_class: "Local Polling"
14+
---
15+
16+
The `xiaomi_miio` switch platform allows you to control the state of your Xiaomi Smart WiFi Socket aka Plug or Xiaomi Smart Power Strip.
17+
18+
Currently, the supported features are `on`, `off`. If the device provides the current load, it will be reported.
19+
20+
Please follow the instructions on [Retrieving the Access Token](/components/vacuum.xiaomi/#retrieving-the-access-token) to get the API token to use in the `configuration.yaml` file.
21+
22+
To add a plug to your installation, add the following to your `configuration.yaml` file:
23+
24+
```yaml
25+
# Example configuration.yaml entries
26+
switch:
27+
- platform: xiaomi_miio
28+
name: Original Xiaomi Mi Smart WiFi Socket
29+
host: 192.168.130.59
30+
token: YOUR_TOKEN
31+
```
32+
33+
Configuration variables:
34+
- **host** (*Required*): The IP of your plug.
35+
- **token** (*Required*): The API token of your plug.
36+
- **name** (*Optional*): The name of your plug.

0 commit comments

Comments
 (0)