diff --git a/README.md b/README.md index 64930af..f86b640 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ You can use [custom open telnet command](https://gist.github.com/zvldz/1bd6b2153 After telnet to gateway via putty, there are two methods (Flash or Not) to enable telnet and public mqtt. -## Not Flash modified firmware method (NOT for G2H, E1 hub, G3, G2H Pro) +## Not Flash modified firmware method (NOT for G2H, E1 hub, G3, G2H Pro, M2 2022, M3) ```shell mkdir /data/bin @@ -81,9 +81,15 @@ cd /data/bin wget -O /tmp/curl "http://master.dl.sourceforge.net/project/aqarahub/binutils/curl?viasf=1"; chmod +x /tmp/curl /tmp/curl -s -k -L -o /data/bin/mosquitto https://raw.githubusercontent.com/niceboygithub/AqaraCameraHubfw/main/binutils/mosquitto_g2hpro; chmod a+x /data/bin/mosquitto +mkdir /data/scripts +cd /data/scripts +echo -e "#!/bin/sh\n\nfw_manager.sh -r\nfw_manager.sh -t -k" > /data/scripts/post_init.sh +chmod +x /data/scripts/post_init.sh +chattr +i /data/scripts; chattr +i /data/scripts/post_init.sh + ``` -## Not Flash modified firmware method (for E1 hub, G3, M2 2022) +## Not Flash modified firmware method (for E1 hub, G3, M2 2022, M3) ```shell mkdir /data/bin @@ -91,6 +97,12 @@ cd /data/bin wget -O /tmp/curl "http://master.dl.sourceforge.net/project/aqarahub/binutils/curl?viasf=1"; chmod +x /tmp/curl /tmp/curl -s -k -L -o /data/bin/mosquitto https://raw.githubusercontent.com/niceboygithub/AqaraCameraHubfw/main/binutils/mosquitto_e1; chmod a+x /data/bin/mosquitto +mkdir /data/scripts +cd /data/scripts +echo -e "#!/bin/sh\n\nfw_manager.sh -r\nfw_manager.sh -t -k" > /data/scripts/post_init.sh +chmod +x /data/scripts/post_init.sh +chattr +i /data/scripts; chattr +i /data/scripts/post_init.sh + ``` ## Flash M1S modified firmware method @@ -133,15 +145,21 @@ If there is no any error generated, then restart gateway by reboot command. *Note: It updates firmware only if the checksum of the downloaded file is correct.* +## For M2 old EU/Global +Use [this tool](https://github.com/niceboygithub/AqaraM1SM2fw/tree/main/tools#gateway-global-tool) to clean telnet login password. The firmware before the version 4.0.4 was enabled telnetd as default. After clear the login password, you can this integration now. + +``` +chmod a+w /data/scripts/post_init.sh +echo -e "#!/bin/sh\n\nfw_manager.sh -t -k" > /data/scripts/post_init.sh +chattr +i post_init.sh +``` + ## For G2H There is a way to [enable telnetd](https://github.com/niceboygithub/AqaraCameraHubfw/blob/main/binutils/README.md#aqara-camera-hub-g2g2h-znsxj12lm-related-binutils). ## For G3, G2H Pro There is a way to [enable telnetd](https://github.com/Wh1terat/aQRootG3) from #Wh1terat. After enabled telnet, you need use putty to telnet . Then enter the following commands. -## For M2 old EU/Global -Use [this tool](https://github.com/niceboygithub/AqaraM1SM2fw/tree/main/tools#gateway-global-tool) to clean telnet login password. The firmware before the version 4.0.4 was enabled telnetd as default. After clear the login password, you can this integration now. - ``` chmod a+w /data/scripts/post_init.sh echo -e "#!/bin/sh\n\nasetprop sys.camera_ptz_moving true\nfw_manager.sh -r\nfw_manager.sh -t -k" > /data/scripts/post_init.sh @@ -168,6 +186,11 @@ touch /data/ota_dir/lumi_fw.tar chattr +i /data/ota_dir/lumi_fw.tar ``` +*Flash G3 customized firmware* + +USING AT YOUR OWN RISK. +Go to this [link](https://github.com/niceboygithub/AqaraCameraHubfw/tree/main/modified/G3) and follow the intrusion after enabled telnet. + ## How to check this component is working properly. Go to Configuration->Info->system_health diff --git a/custom_components/aqara_gateway/core/utils.py b/custom_components/aqara_gateway/core/utils.py index df45ec9..f710f9f 100755 --- a/custom_components/aqara_gateway/core/utils.py +++ b/custom_components/aqara_gateway/core/utils.py @@ -47,6 +47,7 @@ 'lumi.camera.agl001': ["Aqara", "Camera Hub G2H Pro", "ZNSXJ15LM"], 'lumi.gateway.iragl8': ["Aqara", "Gateway M2 2022", "ZHWG19LM"], # tested 'lumi.gateway.acn012': ["Aqara", "Gateway M3", "ZHWG24LM"], + 'lumi.gateway.agl004': ["Aqara", "Gateway M3", "HM-G01D"], 'params': [ ['8.0.2012', None, 'power_tx', None], ['8.0.2024', None, 'channel', None],