# \[APP\] Aqara & Xiaomi Smart Home - Simplify your life with a smarter home

**URL:** <https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156>\
**Category:** Apps\
**Tags:** app, zigbee\
**Created:** [August 22, 2018, 8:18pm UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156 "2018-08-22T20:18:09Z")\
**Posts on this page:** 20\
**Page:** 161

<div class="post-metadata">

**Author:** ![holgerr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/holgerr/32/44451_2.png) [@holgerr](https://community.homey.app/u/holgerr)\
**Post date:** [September 27, 2021, 4:48pm UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3396 "2021-09-27T16:48:13Z")

</div>

Just to confirm, I get the same error on the single device.

---

<div class="post-metadata">

**Author:** ![holgerr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/holgerr/32/44451_2.png) [@holgerr](https://community.homey.app/u/holgerr)\
**Post date:** [September 27, 2021, 4:51pm UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3397 "2021-09-27T16:51:34Z")

</div>

It can be added, but when trying to use it, it reports “subDeviceId is not defined”

---

<div class="post-metadata">

**Author:** ![TedTolboom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tedtolboom/32/12081_2.png) [@TedTolboom](https://community.homey.app/u/TedTolboom)\
**Post date:** [September 27, 2021, 5:09pm UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3398 "2021-09-27T17:09:26Z")

</div>

> [@Felho](#):
>
> not work for me single device. When I add say device is unavaible. And duble switch is separete it is normal? lett and right switch, but duble is work fine.here diagnostic report 52be5d06-3f28-4989-9f26-319aa250694a

> [@TedTolboom](#):
>
> Thanks for reporting; looking into it ATM.

> [@holgerr](#):
>
> It can be added, but when trying to use it, it reports “subDeviceId is not defined”

Found the issue and fixed it in v1.3.5, currently available in the [test environment of the app store](https://homey.app/a/com.xiaomi-mi/test/)  
It should start working after updating, otherwise please remove the switch and re-add.

---

<div class="post-metadata">

**Author:** ![Felho](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/felho/32/38916_2.png) [@Felho](https://community.homey.app/u/Felho)\
**Post date:** [September 27, 2021, 5:29pm UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3399 "2021-09-27T17:29:32Z")

</div>

@TedTolboom ok I tested and now work.

---

<div class="post-metadata">

**Author:** ![Felho](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/felho/32/38916_2.png) [@Felho](https://community.homey.app/u/Felho)\
**Post date:** [September 28, 2021, 6:07am UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3400 "2021-09-28T06:07:59Z")

</div>

I thought if it worked on electricity H1 switch (L/ LN) devices that will be workd router mode. But it is work enddevices. Is it good and I think wrong?

---

<div class="post-metadata">

**Author:** ![TedTolboom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tedtolboom/32/12081_2.png) [@TedTolboom](https://community.homey.app/u/TedTolboom)\
**Post date:** [September 28, 2021, 8:16am UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3401 "2021-09-28T08:16:08Z")

</div>

Rightfully noted. It is a known ‘issue’ with the H1 switches, also with other automation systems, that they report as EndDevice, instead of router. I will need to check with Athom if I can overrule the reported deviceType from within the app.

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [September 28, 2021, 4:42pm UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3402 "2021-09-28T16:42:53Z")

</div>

After I upgraded to Homey Pro and a zigbee reset Homey has been running smoothly.

I decided to re-add some Aqara stuff, that I had not included after the latest zigbee reset. In this case a double wireless switch ((WXKG02LM). One would not be included at all, the second one included nicely after some tries (and to a zigbee router, not to Homey directly).

I created a flow to switch on a ventilator - the flow works when tested - but the switch does not trigger the flow.

 ![Schermafbeelding 2021-09-28 om 18.42.17](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/d/1dbbd6dc4f2a7d49c2d2dfd4827135f39bd7d4eb.jpeg)

Is this a know issue?

PS  
Tried both left and right switch as a trigger, to no avail.

---

<div class="post-metadata">

**Author:** ![Felho](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/felho/32/38916_2.png) [@Felho](https://community.homey.app/u/Felho)\
**Post date:** [September 28, 2021, 7:54pm UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3403 "2021-09-28T19:54:33Z")

</div>

I look forward to your reply. It would be good if it could be a router already because of the stability of the network

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [September 28, 2021, 11:09pm UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3404 "2021-09-28T23:09:49Z")

</div>

What happens if you remove the AND condition temporary?  
Start testing it as simple as possible.

---

<div class="post-metadata">

**Author:** ![Felho](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/felho/32/38916_2.png) [@Felho](https://community.homey.app/u/Felho)\
**Post date:** [September 29, 2021, 6:56am UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3405 "2021-09-29T06:56:12Z")

</div>

Hi @TedTolboom I add new H1 single wall switch (L) toilet. If I on the switch on automatic fan. Normal mode if I off the light after 3 minutes off fan. But now not stopping, if I delete the device homey the fan stop again 3 minutes. Can this fix or not. here diagnostic report: ef31d3ff-4bc2-4ce8-934d-c49fcc7e3f9f thanks

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [September 29, 2021, 8:44am UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3406 "2021-09-29T08:44:13Z")

</div>

Thanks for the suggestion @Peter_Kawa

Made it like this:

 ![Schermafbeelding 2021-09-29 om 10.42.18](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/b/db7167f19583d9e49b63cd240188b58b51450a5a.jpeg)

Still does not work with the switch (but the test works).

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [September 29, 2021, 9:34am UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3407 "2021-09-29T09:34:25Z")

</div>

YW, Ernst.  
The test btn just triggers the flow, it can’t check the switch.  
Idk what to check next. It seems like the switch just doesn’t trigger the flow, no signal is received.

Is it connected on zigbee directly or via a router device?  
And what brand of router device do you use?

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [September 29, 2021, 9:54am UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3408 "2021-09-29T09:54:53Z")

</div>

It connects via an Aqara relay. I will do some more testing. Perhaps even replace the battery.

UPDATE  
I removed the switch. Replaced the battery, tried to include it again… but it will not include.

Re-Update-Update  
Removed again. Added again, on top of Homey. Took two attempts. And now - ladies and gentlemen - it works…

---

<div class="post-metadata">

**Author:** ![Stikstof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stikstof/32/76870_2.png) [@Stikstof](https://community.homey.app/u/Stikstof)\
**Post date:** [September 29, 2021, 1:53pm UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3409 "2021-09-29T13:53:06Z")

</div>

@TedTolboom I just got the Aqara cube, works in general very reliable. However, when I move the cube too much in the air (for example when I am looking for a specific side) and place it back on the table, the top side is not updated. My guess is that this is because none of the existing ‘gestures’ is detected due too much movement. Is this something that can be fixed?

Edit: just read about this in the repo documentation. Turned out my guess was correct. Thanks for building this app!

---

<div class="post-metadata">

**Author:** ![Robert\_Djarv](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robert_djarv/32/33904_2.png) [@Robert\_Djarv](https://community.homey.app/u/Robert_Djarv)\
**Post date:** [October 1, 2021, 10:24am UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3410 "2021-10-01T10:24:42Z")

</div>

Hi Ted!  
Can you please add more options to click buttons on Aqara H1 Wireless Double Switch.  
As of now it only works as a single switch.  
Thanks

---

<div class="post-metadata">

**Author:** ![TedTolboom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tedtolboom/32/12081_2.png) [@TedTolboom](https://community.homey.app/u/TedTolboom)\
**Post date:** [October 1, 2021, 10:31am UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3411 "2021-10-01T10:31:52Z")

</div>

> [@Felho](#):
>
> Hi @TedTolboom I add new H1 single wall switch (L) toilet. If I on the switch on automatic fan. Normal mode if I off the light after 3 minutes off fan. But now not stopping, if I delete the device homey the fan stop again 3 minutes. Can this fix or not. here diagnostic report: ef31d3ff-4bc2-4ce8-934d-c49fcc7e3f9f thanks

I’m looking into the issue right now.

> [@Robert\_Djarv](#):
>
> Can you please add more options to click buttons on Aqara H1 Wireless Double Switch.  
> As of now it only works as a single switch.

I’ve added all options already 😜  
Check the “A scene has been activated” flow card…

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/5/25d8a5a855e05c40bdb5224720f6b8695f2e2b12.png)

---

<div class="post-metadata">

**Author:** ![Robert\_Djarv](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robert_djarv/32/33904_2.png) [@Robert\_Djarv](https://community.homey.app/u/Robert_Djarv)\
**Post date:** [October 1, 2021, 11:16am UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3412 "2021-10-01T11:16:11Z")

</div>

Thanks! Didn’t notice that option.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [October 2, 2021, 12:55pm UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3413 "2021-10-02T12:55:37Z")

</div>

Hi Ted,

Just FYI, any thoughts on this? It seems sensor model related

> [@Aqara water leak sensor NO battery message](https://community.homey.app/t/aqara-water-leak-sensor-no-battery-message/52503/5):
>
> Afaik, you’ll have to push the sensor pair button every 2 secs or so, to keep it “awake” Confirmed, and Homey receives the contact sensor battery status also. All 4 of my PIR sensors have 100% battery, which can’t be real (running since last february)

---

<div class="post-metadata">

**Author:** ![TedTolboom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tedtolboom/32/12081_2.png) [@TedTolboom](https://community.homey.app/u/TedTolboom)\
**Post date:** [October 2, 2021, 1:21pm UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3414 "2021-10-02T13:21:24Z")

</div>

> [@Peter\_Kawa](#):
>
> Just FYI, any thoughts on this? It seems sensor model related
> 
> > [@](#):
> >
> > Afaik, you’ll have to push the sensor pair button every 2 secs or so, to keep it “awake” Confirmed, and Homey receives the contact sensor battery status also. All 4 of my PIR sensors have 100% battery, which can’t be real (running since last february) [[Screenshot\_20211002-144653\_Chrome]](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/8/b8d3aba7ac19a192778b418314813dec148355f8.jpeg) [[Screenshot\_20211002-144315\_Chrome]](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/9/490b5d99e2130edde49b12d54eb69a8f6a833509.jpeg)

The device is reporting it’s battery voltage on periodic basic, or can be forced by pinching the sensor.

Battery percentage is calculated by a linear decrease between 3.0 and 2.5V, and battery alarm will trigger if the voltage is below 2.6 (20% based on the linear depletion). A more accurate voltage curve can be implemented, but differences are minimal. Any suggestions how to improve are welcome.  
In fact this is a similar approach compared to other platforms.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [October 2, 2021, 2:10pm UTC](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156/3415 "2021-10-02T14:10:19Z")

</div>

Thanks, Ted.

> [@Aqara water leak sensor NO battery message](https://community.homey.app/t/aqara-water-leak-sensor-no-battery-message/52503/5):
>
> All 4 of my PIR sensors have 100% battery, which can’t be real (running since last february)

Still odd, pinching all 4 sensors didn’t change battery level indicators, it’s still 100%.  
Temperature & Contact sensors do report values below 100%

[Previous page](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156.md?page=160)

[Next page](https://community.homey.app/t/app-aqara-xiaomi-smart-home-simplify-your-life-with-a-smarter-home/156.md?page=162)
