Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
niceboy committed Feb 1, 2024
1 parent d0c561f commit 14baf5c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
33 changes: 28 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -81,16 +81,28 @@ 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
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
Expand Down Expand Up @@ -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 <ip of your G3>. 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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions custom_components/aqara_gateway/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 14baf5c

Please sign in to comment.