niou-ns / homebridge-aqara-hub-lux

MIT License
11 stars 1 forks source link

Support for new M2 Aqara hub ? #7

Open vskal opened 3 years ago

vskal commented 3 years ago

Thanks for the plugin !

Any chance to add the new Aqara M2 hub ? The device type is: lumi.gateway.iragl7

codyc1515 commented 3 years ago

I have the new E1 hub and will take a look at if it’s possible soon.

codyc1515 commented 2 years ago

Just revisiting this again now. Did you have some issue with it not working or was it just not in the supported list?

vskal commented 2 years ago

I have linked many Mi devices with their tokens but the M2 hub does not work with the Mi Home app. It only works with the Aqara app. So the Xiaomi database does not include a token for the M2 hub, and therefore, I cannot test if it works.

I tried the reciprocal procedure from the plugin notes to find the correct directory for the token in my backup. The best candidate folder I could find is named com.lumiunited.pre.homekit Out of the 4 sqlite files only the following 2 seem usefull: data.sql which has a structure but no data and KLMPositionFrameworkDataabase.sql which has a HomeID number but nothing named Token or similar.

I am a bit stuck without the token and it seems that the M2 is much harder to work with than other hubs.

zormic commented 2 years ago

Thanks for the plugin !

Any chance to add the new Aqara M2 hub ? The device type is: lumi.gateway.iragl7

I have the same situation. Did you find any workaround?

Bogdis commented 5 months ago

Anyone managed to get the token from the Aqara app?