2
0

Added (basic) support for WiFi power plug

This commit is contained in:
Harald Rietman
2017-07-11 22:58:15 +02:00
parent a057c10f07
commit 9fee86f6d3
6 changed files with 279 additions and 4 deletions

View File

@@ -9,12 +9,14 @@ The following devices are currently supported:
* Button switch
* Motion sensor
* Power plug (zigbee)
* Power plug (wifi)
## Preperation
To receive the gateway json messages on your network you need to enable the developer mode, aka LAN mode in the gateway.
A UDP input node is needed to receive the json messages. An UDP output node to send command's to the gateway.
To control the Wifi-Plug, extensive use is made of the miio library created by [Andreas Holstenson](https://github.com/aholstenson/miio). Make sure to check his page for compatible devices.
## Install
@@ -27,6 +29,8 @@ npm install node-red-contrib-xiaomi-devices
From the Xiaomi configurator screen add your different devices by selecting the type of device and a readable description. The readable discription is used on the different edit screen of the nodes to easily select the device you associate to the node.
Note that the Wifi power plug is not configured through the configurator as it is not connected to the gateway.
The Xiaomi configurator screen with ease of use to configure your different devices.
![Xiaomi configurator in node-red](https://raw.githubusercontent.com/hrietman/node-red-contrib-xiaomi-devices/master/xiaomi-configurator.png)
@@ -57,5 +61,6 @@ Here an example of how to use the different nodes.
## Roadmap
* Support for other devices like the smart-socket WiFi
* ~~Support for other devices like the smart-socket WiFi~~ Done!
* Import (new) devices directly from the gateway