notabene00 / HomeyCONZ

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

Smart Switch WXKG11LM Rev 2 and wall switch WXKG03LM not recognized in app. #37

Open snippem opened 4 years ago

snippem commented 4 years ago

Love your app it is working great with only a few minor bugs. Just got 2 new aqara buttons revision 2 and they are not recognized in the homey app. The version WXKG11LM version 20161128 works and is recognized but the WXKG11LM rev 2 version 20180525 is not recognized. Also got 4 aqara wireless wall switches WXKG03LM 2018 versions and are not recognized in the app in homey. The wall switch with 2 buttons (WXKG02LM rev 2 version 20180809) are working great. Hope there is a way to add Support for these devices.

notabene00 commented 4 years ago

Can you try https://github.com/fantomnotabene/HomeyCONZ/tree/aqara-wireless-switches?

snippem commented 4 years ago

okay installed te version. i can install the WXKG11LM rev 2 but not with the smart switch button but with the double wall switch button 2018. And all the actions i can those in a flow are ment for a double switch. havent had the time to test a WXKG03LM.

notabene00 commented 4 years ago

So WXKG11LM rev 2 (lumi.remote.b1acn01) is a single switch? And how many buttons has WXKG03LM?

snippem commented 4 years ago

So WXKG11LM rev 2 (lumi.remote.b1acn01) is a single switch? And how many buttons has WXKG03LM?

The WXKG11LM rev 2 is a single push button the 2016 version is called in your app Aqara button. It has the following function when added to the aqara app developed by Ted tolboom: funtion 1 a button is pushed. funtion 2 it is called a scene is activated then you have 4 options: -long push -press once -press twice -release button. The WXKG03LM is a single switch version of the double switch of the one discussed in this bug/device request https://github.com/fantomnotabene/HomeyCONZ/issues/9

notabene00 commented 4 years ago

It seems I should create separate drivers for these devices then. Are both of them has events you mentioned?

snippem commented 4 years ago

It seems I should create separate drivers for these devices then. Are both of them has events you mentioned?

The WXKG11LM rev 2 (this is what ted tolbooms homey app does) funtion 1 a button is pushed. funtion 2 it is called a scene is activated then you have 4 options: -long push -press once -press twice -release button

here is the information taken from homey for this device: "type":string"EndDevice" "ieeeAddr":string"0x00158d0004050845" "nwkAddr":int30593 "manufId":int4151 "manufName":string"LUMI" "powerSource":string"Battery" "modelId":string"lumi.remote.b1acn01" "epList":[...]1 item "status":string"online" "joinTime":int1579273438 "name":string"Hobby kast schakelaar" "profileId":string"260" "deviceId":string"259" "manufacturerName":string"LUMI" "productId":string"lumi.remote.b1acn01"

The WXKG03LM 2018(this are the actions what your app has for the double switch) -button clicked -button double clicked -button held

here is the information taken from homey for this device: "type":string"EndDevice" "ieeeAddr":string"0x00158d000355a32d" "nwkAddr":int43183 "manufId":int4151 "manufName":string"LUMI" "powerSource":string"Battery" "modelId":string"lumi.remote.b186acn01" "epList":[...]3 items "status":string"offline" "joinTime":NULL "name":string"Hal bg schakelaar" "profileId":string"260" "deviceId":string"24321" "manufacturerName":string"LUMI" "productId":string"lumi.remote.b186acn01"

michelhelsdingen commented 4 years ago

Hi @fantomnotabene and thanks for your work! I can now add the following smart (Single Button) smart switch; Smart Switch WXKG11LM Rev.2, Version 20180525 But as @snippem explained I need to select 'Aqara Wireless 2018' when adding the switch in the Homey app where I would have expected to use the 'Aqara button' option. So for now I can use it altough it would be nice if the above mentioned device would be sees as a button instead of a double switch :)

notabene00 commented 4 years ago

Oh, I misunderstood this https://github.com/fantomnotabene/HomeyCONZ/issues/37#issuecomment-575946375 Now I see what's the problem I thought that these two devices has switch form-factor, not one switch and one button So, please, in the future, create a separate issue for every one device :)

notabene00 commented 4 years ago

@michelhelsdingen can you try now? -> https://github.com/fantomnotabene/HomeyCONZ/tree/aqara-wireless-switches and if you have it, WXKG03LM too

michelhelsdingen commented 4 years ago

It seems the app crashes after i install it, i am now rebooting Homey to check

michelhelsdingen commented 4 years ago

Also after a Homey reboot the app crashes. When reverting back to the previous commit it works again... Thanks again for all your work!

notabene00 commented 4 years ago

@michelhelsdingen yea, sorry, there was an extra parenthesis, fixed now

michelhelsdingen commented 4 years ago

Lol no worries trying again now

michelhelsdingen commented 4 years ago

@fantomnotabene it seems i cannot find a freshly added Smart SwitchWXKG11LM Rev.2 version 20180525. Not via Aqara Button, not via Aqara Wireless 2016 and not via Aqara Wireless 2016... Weird...

michelhelsdingen commented 4 years ago

@fantomnotabene Also not finding them anymore with the 'old' app so doing some troubleshooting. Also restarting my DeCONZ docker to test some stuff. Hang on :)

notabene00 commented 4 years ago

So weird. If Homey tells it was added, it should be there. Okay, misunderstanding once again. Buttons were not found in homeyCONZ at all, and added was related to deCONZ Waiting...

michelhelsdingen commented 4 years ago

Well, I can see the switch in DeCONZ, but that was working already. The only thing was that in the homey app i needed to add is as a double switch instead of a button. Now I cannot find a newly added button under any of the options in the Homeyconz app. Not sure whats happening... Homey doenst add anything because it doenst find it after i select aqara button or any of the other. I will try another button

michelhelsdingen commented 4 years ago

Lol somehow i am using version .1 my bad let me try .2

notabene00 commented 4 years ago

.1 is master, .2 is the right branch ;)

michelhelsdingen commented 4 years ago

It works! Sent you a small donation for your trouble!

notabene00 commented 4 years ago

Great! @michelhelsdingen nice to deal with you

P.S. Don't mean to bother you, but do you have WXKG03LM to test em too?

michelhelsdingen commented 4 years ago

@fantomnotabene same with you, I think I have one @ work. Will check asap.

notabene00 commented 4 years ago

@michelhelsdingen thank you in advance @snippem try the latest changes if you can

As I understand, as of WXKG03LM is a one-button version of the device with switch form-factor of 2016, it is now packed under Aqara Wireless 2016 I'll create a separate driver for them, since they're one-button, but they're there for now

snippem commented 4 years ago

I cannot test the changes as my whole setup is now on home assistant. Homey has found another owner. Hope there is someone that can test this for u.

notabene00 commented 4 years ago

@snippem my deCONZ is RaspBee on RPi3b and powered by deCONZ addon for hass.io as well ;)

snippem commented 4 years ago

@fantomnotabene do not really understand how to test your app when i do not own a athom homey. Correct me if i am wrong :-)

notabene00 commented 4 years ago

@snippem no-no, it was just like "hey, bro" ;)