DTH for Xiaomi Aqara OPPLE Wireless Scene Switch?

HI,

found a new Xiaomi Aqara OPPLE Wireless Scene Switch on aliexpress. looks nice.
AHas anyone tried to write a device handler for it yet?

Looks very interesting…!
Maybe @veeceeoh know something…?

Well… I have read that these were not made for the user to replace the battery:

Until new versions of the switches are released that have easy-to-replace batteries, and there is more information on whether they are truly following the ZigBee 3.0 specification, I do not have any plans to buy one to make a DTH.

1 Like

Yes looks like they let the intern design the thing.

Thx for sharing

Is there any DH for this? I have ordered one and its arriving soon.

I have one at home and actually it is easy to replace the battery. But I don’t know how to add this device to ST :frowning:

You won’t be able to add it to ST. A custom device handler needs to be written for it, if the device can work with the ST hub at all.

From what I’ve read about the Aqara-Opple button “switches”, they may not work with ST hubs.

I do not own any Aqara-Opple button “switches” and I have no need to buy any to use for myself. So I won’t be able to find out if they work with ST and try to write a driver.

I managed to pair the Aqara Opple switch with ST using the device handler from https://github.com/bspranger/Xiaomi. However, when I add the device it acts very strangely, pressing the buttons controls all Zigbee lamps and bulbs in my house, absolutely all devices turns on/off, changes color temp etc.

Looking at the Event list I see that the button is sending a catchall for any button press, hence I suspect that there is some Zigbee config missing.

Correct.

The default behavior of the Aqara-Opple switch buttons is to send commands to ALL Zigbee bulbs and switches on the network. The hub needs to send what’s known as the correct binding configuration commands.

The only way a working SmartThings driver might be written is for someone who understands how to send the configuration commands and reverse engineer all of the different button-bush commands also happens to own an/some Aqara-Opple button(s). I say “might” because it’s not guaranteed. I have read of efforts of users of other Home Automation platforms who have struggled to get full functionality of these button devices.

1 Like

Don’t know if that can help. But Habitat users already have their solution.

Can someone convert it to SmartThings ?

1 Like

I had a look but as my first attempt at groovy I bombed I’m afraid.

1 Like

the event happened even without DH , just in pairing mode.
i don’t know why i bought it ? ? ?
why i was miss-leaded that is compatible ?

any news ?

So, I have converted to Hubitat, and the Opple works beautifully there, I have even expanded with a few more of the Opple in my system. When that is said, Smartthings and Hubitat device drivers are very similar, and most of my own Smartthings drivers worked out of the box on Hubitat. I wonder if that could be the other way around as well, here is the Hubitat driver I used for my Opple (the first one in the list):

BTW, just mentioning (as I get burned over and over again): “stay close to the hub when pairing (less than 1 meter/3 feet)”. Sometimes it might seem that the device has paired fine, but acting strange, and that is typically due to not being close enough to the hub during pairing. The Opple seems extra sensitive for this.

1 Like

and how can i transform this driver to DH compatible to smartthings IDE ? ?
cause it’s not accepted by just copy-paste.
i’m a noob …

Here I can only guess, but the biggest differences are around the Zigbee and hub action commands, and my gut feel is telling me that the oppleInit code is what is missing from the Smartthings device driver:

void oppleInit() {
if(isNonOppleModel() == false) {
    logging("Sending init command for Opple Remote...", 100)
    sendZigbeeCommands([
        zigbeeReadAttribute(0x0000, 0x0001)[0],
        zigbeeReadAttribute(0x0000, 0x0005)[0], "delay 187", 
        zigbeeWriteAttribute(0xFCC0, 0x0009, 0x20, 0x01, [mfgCode: "0x115F"])[0], 
        "delay 3001", 
        zigbeeWriteAttribute(0xFCC0, 0x0009, 0x20, 0x01, [mfgCode: "0x115F"])[0],
        "delay 3002", 
        zigbeeWriteAttribute(0xFCC0, 0x0009, 0x20, 0x01, [mfgCode: "0x115F"])[0]
    ])
}

}

1 Like

Hi all!

I’m completely new to all the smart world.

I got some Aqara Opple wireless zigbee switches. They come in 2, 4 and 6 buttons supporting single, double and hold presses. And they have replacable batteries.

The models ARE WXCJKG11LM for 2 buttons, WXCJKG12LM for 4 buttons and WXCJKG13LM for 6 buttons

It works with the MI Home app but unfortunately I couldn’t find any device handler to pair it with my smartthings hub (aeotec)

Is there something non groovy I can do to help with the DH?

If you are able to connect this to SmartThings as a Thing and tell it to use my Device Driver, I may be able to interpret the debug code and say whether it is easy to add support for it.

1 Like

Ok so I finally managed to add it as a thing. I chose the type “Aqara Wall Switch”

  • application: 11
  • endpointId: 01
  • manufacturer: LUMI
  • model: lumi.remote.b486opcn01
  • zigbeeNodeType: SLEEPY_END_DEVICE

I get this in the live log:

error java.lang.NullPointerException: Cannot invoke method getAt() on null object @line 717 (refresh)

Is this expected or am I doing something wrong?

I found this from HA if it helps

Thanks

OK! I couldn’t deduce what I need to know from that link. However, I’ve now posted a slightly amended version under the name ‘testcode’ on github https://github.com/aonghus-mor/SmartThingsPublic/blob/master/devicetypes/aonghus-mor/testcode.src/testcode.groovy. This is so that I can play with it without interfering with other people’s use of the DHT.
If you can download that and replace my original version with it. It should be possible to see from the logs what happens when each button is pressed. I’m particularly interested in the lines containing ‘read attr’. You may also want to download the child DHT from https://github.com/aonghus-mor/SmartThingsPublic/blob/master/devicetypes/aonghus-mor/aqara-wall-switch-child.src/aqara-wall-switch-child.groovy
I don’t expect this to work out of the box, but it should give me enough information to work out how different it is from the other switches and whether it’s worthwhile adapting my code or whether it would be better for someone else to startfrom scratch.

Yeelight Smart Bluetooth Wireless Dimmer Wall Light Switch Remote Control Xiaomi Aqara makes a smart home gateway hub that has support for a variety of were the Aqara firewire switches they worked with a custom DTH straight into Some of the smart buttons such as the Aqara Opple and Philips Hue Smart.