Aqara H2 EU wall switch

Define what you mean by not working.

It’s a wireless button so you won’t see any entities. You’ll need to listen for the zha_events in developer tools or use/modify a blueprint

I couldn’t see any events fired while listening to zha_events in developer tools.

Unless someone can clarify otherwise, I have a feeling that ZHA doesn’t expose these entities in the same way as Z2M does.

Hi @Jonybat , thanks for these! I’m using your blueprint for the Single rocker, but I’m getting this error when trying to save an automation:

Message malformed: Missing input event, helper_last_controller_event, helper_last_event_time

In the field for “Event”, it says that I have “no matching entities found”.

I’ve connected my Aqara H2 EU via Z2M. I’m just looking for a way to expose those Bottom Button actions and create automations from them…

I’m very new to all of this, so any help on these blueprints would be amazing, thanks!

Hi. That blueprint makes the same assumptions as many other similar ones. You need to manually create 2 text helpers (one for last timestamp and the other for last event, for each switch) and assign them to the respective fields. That can be done from settings > devices > helpers

So how do you make these two helpers?

I already have the problem that I don’t see any event that I can select.

And i; you have created these helpers, you can select these?

Hi
Does someone manage to control led lights from both the physical switch and from the app ?
Like switch off the light from the physical switch and turn it back on from an automation ?
Thanks

Do you mean the LED indicator lights on the switch, or lighting controlled by the switch?

If you mean “can I use the switch to turn on my lights manually, then use an automation to turn them off again?” then yes, absolutely you can do that. You just need to decide what you want to use as a trigger to turn the lights off again.

If you have a presence or motion sensor then it’s easy. Just trigger based on lack of presence or lack of motion for 2 minutes etc then turn off the switch.

If you don’t have presence or motion and you just want the lights to turn off after say 5 minutes, then use the switch turning on as a trigger to start a timer in Home Assistant and use the timer ending as the trigger to turn off the switch. This, of course, risks the lights going off if you’re still in the room for longer than 5 minutes.

So the answer really comes down to what you want to do.

Thanks for your reply.

What I’m trying to do is to control the light from :

  • The physical switch
  • Home Assistant

So if I turn the light on from the switch, I want to be able to turn the light off from the switch or HA.
Or if I turn on from an automation (like the time of the day) I want to be able to turn off from the switch.

However, I have some requirements :

  • I don’t have neutral in my wall.
  • I would like to be able to control the light if HA is down.

From what I see, some switch have decoupled mode that can turn into relay mode if HA is unreachable. Is it the case with Aqara H2 even without neutral ?

All of my light switches have a neutral so I can’t comment on the suitability of the no-neutral version, but, if the switch is just providing power to a dumb light then yes, all of that is achieveable.

I think, however, it depends how you connect it to Home Assistant. Mine are connected in Zigbee2MQTT. The switches themselves are shipped with Matter over Thread as the standard connection protocol and I’m not sure what that exposes in Home Assistant.

Hello! I’m thinking of buying the H2 but I would prefer the bottom button to operate the relay. I know I could do that with an automation but to avoid the delay that introduces, could I just install the switch upside down so the real relay button goes to the bottom? I already have a couple of H1 switches and it will be confusing if for half of my switches I have to press the bottom and for the others the top

I can’t think of any reason why not. Just bear in mind that the terminals will then be at the bottom of the switch enclosure and if your cables come into the enclosure from the top, they may not be long enough to safely reach the bottom of the enclosure.

1 Like

Hey there - would be keen to hear how you managed to decouple the top button from the relay.
Did you have to go through the aqara app through the hub or did you manage to do everything without relying on the hub ?
I am redoing the house and planning on installing a bunch of those h2 switches everywhere but I’m not 100% clear yet on the integration with HA.

I know I can always get the hub and then link the hub to HA (a-la Hue light) but would love to avoid having to do that.

The configuration to decouple the relay is available in Zigbee2MQTT, no additional hub required.

1 Like

OK nice thank you very much. I was still hesitating with ZHA but think that settles it.
Wanted to use my ZBT2 as a thread antenna but it might not be good enough for now to only have Matter over Thread.

This is something else where I’m a bit unclear btw if you have 2 minutes to help out a poor soul lost in the weeds of the different network types .
When I connect something over Thread, do I need then a specific integration for that device. For example, the Aqara H2 EU. Say I connect it to HA over thread, how do I get the different actions/entities etc that I would get using Zigbee2MQTT ?

Also - did you have to jump through any hoops to connect them over zigbee ? The package really only advertises Thread.

You can’t use Thread with Z2M. You have to change the H2 to use Zigbee using the Aqara app.

EDIT: You definitely have to switch to Zigbee if you want decoupled mode (Wireless Switch Mode) anyway. Thread implementation for these is missing a bunch of features compared to Zigbee

Thanks for taking the time.
Everything is clear now. Zigbee + Z2M + aqara app it is.

Welcome. In case I wasn’t clear enough in my earlier post: You do NOT need an Aqara hub for the switches (despite what their marketing material from my screenshot says). All you need is a Z2M supported adapter - the app is only used once to switch from thread to zigbee and does not require their hub.

Also, check if someone mentioned it in the thread already, but I believe these “neutral-optional” Aqara devices are end-devices in zigbee. They do not route the zigbee signal & expand your mesh even if you connect the Neutral wire.

yes think they do not propagate indeed but the network will be strong enough on account of the lights themselves in theory…
Trying to keep the hubs to a minimum - the only one which makes sense I believe is the Hue one in order to have quick scenes if they involve multiple lights together.
As far as adapter go I have a brand new ZBT2 which should work fine. Just have to start plugging the actual switches in to play around ! :smiley: