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.