You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
4.2 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

![Logo](admin/mihome.png)
# 适用于小米米家居智能家居的适配器
==============
[![NPM version](http://img.shields.io/npm/v/yunkong2.mihome.svg)](https://www.npmjs.com/package/yunkong2.mihome)
[![Downloads](https://img.shields.io/npm/dm/yunkong2.mihome.svg)](https://www.npmjs.com/package/yunkong2.mihome)
[![NPM](https://nodei.co/npm/yunkong2.mihome.png?downloads=true)](https://nodei.co/npm/yunkong2.mihome/)
## 要求
### Android (copied from [here](http://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)) )
您首先需要使用Android Mi Home应用程序https://play.google.com/store/apps/details?id=com.xiaomi.smarthome
启用本地网络功能:
- 在Android设备上安装应用程序
- 确保将您所在的地区设置为:中国大陆设置 - >区域设置 - 在撰写本文时,似乎需要这样做。
- 中国大陆和语言可以用英语
- 在Mi Home中选择您的网关
- 然后是屏幕右上角的3个点
- 然后点击about
- 重复点击屏幕底部的版本2.27是2017年6月2日当前的Android版本编号
- 您现在应该看到以英语列出的2个额外选项在早期版本中是中文直到您现在启用开发人员模式。[如果不再尝试所有步骤!]
- 选择第一个新选项
- 然后点击第一个切换开关以启用LAN功能。记下密码截图中为29p9i40jeypwck38。确保按下确定按钮取消按钮右侧以保存更改。
- 如果您在这里更改某些内容,则会丢失密码!
![android](img/mihome-settings.png)
### iOS
您首先需要使用iOS Mi Home App iosApp Mi 在iOS设备上安装应用程序来启用本地网络功能
- 确保将您的地区设置为:中国大陆设置 - >区域设置 - 目前需要。
- 中国大陆和语言可以用英语
- 在Mi Home中选择您的网关
- 然后是屏幕右上角的3个点
- 然后点击about
- 重复点击Tutorial菜单在空白部分
- 您现在应该看到中文列出的3个额外选项直到您现在启用开发人员模式。[如果不再尝试所有步骤!]
- 选择第二个新选项
- 然后点击第一个切换开关以启用LAN功能。记下密码截图中为29p9i40jeypwck38。确保按下确定按钮取消按钮右侧以保存更改。
- 如果您在这里更改某些内容,则会丢失密码!
## 用法
您可以使用温度传感器上的小按钮来触发“双按”事件。只需在5秒钟内按两次。您可以在设置中设置此间隔但不要将其设置超过10秒。
### 支持的设备
- gateway - Xiaomi RGB Gateway
- sensor_ht - Xiaomi Temperature/Humidity
- weather.v1 - Xiaomi Temperature/Humidity/Pressure
- switch - Xiaomi Wireless Switch
- sensor_switch.aq2 - Xiaomi Aqara Wireless Switch Sensor
- sensor_switch.aq3 - Xiaomi Aqara Wireless Switch Sensor
- plug - Xiaomi Smart Plug
- 86plug - Xiaomi Smart Wall Plug
- 86sw2 - Xiaomi Wireless Dual Wall Switch
- 86sw1 - Xiaomi Wireless Single Wall Switch
- natgas - Xiaomi Mijia Honeywell Gas Alarm Detector
- smoke - Xiaomi Mijia Honeywell Fire Alarm Detector
- ctrl_ln1 - Xiaomi Aqara 86 Fire Wall Switch One Button
- ctrl_ln1.aq1 - Xiaomi Aqara Wall Switch LN
- ctrl_ln2 - Xiaomi 86 zero fire wall switch double key
- ctrl_ln2.aq1 - Xiaomi Aqara Wall Switch LN double key
- ctrl_neutral2 - Xiaomi Wired Dual Wall Switch
- ctrl_neutral1 - Xiaomi Wired Single Wall Switch
- cube - Xiaomi Cube
- sensor_cube.aqgl01 - Xiaomi Cube
- magnet - Xiaomi Door Sensor
- sensor_magnet.aq2 - Xiaomi Aqara Door Sensor
- curtain - Xiaomi Aqara Smart Curtain
- motion - Xiaomi Motion Sensor
- sensor_motion.aq2 - Xiaomi Aqara Motion Sensor
- sensor_wleak.aq1 - Xiaomi Aqara water sensor
- ctrl_ln2.aq1 - Xiaomi Aqara Wall Switch LN (Double)
- remote.b286acn01 - Xiaomi Aqara Wireless Remote Switch (Double Rocker)
- remote.b1acn01 - Xiaomi Aqara Wireless Remote Switch
- vibration - Xiaomi vibration Sensor
- wleak1 - Xiaomi Aqara Water Sensor
- lock_aq1 - Xiaomi Lock
## Changelog
### 1.2.3 (2018-10-23)
- (goohnie) New wall switch was added