notabene00 / HomeyCONZ

deCONZ app for Athom Homey smart home controller
GNU General Public License v3.0
18 stars 11 forks source link

Xiaomi/aqara double button switch with batteries #9

Closed powermarcel10 closed 4 years ago

powermarcel10 commented 4 years ago

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

notabene00 commented 4 years ago

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

powermarcel10 commented 4 years ago

Yes thats it. They are not yet compatible right?

notabene00 commented 4 years ago

Not yet.

powermarcel10 commented 4 years ago

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 commented 4 years ago

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

powermarcel10 commented 4 years ago

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

powermarcel10 commented 4 years ago

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

powermarcel10 commented 4 years ago

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 commented 4 years ago

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

powermarcel10 commented 4 years ago

Allright great! Im ready to test!

notabene00 commented 4 years ago

@powermarcel10 aqara wireless switches here

Is that branch based on latest master?

was not, now synced

powermarcel10 commented 4 years ago

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

notabene00 commented 4 years ago

@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 commented 4 years ago

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

powermarcel10 commented 4 years ago

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

powermarcel10 commented 4 years ago

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

notabene00 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago
Снимок экрана 2019-12-12 в 11 19 36

Check your switch's modelid

powermarcel10 commented 4 years ago

lumi.sensor_86sw2Un

notabene00 commented 4 years ago

no idea what's going wrong

powermarcel10 commented 4 years ago

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

powermarcel10 commented 4 years ago

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 commented 4 years ago

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

Naamloos

Crazy people @ Aqara!!

notabene00 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

Sent with GitHawk

powermarcel10 commented 4 years ago

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

notabene00 commented 4 years ago

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