Xiaomi wireless zigbee switch combined with momentary switch

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 :laughing: 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.

Button with addition.

Still with the original batteryholder.

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!! :star_struck:

More will follow later!


a link to youtube might be usefull

This is the link to the video that was my inspiration: Xiaomi wireless switch hack

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.


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!

1 Like

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

@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?

@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:

These are the scene triggers that can be used with the square Xiaomi switch

Offcourse, here are some of my current flows:


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:

Wandschakeling Licht - Aan/Uit

Wandschakeling - Alles uit

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.

More to follow!

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

You could also use the
Double (2018) (WXKG02LM, productID remote.b286acn01 ) (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:

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

@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.

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

The double unit is done,

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.

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

1 Like

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.

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.

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 :wink:

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.

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).

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

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