# Xiaomi wireless zigbee switch combined with momentary switch

**URL:** <https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431>\
**Category:** Ideas & Suggestions\
**Tags:** zigbee\
**Created:** [December 14, 2018, 8:53am UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431 "2018-12-14T08:53:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Vijver](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kevin_vijver/32/8852_2.png) [@Kevin\_Vijver](https://community.homey.app/u/Kevin_Vijver)\
**Post date:** [December 14, 2018, 8:53am UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/1 "2018-12-14T08:53:15Z")

</div>

I would like to share my little “momentary wall switch project” combined with a Xiaomi wireless switch.

The one major issue I kept running in to when trying to add lights into my smart home config was that I have “rvs wall switches” which cost me a lot of money and regular switches don’t work well in flows.

Trying to keep my solutions up to the “acceptance levels” of my wife 😆 was really hard, untill now I couldn’t find a momentary switch that would work with my “Merten Schneider” wallswitches.

Now that I’ve found a momentary switch that works, I was contemplating about making it work with homey.  
At first I wanted to add a Fibaro Z-wave relais but they are pretty pricey!

Then a collegue showed a youtube clip off someone modifying a Xiaomi Aqara switch, we decided to try this.  
I went for a regular round Xiaomi wireless switch because this can also handle a “long push” as a scene trigger.

When disassembling the Xiaomi switch my collegue found that it wasn’t necessary to remove the switch button, he found 2 holes on the pcb which also had switch capabilities therefore leaving the button intact and just adding 2 wires.

[![Imgur](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/3/3cf53006cca180933dfc24acbb347253262cc62f.jpeg "Imgur") ](https://imgur.com/c6CHnYf)  
**Button with addition.**

[![Imgur](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/e/ee108c825ea5f9c68a26652a2b2de994b39f2394.jpeg "Imgur") ](https://imgur.com/HczAHCs)  
**Still with the original batteryholder.**

[![Imgur](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/5/548497855bfc2a7058d402aab035c499416bf6fa.jpeg "Imgur") ](https://imgur.com/N9rxgiV)  
**2 thicker cable ends for fitting in the wall switch.**

The first setup will be a Ikea Trädfri dimable lightbulb combined with the above hooked up to a momentary switch. Making it possible to dim the Trädfri light or turning on multiple light with the flick of a switch!! 🤩

More will follow later!

---

<div class="post-metadata">

**Author:** ![Jan\_Peeters](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_peeters/32/86660_2.png) [@Jan\_Peeters](https://community.homey.app/u/Jan_Peeters)\
**Post date:** [December 15, 2018, 9:24am UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/2 "2018-12-15T09:24:13Z")

</div>

> [@Kevin\_Vijver](#):
>
> h cap

a link to youtube might be usefull

---

<div class="post-metadata">

**Author:** ![Kevin\_Vijver](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kevin_vijver/32/8852_2.png) [@Kevin\_Vijver](https://community.homey.app/u/Kevin_Vijver)\
**Post date:** [December 21, 2018, 8:38pm UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/3 "2018-12-21T20:38:55Z")

</div>

This is the link to the video that was my inspiration: [Xiaomi wireless switch hack](https://www.youtube.com/watch?v=zJAjfH7Ycfc)

After trying to fit the complete button behind the momentary switch I was quite disappointed that it wouldn’t fit in the wall.  
So we removed the housing and added some protective shrink tubing, for the next few switches we’ll be adding a proper battery holder.

[![Imgur](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/e/e038f003f16aed46fe82325953d9179b3f535ca7.jpeg "Imgur") ](https://imgur.com/nvPMPsz)

The modified Xiaomi wireless switch now works perfectly, fitted in my bedroom. Added flows to turn on/off the Ikea Tradfri bulb, Dimm or brighten the Tradfri bulb and telling Homey we’re going to sleep and turn off everything in the house.

More to follow!

---

<div class="post-metadata">

**Author:** ![Robin\_van\_Kekem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robin_van_kekem/32/8187_2.png) [@Robin\_van\_Kekem](https://community.homey.app/u/Robin_van_Kekem)\
**Post date:** [January 4, 2019, 6:06am UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/4 "2019-01-04T06:06:51Z")

</div>

Very nice!  
Could you show us some flows?  
Which triggers can be used by this switch?

---

<div class="post-metadata">

**Author:** ![Tom\_Starren](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tom_starren/32/3697_2.png) [@Tom\_Starren](https://community.homey.app/u/Tom_Starren)\
**Post date:** [January 4, 2019, 9:00am UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/5 "2019-01-04T09:00:05Z")

</div>

@Kevin_Vijver Very interested in the answer on the question @Robin_van_Kekem asked.

Does somebody know if this modification is only possible with this Xiaomi switch or is it also possible with the other Xiaomi switches?

---

<div class="post-metadata">

**Author:** ![Kevin\_Vijver](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kevin_vijver/32/8852_2.png) [@Kevin\_Vijver](https://community.homey.app/u/Kevin_Vijver)\
**Post date:** [January 4, 2019, 9:24am UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/6 "2019-01-04T09:24:42Z")

</div>

@Tom_Starren @Robin_van_Kekem

With the other square Xiaomi switch it is also possible to do this modification with.  
The reason I chose this round switch is that is has the “long push” scene trigger that the square one doesn’t have.

**These are the scene triggers that can be used with the round Xiaomi switch:**  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/95a9fd33235cb8c7de2bae9e5c6093ceeea55273.png)

**These are the scene triggers that can be used with the square Xiaomi switch**  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/3/35637af066a8de83cb8debf8ad3e902c68d7145b.png)

---

<div class="post-metadata">

**Author:** ![Kevin\_Vijver](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kevin_vijver/32/8852_2.png) [@Kevin\_Vijver](https://community.homey.app/u/Kevin_Vijver)\
**Post date:** [January 4, 2019, 9:33am UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/7 "2019-01-04T09:33:22Z")

</div>

Offcourse, here are some of my current flows:

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/e/e19a8b1fe624bb57e973ca4dfdc163487b45d049.png)

The “Schakelaar slaapkamer licht - aan/uit” flow is for a square Xiaomi switch button that’s on my night stand to turn on/off the light when I’m in bed.

The others are for activating scene’s and behaviour.

**Wandschakeling Licht - Dimmer/Feller:**

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/3/33000d7ed017be923268c3f01b3ebd232f182e3c.jpeg)

**Wandschakeling Licht - Aan/Uit**

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/b/b7a80e14d016a52c1a518ea2f2e368b65f2e0564.jpeg)

**Wandschakeling - Alles uit**

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/6/65aefdac17e35ac945f65f30bdffab44695a79cf.jpeg)

Yesterday I received another order, I also found a double momentary switch, so we’re now going to hookup 2 modified Xiaomi switches to 1 CR2025 battery holder to make sure 2 switches will fit inside the wall behind the momentary switch.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/5/5dad0797e0e450d4de44676a8b1c4d97afa743c0.jpeg)  
More to follow!

---

<div class="post-metadata">

**Author:** ![Tom\_Starren](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tom_starren/32/3697_2.png) [@Tom\_Starren](https://community.homey.app/u/Tom_Starren)\
**Post date:** [January 4, 2019, 10:09am UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/8 "2019-01-04T10:09:09Z")

</div>

Cool, I sent you a PM and I will follow this topic.

---

<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:** [January 4, 2019, 11:08am UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/9 "2019-01-04T11:08:54Z")

</div>

You could also use the  
[Double (2018) (WXKG02LM, productID `remote.b286acn01` )](https://xiaomi-mi.com/sockets-and-sensors/remote-switch-for-aqara-smart-light-wall-switch-double-key/) (1x, 2x click, long press for each button and combined) and connect it to the double momentary switch.

It has a flat PCB, see below screenshot:

 ![IMG_1795](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/7/7c581d565db9a07566c9e402cb8c62301c3c842b.jpeg)

It will be a bit tricky to find this version (with these capabilities); because Aqara sells them based on the same product number.

---

<div class="post-metadata">

**Author:** ![Kevin\_Vijver](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kevin_vijver/32/8852_2.png) [@Kevin\_Vijver](https://community.homey.app/u/Kevin_Vijver)\
**Post date:** [January 4, 2019, 2:01pm UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/10 "2019-01-04T14:01:57Z")

</div>

@TedTolboom Ah, I didn’t know they also had a double version, thank you! Will see if I can find one of those to modify.

---

<div class="post-metadata">

**Author:** ![Tom\_Starren](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tom_starren/32/3697_2.png) [@Tom\_Starren](https://community.homey.app/u/Tom_Starren)\
**Post date:** [January 10, 2019, 7:53am UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/11 "2019-01-10T07:53:37Z")

</div>

@TedTolboom Do you know if this one fits in a wall socket when custimized??

---

<div class="post-metadata">

**Author:** ![Kevin\_Vijver](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kevin_vijver/32/8852_2.png) [@Kevin\_Vijver](https://community.homey.app/u/Kevin_Vijver)\
**Post date:** [February 4, 2019, 6:15am UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/12 "2019-02-04T06:15:58Z")

</div>

The double unit is done,

 ![kgjj3N3vTBmx2FLBGUtjtw_thumb_149c](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/0/027c81eaec0ddc10c08c4470275bce58fbdd9b4c.jpeg)

 ![8djdBhURSZyIYpn%20JqUWHQ_thumb_149d](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/b/bcfe0c1baf6c3e5bae7dccb964d58d2094a96fc0.jpeg)

Works superb! We hooked up 2 switches to one standard battery in a separate battery holder, the battery should be sufficient for months of function as a normal switch setup lasts years.

So now I can turn on/off, dimm/brighten, activate scenes for all the lights in my living room with just this one wall unit.

---

<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:** [February 4, 2019, 10:03am UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/13 "2019-02-04T10:03:23Z")

</div>

Nice work…  
now someone that designs the 3D printed case to fit all three of them 😜

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 4, 2019, 12:05pm UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/14 "2019-02-04T12:05:15Z")

</div>

Thinking out loud here: it should be possible to combine one of these with a regular (230V) switch, provided that:

- the switch is of the double-pole (“tweepolig”) variety
- the switch doesn’t have to be connected to Neutral (so it only switches Live: brown wire in, black wire out)

One of the poles would switch the Zigbee device, the other pole would switch the 230V. Because in a double-pole switch both poles are separated, there’s not risk of putting 230V on the Zigbee part.

---

<div class="post-metadata">

**Author:** ![Kevin\_Vijver](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kevin_vijver/32/8852_2.png) [@Kevin\_Vijver](https://community.homey.app/u/Kevin_Vijver)\
**Post date:** [February 4, 2019, 12:17pm UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/15 "2019-02-04T12:17:54Z")

</div>

Problem is, that it’s a momentary switch (puls drukker) so there is only a connection on the black switch cable during the push.

In the next picture there’s the schematics of the momentary switch itself.

 ![UNADJUSTEDNONRAW_thumb_14ad](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/c/c2ed852d4fa7b2963e98e5a1d3235588d9783494.jpeg)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 4, 2019, 12:19pm UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/16 "2019-02-04T12:19:34Z")

</div>

Yeah, momentary switches wouldn’t work. If you’d use a double-pole switch, the Zigbee switch would be activated the entire time the switch is on, not sure how/if that would work either.

Like I said, thinking out loud 😉

---

<div class="post-metadata">

**Author:** ![Kevin\_Vijver](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kevin_vijver/32/8852_2.png) [@Kevin\_Vijver](https://community.homey.app/u/Kevin_Vijver)\
**Post date:** [February 4, 2019, 1:07pm UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/17 "2019-02-04T13:07:12Z")

</div>

Please do think out loud, I’m always looking for a better solution that’s cheap and works properly!

Problem with regular switches keeps being that if you turn off the power, it’s off.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 4, 2019, 1:15pm UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/18 "2019-02-04T13:15:55Z")

</div>

> [@Kevin\_Vijver](#):
>
> Problem with regular switches keeps being that if you turn off the power, it’s off.

True, the double-pole switch setup wouldn’t be a replacement for your setup, but another possibility to use the Zigbee devices for (basically to register is a particular hardwired switch is on/off, although it would depend on how the Zigbee devices work with their button being activated all the time).

---

<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:** [February 4, 2019, 1:17pm UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/19 "2019-02-04T13:17:29Z")

</div>

Also thinking out loud…  
At home I have Busch Jaeger switches; among others Future Linear.

Wondering if I could make / 3D print a housing or adapter piece to hold the Aqara remote double switch as an extention, while re-using the normal flippers

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 4, 2019, 1:20pm UTC](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431/20 "2019-02-04T13:20:01Z")

</div>

I think that would mean putting 230V across the Aqara contacts.

[Next page](https://community.homey.app/t/xiaomi-wireless-zigbee-switch-combined-with-momentary-switch/5431.md?page=2)
