Zigbee light switch with decoupled mode?

I’m using the Aqara H1 in the UK and it seems to work great in de-coupled mode. Got mine from Amazon but Aliexpress ones above are similar, I think they may market them as Xioami too.

Is everyone here that has successfully used the Aqara H1 in decoupled mode done so with Z2M, or has anyone done this with ZHA, as that’s what I use?

I am looking for the same answer did you find anything?

@IssaSFX - Are you saying that none of the recommendations above work for you? Could you help explain why they would not working in your scenario? I mean, what are the criteria / boundary conditions for you?

Sorry, i missclicked i wanted to reply to @rahulpunk 's question

Is everyone here that has successfully used the Aqara H1 in decoupled mode done so with Z2M, or has anyone done this with ZHA, as that’s what I use?

I researched the topic and for my setup this looks to be the most viable Aqara H1 EU Wall Switch (No Neutral, Double Rocker) WS-EUK02 Zigbee compatibility (blakadder.com)

but also i am not sure if the Decouple mode will work accordingly with ZHA

I’ve done this with an automation in HA, when the switch is toggled the automation turns the relay back on. The output to the light can also be controlled through a toggle/input_boolean helper if you need to isolate the lightbulb.

I’m trying to replace the Shelly 1s in decoupling mode with zigbee. but I can’t find anything. can you give me some advice?

I’m planning to do this but still confuse on how to wire the things. I’m kinda new to this one and couldn’t understand on How can the ZB-mini knows if someone interacts with the physical switches but didn’t cut the power off? could someone provide me with a diagram?

Something like this

2 Likes

So, I only need to connect S2 to the physical switch and I don’t need to connect both S1 and S2 to the physical switch?

Thank you for the prompt response

Either one works

1 Like

Houston, we have lift-off!

Aqara finally did it! I managed to get my hands on the Aqara Dual Relay Module T2 and it does exactly everything I could ask of it and more, and to a relatively reasonable price (around 35 EUR or 38 USD where I live). :partying_face: (Disclaimer: I am not sponsored. If I come off as a little bit biased it’s just because I’m happy that I have finally found something that makes my smart home setup work!)

I will still need to perform further tests but I have already confirmed that decoupled mode works. Please let me know if you have any questions and I will try to answer them! I will also create another post in this thread and mark it as a solution and try to update it with any devices that I encounter that meets the requirements specified in this thread.

The following is a short summary of how the T2 fulfills the initial requirements:
:white_check_mark: Use the physical light switch to turn on and off smart bulbs (without toggling the power to the bulb)
:white_check_mark: Use the grid/mains to power said device
:white_check_mark: Use Zigbee standard for said device
:white_check_mark: Not having to rely on bypassing the switch with wiring (edit: added this for clarity)

(and a few extras):
:ballot_box_with_check: Two separate power outputs allowing for control of two lights or devices
:ballot_box_with_check: Supports wet and dry contact modes (this is really neat if you need to control other devices than lights, e.g. garage doors etc. I found a nice explanation here that you might look into if you are interested in this.)
:ballot_box_with_check: In addition to the device, package includes a jumper cable (for switching between dry and wet contact modes) and a DIN rail mount
:ballot_box_with_check: Measures Power (W), Current (A), Energy (kWh), Voltage (V) and Device temperature (°C)
:ballot_box_with_check: Supports interlocking (prevents both relays being on at the same time)

The following possible and confirmed shortcomings are worth mentioning:
:grey_question: The device is a bit larger than my other relays, measuring 45.5 × 48 × 24 mm (1.79 × 1.89 × 0.94 in.). This might not necessarily be a bad thing, but if you like me have small electrical/junction boxes (I think that is the correct term) it might cause issues during installation.
:exclamation: Binding is currently not supported. Hopefully this is something that Aqara can and will add in a future software update.
:exclamation: The device only supports single and off actions for each input ( single_l1 , off_l1 , single_l2 and off_l2 .) When running in decoupled mode the most obvious work-around is to rely on the action (since state is always either on or off), and having built-in support for double and hold actions would make things simpler.

