niceboygithub / AqaraGateway

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

G2H 2.2.7_0001.0618 > Is there no method to enable Telnet on this version? #189

Closed wehbs closed 10 months ago

wehbs commented 1 year ago

I tried the hostname sd card file and followed all the instructions including waiting 10+ mins. Sounds like this is probably just not possible on the latest firmware? If that's the case is there any known methods to downgrade the firmware? Any help/guidance is greatly appreciated, thanks!

niceboygithub commented 1 year ago

it shall be work in 2.2.7 check your "hostname". Is it UTF-8 encode and "LF" ending

peros550 commented 1 year ago

I am having the same issue. I created the file in notepad++ checking both the encoding and LF setting. I also tried in version 2.2.5 and then also updated to 2.2.7 , in case 2.2.5 was not a supported version. The SD card seems to be readable by the camera and tried all different filesystems exFAT, FAT32 and NTFS. Any other idea is more than welcome

almirus commented 1 year ago

@wehbs @peros550 https://github.com/niceboygithub/AqaraGateway/issues/202#issuecomment-1761807813

peros550 commented 11 months ago

@almirus unfortunately it didn't work. Any ideas?

almirus commented 11 months ago

@peros550 try to connect USB to TTL (PL2303) via usb connector (D+ ->RX, D- ->TX), and check boot log

peros550 commented 11 months ago

I don't have access to my tools. The problem though is, before I try to open it, that I tried the SD card method to two G2H cameras, one running 2.2.7 and another running 2.2.5 version. I waited for quite a while and telnet didn't work for both of them. I even used directly your file.

almirus commented 11 months ago

@peros550 Is the camera definitely European? Not for the Chinese market? Does it work in the Aqara app?

peros550 commented 11 months ago

I bought these cameras from Aliexpress, probably they were not for European market. The camera works with the aqara app, but probably I have to set mainland china region for them to work. I am not using the aqara app at all, my main use is with homekit. I also have blocked internet access which shouldn't conflict with telnet, yet I also tried having temporarily internet access allowed.

The SD card hack works only for International version of the camera?

almirus commented 11 months ago

Of course there should be no difference, but telnet is tested on the EU model.

peros550 commented 11 months ago

Should I pair the camera using the aqara app and try again?

peros550 commented 11 months ago

So I am glad to inform you that I succesfully enabled telnet on the camera running 2.2.5 firmware. The one running 2.2.7 will have to wait until next weekend. Here are my steps: a) Logged in Aqara app. (I had to allow Internet access on my router's access lists) b) Set any recording function to off. In any case the camera had stopped recording much earlier because of internet being blocked c) Format the SD using the camera d) copied the hostname file posted earlier directly to the SD e) boot the camera with the SD inserted

pax0707 commented 9 months ago

So I am glad to inform you that I succesfully enabled telnet on the camera running 2.2.5 firmware. The one running 2.2.7 will have to wait until next weekend. Here are my steps: a) Logged in Aqara app. (I had to allow Internet access on my router's access lists) b) Set any recording function to off. In any case the camera had stopped recording much earlier because of internet being blocked c) Format the SD using the camera d) copied the hostname file posted earlier directly to the SD e) boot the camera with the SD inserted

This did not work for me on 2.2.7.

What worked (after this):

#!/bin/sh
echo "root:password" | chpasswd
export WITH_TELNET="y"
almirus commented 9 months ago

@pax0707 https://github.com/niceboygithub/AqaraGateway/issues/202#issuecomment-1761807813