I LOVE getting new stuff from Aqara.About the only thing I’ve had from them that was disappointing was the G4 Video Doorbell.Don’t get me wrong, it works, but I can’t get it integrated into Home Assistant.
Other than that, it’s great – I’d check the battery back in the UK (I’m in Spain) but the power’s out over there right now so I can’t.To the point – the T2 dual relay module is matter-compatible, is of course Zigbee and the relays handle max 10A at 240v (that’ll be 10A non-inductive) – but wait – a trip to the Aqara website reveals that the load is 10A MAX all in, not per relay – that’s a bit odd.I’m looking at the spec right now on the box – see low voltage use and the sizes below… .
Oh and you get a DIN rail bracket with it.Operating temperature sounds fine on the cold side but this summer, in the shade we had 42c+ the odd day in August so maybe indoor use then.Before any readers new to this stuff grill me… why relays? Well, almost everyone uses relays rather than solid state control for reasons including cost, isolation and more.
They just work.Shortly after the turn of the century I had it in my head that relays were a thing of the past – wrong….there again my head of staff wsa convinced that QR codes were on the way out..
And the black thing? An antenna – as this is Zigbee I believe it’ll not only help with reception but also when the device is acting as a Zigbee “router” (I still prefer the term mesh-repeater but there you are).So the 3 connections at the bottom are common and one connection for each of 2 switch poles for manual override.To the left of those three terminals is a button that will be used for manual and for re-pairing.
At the top you have 6 connectors and the strangest text.Oh, and a little indicator to the right of the terminals.See image below… not entirely sure what the single piece of red wire is for – and finding out would mean reading the manual Note the detachable DIN RAIL mount at the back.
The antenna may look odd but I have several AliExpress smart earth leakage units without the antenna… they are in our standard metal breaker boxes at home and guess what, the WiFi signal is no-where near perfect, the result? While they’ve never failed, occasionally I lose remote access to them.So potentially useful when you think about it – if mounted in a box with that DIN rail mount.Back to the button – glad I opened the manual.
5 seconds reset – predictable.3 times of quick press (their bad English, not mine) verification of effective communication distance.Only a brief mention of the “hub” so they’re ASSUMING you know that you need an Aqara “hub” to use this – except that you don’t – I’m going to be using Zigbee2MQTT on my Raspberry Pi as always.
Rather unfortunately Aqara didn’t put any wiring diagram on the pamphlet (manual) that comes with the T2.I’m reasonably sure I can wire it to 250v mains without blowing myself up – but a nice set of diagrams for using the unit on DC low voltage would have been nice.Meanwhile a quick trip to the Aqara website confirms the device does have power monitoring.
I feel inclined to asking any interested reader to go look at the relevant Aqara web page as there’s a lot going on here.And about half way down that page under the pretty diagrams I note “To control the bidirectional motors, please turn on the INTERLOCK mode in settings” – WHAT MOTORS? Ah: dry and wet contact modes – detailed on the site also.Looks like their web designers took the easy option as I could not paste the relevant text in here.
It seems that by disconnecting a red jumper wire (the one they provide but don’t explain in the manual) the T2 can be switched from wet contact to dry contact mode… Don’t know what that means? Thankfully I do.Dry contact mode means the contacts are not connected to live… often important when it comes to adding to (oil) heating systems – you may see in the heating system manual, especially older ones that the thermostat should offer “dry contacts” – so that’s most smart controllers out then, because for the “live” and “neutral” outputs, one is usually connected to actual mains power in the controller.All of this is great but I still want a diagram before actually wiring this thing up.
And VOILA – a PDF on the Aqara site – the English text is ATROCIOUS (here’s an example: Use a screwdriver to loosen the terminal block screws of the device and connect the Connect the zero wire to the N hole, the fire wire to the L hole, use the connectingwire to connect the LIN hole and LOUT hole, connect the load (lamp) wire to L1 and L2) but good for a laugh – thankfully the actual diagrams are ok.Here’s the PDF.And now I’m confident enough to power up the device thanks to the PDF diagrams noted above….
This is where I discover if indeed it is already Zigbee2MQTT-compatible – and hence suitable for Home Assistant… Power onto L and N.Tiny blue light starts flashing… AND – stopped before I got the chance to start pairing with Zigbee2MQTT….ok – long-press (5 seconds+) of the button and try again… in the Zigbee2MQTT web panel, it seems an Aqara device LLKZMK12LM has been added successfully.
Quick rename from the default horrible long ID to “aqara-d2-1”.That’s better.I also hit the “update Home Assistant” option in the same panel.
So what now? Under “exposes” in Zigbee2MQTT we have the following: Ok, a short press of the real button turns on a relay – which one I’m not yet sure….2 LEDs would have been good? All of this above looks like we’re only controlling one device up to now… In Home Assistant, the device has magically appeared..and in Home Assistant “entities”… a load of entities appear… How did I ever manage before Home Assistant, that image on the left from HA make everything all SO obvious and clarifies that there are indeed 2 relays, separately controllable (L1 and L2).
With that INTERLOCK option turned on, turn one output on, the other goes off and vice-versa, with the interlock set to off, the outputs are independent.It’s about 23c in my office at desk height where I’m checking out the T2 – and “aqara-d2-1 Temperature” says the device is 31c – seems reasonable.I’m not entirely sure about that ACTION command… I have a shed-load of mains plugs + leads in my store for testing devices like this – slight pause to make a couple of small test lamps….
Right – got the lights – put in the link as shown in the diagram on that PDF I refer to above… A bodge job to be sure but I took care to ensure all cables were properly soldered and all connections tight before actually connecting to the mains 240v supply here.T2 says 242v in Zigbee2MQTT – butI can’t find the voltage setting in Home Assistant (strange – I’ll check with Aqara) – and with both of my small test lamps running, power according to T2 is 7.2w in Zigbee2MQTT and Home Assistant says 6.4w.I’ll report that too but it’s not that big of a deal – I’d be surprised if either of those is VERY accurate on such a small load.
Above, all checked and ready – below – wired up in “wet” configuration, i.e.1 lamp lead will go to neutral, the other to a switched relay thanks to the red link.I wish manufacturers would fit more neutral connections but I guess size is a consideration.
(I often gripe about ESP8266 and ESP32 boards not having enough GND connections).In the diagram below, the bottom two connecions are incoming live and neutral – though in southern Spain at least, we regularly use reversible 2-pin mains plugs so “live” and “neutral” don’t really apply but I tend to stick with UK colour conventions mainly as I have lots of UK mains cable.In HA I put the lights into PULSE mode and adjusted the pulse length to a couple of seconds – sure enough – turn either light on and it stays on for a couple of seconds then turns off – somewhat reminiscent of Tasmota’s PULSETIME though not quite as flexible as there are times when I’ve wanted to have a device start up OFF and then go ON after a short length of time.
Of course there’s a way around that if using Home Assistant.AH! Using the 3-pin connector on the left, COM and S1 turns on one light momentarily, COM and S2 turns on the other light momentarily, meanwhile short-pressing the button turns on BOTH outputs, short-pressing it again turns them both off.I KNEW if I held onto those tiny mains LED lights, I’d find a use for them one day.
And now, a short note off to Aqara, probably to make a fool of myself for missing something.