This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.
Android (copied from here )
You first need to enable local network functions by using the Android Mi Home App https://play.google.com/store/apps/details?id=com.xiaomi.smarthome :
- Install the App on a Android device
- Make sure you set your region to:
Mainland China
undersettings -> Locale
- at time of writing this seems to be required. - Mainland China and language can set on English
- Select your Gateway in
Mi Home
- Then the 3 dots at the top right of the screen
- Then click on about
- Tap the version (2.27 is the current Android version as of 2 June 2017) number at the bottom of the screen repeatedly
- You should see now 2 extra options listed in English (was Chinese in earlier versions) until you did now enable the developer mode. [ if not try all steps again! ]
- Choose the first new option
- Then tap the first toggle switch to enable LAN functions. Note down the password (
29p9i40jeypwck38
in the screenshot). Make sure you hit the OK button (to the right of the cancel button) to save your changes. - If you change here something, you lose your password!
You first need to enable local network functions by using the iOS Mi Home App iosApp Mi Install the App on a iOS device:
- Make sure you set your region to:
Mainland China
undersettings -> Locale
- required for the moment. Mainland China
and language can set on English- Select your Gateway in Mi Home
- Then the 3 dots at the top right of the screen
- Then click on about
- Tap under Tutorial menu(on the blank part) repeatedly
- You should see now 3 extra options listed in Chinese until you did now enable the developer mode. [ if not try all steps again! ]
- Choose the second new option
- Then tap the first toggle switch to enable LAN functions. Note down the password (
29p9i40jeypwck38
in the screenshot). Make sure you hit the OK button (to the right of the cancel button) to save your changes. - If you change here something, you lose your password!
An adapter of version 1.3.xx or higher allows you to control the air conditioner connected to ioBroker using acpartner.v3 (KTBL11LM), (it will probably work with version v2 too, but the developer had not hardware to test it, if anyone tries, let us know).
The following states have been added to control the air conditioner:
The process of enabling LAN access and receiving GATEWAY KEY can be of some difficulty, the process is described below.
To start using:
- Install the Aqara Home application on your smartphone (https://play.google.com/store/apps/details?id=com.lumiunited.aqarahome),
- register in the Aqara Home application,
- select the "Mainland China" region in the settings,
- add acpartner to the Aqara Home app,
- update the acpartner firmware (click on the air conditioning icon, then the three dots in the upper right corner, then click the lowest point “Software Version”), as a result, Aqara firmware will be installed on acpartner (when using the MiHome application it was from Xiaomi),
- register on the site https://opencloud.aqara.cn/ with the same password and login as in the Aqara Home application (registration confirmation may take some time, I had about 6 hours),
- log in to the console https://opencloud.aqara.cn/console/
- create an application on the tab https://opencloud.aqara.cn/console/app-management with the type "Device access" (I’m not sure about the need for this item (because I did it yet), so you can try to skip it),
- then go to the console https://opencloud.aqara.cn/console and select Gateway LAN on the left, fill in the "Aqara account" and "Password" fields and click the Submit button - you will see your Air Conditioning Controller and the network protocol enable button by clicking to which you allow LAN access and you will see the network key, which is necessary to configure the adapter in ioBroker.
- in the adapter settings, enter the key obtained above.
You can use small button on temperature sensor to trigger double Press
event. Just press twice within 5 seconds. You can set this interval in settings, but do not set it over 10 seconds.
In case of device does not recognized by its Model name it is possible to try to add device using SID. Currently it is applicable for Aqara 2 channels relay control module which has empty model name due to some problems in Gateway firmware.
In order to add device by SID, open DEVICE SID
tab in adapter settings and specify SID and device name from the supported devices list below.
For Aqara relay module it should be specified like this:
gateway
- Xiaomi RGB Gatewayacpartner.v3
- Aqara AC Partner (KTBL11LM)sensor_ht
- Xiaomi Temperature/Humidityweather.v1
- Xiaomi Temperature/Humidity/Pressureswitch
- Xiaomi Wireless Switchsensor_switch.aq2
- Xiaomi Aqara Wireless Switch Sensorsensor_switch.aq3
- Xiaomi Aqara Wireless Switch Sensorplug
- Xiaomi Smart Plug86plug
- Xiaomi Smart Wall Plug86sw2
- Xiaomi Wireless Dual Wall Switch86sw1
- Xiaomi Wireless Single Wall Switchnatgas
- Xiaomi Mijia Honeywell Gas Alarm Detectorsmoke
- Xiaomi Mijia Honeywell Fire Alarm Detectorctrl_ln1
- Xiaomi Aqara 86 Fire Wall Switch One Buttonctrl_ln1.aq1
- Xiaomi Aqara Wall Switch LNctrl_ln2
- Xiaomi 86 zero fire wall switch double keyctrl_ln2.aq1
- Xiaomi Aqara Wall Switch LN double keyctrl_neutral2
- Xiaomi Wired Dual Wall Switchctrl_neutral1
- Xiaomi Wired Single Wall Switchcube
- Xiaomi Cubesensor_cube.aqgl01
- Xiaomi Cubemagnet
- Xiaomi Door Sensorsensor_magnet.aq2
- Xiaomi Aqara Door Sensorcurtain
- Xiaomi Aqara Smart Curtainmotion
- Xiaomi Motion Sensorsensor_motion.aq2
- Xiaomi Aqara Motion Sensorsensor_wleak.aq1
- Xiaomi Aqara water sensorctrl_ln2.aq1
- Xiaomi Aqara Wall Switch LN (Double)remote.b186acn01
- Xiaomi Aqara Wireless Remote Switchremote.b186acn02
- Xiaomi Aqara Wireless Remote Switchremote.b286acn01
- Xiaomi Aqara Wireless Remote Switch (Double Rocker)remote.b286acn02
- Xiaomi Aqara Wireless Remote Switch (Double Rocker)remote.b1acn01
- Xiaomi Aqara Wireless Remote Switchvibration
- Xiaomi vibration Sensorwleak1
- Xiaomi Aqara Water Sensorlock_aq1
- Xiaomi Lockrelay.c2acn01
- Aqara 2 channels relay control module (using SID number)
- (drtsb) Added two new aqara devices and some missing icons
- (VLGorskij) fixed the error messages for some states
- (Apollon77) Catch some errors reported by Sentry and users
- (Apollon77) Prevent crash case (Sentry IOBROKER-MIHOME-A)
- (VLGorskij) Added new device QBKG24LM
- (Apollon77) Fix crash cases (Sentry IOBROKER-MIHOME-1..4)
- (Alan) Fixed the crash for non existing attributes
- (bluefox) Sentry is activated
- (VLGorskij) Added ac-partner.v3 support
- (bluefox) Added compact mode
- (Diginix) Fixed calculation for sensor's battery percentage
- (algar42) Ability to add devices with missing model by their SID (e.g. for Aqara two-channel relay)
- (Diginix) Fixed pressure range and values of Aqara weather sensor
- (SchumyHao) Change curtain and gateway light role that making them can be detected by type-detector
- (SchumyHao) Add several devices support for protocol 2.0.x
- (Diginix) Improved calculation for sensor's battery percentage
- (Vanwards) Added long click for Aquara wall switch
- (SchumyHao) Add Chinese support
- (goohnie) New wall switch was added
- (bluefox) refactoring
- (bluefox) New button switch was added
- (bluefox) Fixed the creation of new devices
- (bluefox) New devices added: sensor_switch.aq3, ctrl_ln1.aq1, ctrl_ln2.aq1, sensor_cube.aqgl01, remote.b286acn01, vibration, wleak1, lock_aq1
- (bluefox) Names will be taken from gateway
- (bluefox) The heartbeat timeout and the re-connection interval settings were added
- (bluefox) Added new Aqara cube sensor
- (bluefox) Xiaomi Aqara Wall Switch LN Double was added
- (bluefox) The alarm state was fixed.
- (bluefox) Invalid temperature values will be ignored
- (bluefox) Ignore unknown state of sensors
- (bluefox) Do not overwrite the names
- (bluefox) Ready for Admin3
- (bluefox) Allow multiple mihome gateways
- (bluefox) Add aqara water sensor
- (bluefox) Remove "." from id of the device
- (bluefox) Set after 300ms doublePress to false by Temperature Sensor\nAllow control of Plug
- (bluefox) Implement double click on temperature sensor
- (bluefox) fix battery level
- (bluefox) add cube
- (bluefox) remove voltage by gateway
- (bluefox) Initial commit
The MIT License (MIT)
Copyright (c) 2017-2022 bluefox dogafox@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.