Device Handler for Aqara 2 Gang Wired Wall Switch no Neutral

Thank you! Any way for me to assist in providing info?

I’ve made a couple of minor tweaks to the version on github, which should enable it to recognise your switch and make an initial guess at configuration. If you are able to use the IDE then you should make sure the 2 display settings are set to true and then look in the Live Logging section of the IDE to see what happens when you press the switch (both on and off). I’m particularly interested in any line containing ‘read attr’ or ‘SmartShield’.

1 Like

I physically pressed the switch on, the light turned on, I waited ten seconds, then pressed it off, the light turned off. I then waited another ten seconds and tried to turn it on from the SmartThings app. The light never turned on and I received a network or server error about 15 seconds after.

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:39:13 AM: debug Workshop light [st cmd 0x85EB 0x01 0x0006 0x01 {}, delay 2000]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:39:13 AM: debug Workshop light [name:button, value:pushed, data:[buttonNumber:1], isStateChange:true, linkText:Workshop light, descriptionText:Workshop light button is pushed, displayed:true, description:]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:39:12 AM: debug Workshop light Switch 1 pressed on

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:50 AM: debug Workshop light [st cmd 0x85EB 0x01 0x0006 0x01 {}, delay 2000]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:50 AM: debug Workshop light [name:button, value:pushed, data:[buttonNumber:1], isStateChange:true, linkText:Workshop light, descriptionText:Workshop light button is pushed, displayed:true, description:]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:50 AM: debug Workshop light Switch 1 pressed on

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:50 AM: debug Workshop light Switch 1 pressed on

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:45 AM: debug Workshop light Unexpected custom message

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:45 AM: debug Workshop light doHoldButton Hold Done: null

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:42 AM: debug Workshop light [st rattr 0x85EB 0x01 0x0001 0x0000, delay 2000, st rattr 0x85EB 0x01 0x0002 0x0000, delay 2000]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:42 AM: debug Workshop light State: [unwiredSwitches:[null], tempNow:23, tempNow2:73, lastTempTime:1617892722748, tempOffset:0, numSwitches:1, numButtons:1, endpoints:[1, 255, 254, 242, 253, 252, 251]]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:42 AM: debug Workshop light Unwired Switches: [null]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:42 AM: debug Workshop light Devices: null

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:42 AM: debug Workshop light Setting Number of Buttons to 1

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:42 AM: debug Workshop light endpoints: [1, 255, 254, 242, 253, 252, 251]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:42 AM: debug Workshop light [null]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:42 AM: debug Workshop light [infoLogging:true, debugLogging:true]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:42 AM: debug Workshop light [unwiredSwitches:[null], tempNow:23, tempNow2:73]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:42 AM: debug Workshop light [tempOffset:0, lastCheckTime:1617892722071, tempNow2:73, holdDone:false, flag:null, endpoints:[1, 255, 254, 242, 253, 252, 251], numButtons:1, numSwitches:1, tempNow:23, unwiredSwitches:[null], lastTempTime:1617892719864]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:42 AM: info Workshop light refreshing

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:42 AM: info Workshop light refreshing

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:42 AM: debug Workshop light Parse returned: [[name:lastCheckin, value:10:38:42 Thu 08 Apr (EDT)
null, descriptionText:Check-In, displayed:true, linkText:Workshop light, isStateChange:true]]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:42 AM: debug Workshop light Parsing Custom Message: on/off: 0

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:42 AM: debug Workshop light Parsing ‘on/off: 0’

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:39 AM: debug Workshop light [st rattr 0x85EB 0x01 0x0001 0x0000, delay 2000, st rattr 0x85EB 0x01 0x0002 0x0000, delay 2000]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:39 AM: debug Workshop light State: [unwiredSwitches:[null], tempNow:23, tempNow2:73, lastTempTime:1617892719864, tempOffset:0, numSwitches:1, numButtons:1, endpoints:[1, 255, 254, 242, 253, 252, 251]]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:39 AM: debug Workshop light Unwired Switches: [null]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:39 AM: debug Workshop light Devices: null

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:39 AM: debug Workshop light Setting Number of Buttons to 1

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:39 AM: debug Workshop light endpoints: [1, 255, 254, 242, 253, 252, 251]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:39 AM: debug Workshop light [null]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:39 AM: debug Workshop light [infoLogging:true, debugLogging:true]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:39 AM: debug Workshop light [unwiredSwitches:[null], tempNow:23, tempNow2:73]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:39 AM: debug Workshop light [tempOffset:0, lastCheckTime:1617892709961, tempNow2:73, holdDone:true, flag:null, endpoints:[1, 255, 254, 242, 253, 252, 251], numButtons:1, numSwitches:1, tempNow:23, unwiredSwitches:[null], lastTempTime:1617892649720]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:39 AM: info Workshop light refreshing

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:29 AM: debug Workshop light Parse returned: [[name:lastCheckin, value:10:38:29 Thu 08 Apr (EDT)
null, descriptionText:Check-In, displayed:true, linkText:Workshop light, isStateChange:true]]

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:29 AM: debug Workshop light Unexpected custom message

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:29 AM: debug Workshop light doHoldButton Hold Done: null

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:29 AM: debug Workshop light Parsing Custom Message: on/off: 1

