niceboygithub / AqaraGateway

Aqara Gateway/Hub integration for Home Assistant
523 stars 66 forks source link

M2 EU with modified firmware #178

Closed Mq93 closed 1 year ago

Mq93 commented 1 year ago

I was able to flash M2 EU with modified firmware (https://github.com/niceboygithub/AqaraM1SM2fw/issues/50). I can confirm that telnet is working. I also ran the m2_update.sh (https://github.com/niceboygithub/AqaraM1SM2fw/issues/50#issuecomment-1249973058)

However, when I try to add aqara gateway integration after adding host IP it starts loading then empty dialog screen comes: image

Homeassistant logs also show no information. No devices/integration show after the dialog box.

Any help is appreciated.

niceboygithub commented 1 year ago

What is the model of your Hub?

Mq93 commented 1 year ago

Model is HM2-G01 SKU is AG035EUB01

niceboygithub commented 1 year ago

another model number Telnet then enter the command after log in ''' agetprop |grep model '''

Mq93 commented 1 year ago

It is lumi.gateway.iragl5

niceboygithub commented 1 year ago

iragl5 shall be CN version. It shall works well.

Mq93 commented 1 year ago

“getprop | grep lumi.gateway” gives:

“[persist.sys.model]: [lumi.gateway.agl001]” “[ro.sys.model]: [lumi.gateway.iragl5]”

When I run m2_update.sh from your repo it shows that model is unsupported but other one from https://github.com/niceboygithub/AqaraM1SM2fw/issues/50#issuecomment-1249973058 is okay.

I am not sure how to proceed / if this model is supported

niceboygithub commented 1 year ago

agl01 is not CN version. m2_update.sh does not support agl01.

If you can use AqaraGateway.exe to flash and boot up without problem after flashed, it means that the M2 uses new flash and the firmware was not signed.

You can add the model to "utils.py" to make AqaraGateway support it.

Mq93 commented 1 year ago

Added it to devices in utils.py and now it works.

Thank you for your help.

shift-del1 commented 1 year ago

@Mq93: after flashing thebM2 EU with the unsigned Chinese firmware, which server you can connect the hub to? Which region is available for the accessories? Can you use Aqara Home, Apple Home (through Apple Homekit) and Home Assistant (through telnet) at the same time? Thank you.

FastFreddi commented 1 year ago

How do you add agl001 to utils.py? Is it a file on the device accessed through telnet?

FastFreddi commented 1 year ago

Figured it out, its in home assistant folder and now it works