As mentioned previously, please let me know if you have anything you need me to try out (and thank you all for being patient while I was AWOL). :slight_smile:

4 Likes

Devices that me or other members have reported fulfills the following requirements (post will be updated according to the best of my ability):

In-wall relays:

1 Like

I started to read about this topic 3 days ago, bookmarked your post yesterday and finish reading it today to end up on what seems what I was looking for.
Everything was perfectly timed for me :smile:

Thanks @mikaelhertzman for your research and last post :slight_smile:

1 Like

Hey, one quick question, since binding is not possible with the T2, is your setup still working when HA or z2mqtt is down ?

I’ve actually thought about writing a post about this. I am looking into redundant measures for if HA/Z2MQTT would become unavailable. Don’t know if it’s possible but my first thought is perhaps having a “cold-spare” MQTT server, configured identical to the one running in HA, that can be turned on in case of emergency.

Even if some of my devices support binding I haven’t really looked into as it seems like it might interfere with scripts, scenes and other logic that I use. I am currently using my light switches for much more than just off and on (even if that is their primary purpose).

After reviewing the T2 further I have found some missing features/drawbacks that I will add to my summary.

I sent the following to Aqara, mainly to confirm that these are missing features but also to suggest that they are added in feature software updates. If you are interested in seeing these features in the future I would recommend contacting Aqara as well.

  1. Is there a reason for why the T2 only supports single_l1 and single_l2 actions? I have an Aqara Wireless Mini Switch that allows for single, double and hold actions wich makes automation so much easier.

    Aqara answers: The current design of the Aqara Dual Relay Module T2 supports single_l1 and single_l2 actions. Your suggestion for additional actions like double and hold is noted, and we’ll forward this to our development team for consideration in future updates.

  2. Is there a reason for why the T2 does not support binding? Some of your devices seem to, but not this one. Binding is a dealbreaker for some smart home users looking into Zigbee relays.

    Aqara answers: The lack of support for binding on the Aqara Dual Relay Module T2 is a design choice. However, we understand its importance, and your feedback will be considered for future product enhancements.

  3. Decoupled mode is great, but what would be even greater is if it was possible to change between decoupled and control_relay for example by pressing the switches for a certain time, or pressing the reset button etc. The reasoning for this is that the decoupled mode is used to a great extent to control smart bulbs. If, however, the Zigbee or MQTT network becomes unavailable you often want to have a way to temporarily fall back to the control_relay mode without having to reset all relays. Think of it as a way to create redundancy.

    Aqara answers: Your idea of having a switchable mode between decoupled and control_relay for redundancy is interesting. We’ll pass this suggestion along to our development team for evaluation.
1 Like

It might mean some additional considerations, but generally should be OK.

I refuse to have a switch on the wall that doesn’t work intuitively for at least basic functionality with or without HA involved, ie, if I press the switch a light/fan/etc turns on. I will gladly give up some functionality for consistency with this.

Double presses/holds/etc for the more custom actions can be through HA.

ESPHome allows for great customization with or without HA, but unfortunately the compatible switches I’ve tried just look and feel cheap.

I agree. This has sort of become the “holy grail” of many smart home enthusiasts. Smart things that fall back to their non-intelligent origin if things go wrong. With smart solutions, scripts or work-arounds (or even better - manufacturers providing built-in support) my hope is that we don’t have to choose.

I have not yet tested my ideas to accomplish what we are both looking for and even then I am certain that people much smarter than me are also looking into this. Let’s hope someone finds a good solution!

Sounds reasonable. How does one keep the relay/switch from interacting with it’s bound device until we are certain that a double or hold action was or was not performed though? Or perhaps that’s not even an issue? (As I mentioned previously I am pretty new to binding and have to experiment/read on this topic.)

I’m in exactly the same boat as you and have tried many different options.

Do you still require the Aqara Hub for this to work? Or can you just connect straight to a ZigBee controller?