1ebf7f98-65a5-4eba-932f-fe90b3cc5b4e 10:38:29 AM: debug Workshop light Parsing ‘on/off: 1’

This looks different from the Aqara switches, The only standard zigbee commands I can see are sent by my DH to the device, but there doesn’t appear to be a response, either in the logs or by your lamp coming on… The only messages I see from your device are the lines ‘on/off: 1’ and ‘on/off: 0’, which appear to signify switch on and off respectively, but are used with a very different meaning by some Aqara awitches and do not appear at all for others.
Unfortunately this switch looks too different from the Xiaomi Aqara ones to accomodate it in the DH with only minor changes.

1 Like

I understand - thanks for your help. Not sure why this particular Aqara switch is so different

thanks @aonghusmor work fine with Aqara Switch D1 QBKG24LM with neutron

thanks @aonghusmor

This is Device Handler step by step

For new user who use Aqara QBKG24LM

1.login to ST hub go to My Device Handlers
2.Create device handler
3.Create device handler child
4.Go to new smartthings app press +
5.then go device
6.Scan nearby
7.Hold on aqara QBKG24LM switch for 5 sec until blue light is flashing
8.Done Smartthings App Found 2 Device

Device Handler from @aonghusmor

https://github.com/aonghus-mor/SmartThingsPublic/blob/master/devicetypes/aonghus-mor/aqara-wired-wall-switch.src/aqara-wired-wall-switch.groovy

Device Handler Child from @aonghusmor

https://github.com/aonghus-mor/SmartThingsPublic/blob/master/devicetypes/aonghus-mor/aqara-wired-wall-switch-child.src/aqara-wired-wall-switch-child.groovy

1 Like

I have 8 of these lumi.switch.b1laus01 devices in my home and would prefer to use them with my ST hub. Is there any way to include these in the code?

As I explained to @christensen the evidence he gave me suggested that the behaviour of these switches is so different from the other Aqara ones that it would be more sensible to start from scratch with a new device handler than to try to incorporate it into the framework I used for these other switches.
It’s possible there may be something I have missed, but, as I have no use for these switches (I’m in the UK), I can’t experiment with them myself. All I can see from @christensen’s logs is that hard pressing produces non-standard zigbee responses and that when my code sent standard zigbee commands to the switch there was no response.
If you wish to repeat what @christensen did and get a different result, then I’d be happy to look at it.

Hi Aonghusmor,

Firstly thanks for creating a DH for this switch and I appreciate your time. I’m having an issue with my switch and wondering if you could help.

I have tried quite a few DH but I think yours works great to an extent. Basically, i can’t get the 2-way switch working (using double rocker aquara no neutral).

Basically, i can switch on and off with the app, and the same way I can switch on and off using the second switch (2 way) independently. However, I can’t get it working as a proper 2-way switch tho; like switch on in the app and turn it off using my second switch ( and vice-versa). I hope it makes sense… I’m happy to attach my wiring diagram if you want to see it.

Thank you so much again for your guidance.

thanks all.

Sorry for the delay in replying. I’m away from home at the moment. I assume you’re referring to the situation where there are 2 switches for a single lamp, such as at the top and bottom of a staircase.

To do this with the Aqara switches in Smartthings you don’t use the wiring between the 2 switches, but have one of the switches as an unwired switch and the other wired. You then use a smart app, such as Smart Lighting, to toggle the wired switch, when the unwired switch is pressed. Alternatively you can use a smart bulb and 2 unwired switches. Either way the trick us to toggle the state of the wired switch or the lamp, rather than switching it off or on.

1 Like

Hiya,

Thank for your reply and hope you had a nice get away. :slightly_smiling_face:

Yes that make sense. I thought there is a way around with wiring with out replacing all the switches. In this case I dont really need a 2 button aquara switches… instead I can just use a 1 button switch and replace the other with an wireless switch.

Regards

There will be some latency with the unwired switch, a delay between pressing the switch and the light coming on. Some people react by pressing the switch again, which, with a toggle setting, means do nothing.

Fair enough… I just purchased couple of aquara wireless switches and I probably need your help again if I have any trouble configuring them. :slight_smile: thanks for your help tho. I really appreciate that.