Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xiaomi/aqara double button switch with batteries #9

Closed
powermarcel10 opened this issue Dec 1, 2019 · 29 comments
Closed

Xiaomi/aqara double button switch with batteries #9

powermarcel10 opened this issue Dec 1, 2019 · 29 comments
Labels
device request Add a driver for new device

Comments

@powermarcel10
Copy link

Hi,

I hope you can add support for the dubble switch on batteries from xiaomi.

The ID is lumi.sensor_86sw2Un

Here is a link to the github page of the homey app: https://github.com/TedTolboom/com.xiaomi-mi-zigbee/blob/master/config/drivers/sensor_86sw2Un.json

And here some more info from developer.athom.com:

"type":string"EndDevice"
"ieeeAddr":string"0x00158d000164042f"
"nwkAddr":int34540
"manufId":int4151
"epList":[...]3 items
"status":string"offline"
"joinTime":NULL
"name":string"Schakelaar bed"
"profileId":string"260"
"deviceId":string"24321"
"manufacturerName":string"LUMI"
"productId":string"lumi.sensor_86sw2Un"

BTW, I believe that there are 2 different versions of this switch. A 2016 and a 2018 version. I dont know the difference, but in the homey app there are 2 off them.

Best regards,
Marcel

@powermarcel10 powermarcel10 added the device request Add a driver for new device label Dec 1, 2019
@notabene00
Copy link
Owner

I have a couple of them, 2018s. 2018 version, afaik, sends events for double clicks, both button clicks and long clicks.

@powermarcel10
Copy link
Author

Yes thats it. They are not yet compatible right?

@notabene00
Copy link
Owner

Not yet.

@powermarcel10
Copy link
Author

Hi ,

here is some more info about this switch:

Left button:

2019-12-05 13:50:36 [log] [deCONZ] Update for unregistered device { e: 'changed',
id: '77',
r: 'sensors',
state: { buttonevent: 1002, lastupdated: '2019-12-05T12:50:36' },
t: 'event',
uniqueid: '00:15:8d:00:01:e1:16:a1-01-0006' }

Right button:

2019-12-05 13:50:36 [log] [deCONZ] Update for unregistered device { e: 'changed',
id: '77',
r: 'sensors',
state: { buttonevent: 2002, lastupdated: '2019-12-05T12:50:36' },
t: 'event',
uniqueid: '00:15:8d:00:01:e1:16:a1-01-0006' }

Both buttons:

2019-12-05 13:50:38 [log] [deCONZ] Update for unregistered device { e: 'changed',
id: '77',
r: 'sensors',
state: { buttonevent: 3002, lastupdated: '2019-12-05T12:50:38' },
t: 'event',
uniqueid: '00:15:8d:00:01:e1:16:a1-01-0006' }

Cheers,
Marcel

@notabene00
Copy link
Owner

I have v2018s
What their features are not supported in v2016?

@powermarcel10
Copy link
Author

There is no difference in features as far as I know.

@powermarcel10
Copy link
Author

But to be sure I asked Tedtolboom, the developer of the homey app.

@powermarcel10
Copy link
Author

I found it:

WXKG02LM 2016 lumi.sensor_86sw2Un left/right/both: push
WXKG02LM 2018 lumi.remote.b286acn01 left/right/both: single/double-click & hold

@notabene00
Copy link
Owner

Great
Don't know if they are using the same buttonevents for corresponding clicks, but it seems to be so
ETA: next week

@powermarcel10
Copy link
Author

Allright great! Im ready to test!

@notabene00
Copy link
Owner

@powermarcel10 aqara wireless switches here

Is that branch based on latest master?

was not, now synced

@powermarcel10
Copy link
Author

The app does not find my switches.. Tried to look for 2016 and 2018 switches..

@notabene00
Copy link
Owner

@powermarcel10 just now
branch (have not been updated now): https://github.com/fantomnotabene/HomeyCONZ/tree/aqara-wireless-switches
v2018:
IMG_B275BC7B0E8B-1
triggers working

@notabene00
Copy link
Owner

notabene00 commented Dec 11, 2019

What modelids of your switches (v2016 and v2018 accordingly)?

@powermarcel10
Copy link
Author

Sorry I do not understand. What branch should I test now?

@powermarcel10
Copy link
Author

powermarcel10 commented Dec 11, 2019

I'm trying the lumi.sensor_86sw2Un wich is the 2016 version. I only have 2 of them. No 2018.

@notabene00
Copy link
Owner

What branch should I test now?

the same branch, aqara-wireless-switches
"now synced" meant that latest changes in master was merged into aqara-wireless-switches
master has no support for this switches for now
I need confirmation that both versions of the aqara wireless switch are working on this branch
Then I'll merge switches and start working on philips hue remote

I'm trying the lumi.sensor_86sw2Un wich is the 2016 version. I only have 2 of them. No 2018.

v2018 was tested and working, try yours 2016s :)

@powermarcel10
Copy link
Author

Yeah I do understand, but the app is not able to find my 2016 devices. Here is a screenshot so you can see im using the right branch.

IMG_20191211_232750

@notabene00
Copy link
Owner

Снимок экрана 2019-12-12 в 11 19 36

Check your switch's modelid

@powermarcel10
Copy link
Author

lumi.sensor_86sw2Un

@notabene00
Copy link
Owner

no idea what's going wrong

@powermarcel10
Copy link
Author

Hmm thats strange than,. Maybe the 2016 version has other button events?

@powermarcel10
Copy link
Author

This is how it looks like in the foscon app:

Sory I found it! In the deconz software running on my pi, I have discovered another ID. Its lumi.sensor_86sw2. And the other one is not showing anything..

@powermarcel10
Copy link
Author

So I found on a website that there are actually 3 of them:

Naamloos

Crazy people @ Aqara!!

@notabene00
Copy link
Owner

Maybe the 2016 version has other button events

events has nothing to do with discovery

there are actually 3 of them

just added lumi.sensor_86sw2, try

@powermarcel10
Copy link
Author

And they are finally found and working! All buttons are working. Great work and thank for you patience! This one can go to master.

Sidenote: Maybe its good to make a list of supported devices at the frontpage as the list is to long now for only a screenshot 👍

@notabene00
Copy link
Owner

About list: maybe :)
And great. I’ll merge switches and hue remote into master this evening.

Sent with GitHawk

@powermarcel10
Copy link
Author

Great! Than all my devices are working now.. So I dont have to bother you anymore.. Maybe in the future.. Stay tuned! 😋

@notabene00
Copy link
Owner

Hey, what about #10?
Vibration sensor on its way to me :)

Anyway, it was nice to deal with you

Ah. Switches also merged, closing now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
device request Add a driver for new device
Projects
None yet
Development

No branches or pull requests

2 participants