You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Xiaomi Multimode Gateway on fw 1.5.5_0006 and higher #1057
Well. You need to be more careful and stop upgrading to unsupported firmwares. Fortunately for you, there is a way to fix it.
Software method
If the gateway previously worked in Home Assistant integration, you can enable Telnet on firmware 1.5.5:
5 clicks, pause, 2 clicks, pause, 2 clicks, pause, 2 clicks, pause, 2 clicks, pause, 2 clicks, pause, 2 clicks, pause. https://www.youtube.com/shorts/qJ21wWNE1Gg
Warning! Incorrect clicks can reset the gateway. 10 clicks - reset gateway.
If the gateway has not previously worked in Home Assistant integration, you can enable Telnet, but it will have a password, which is impossible to find out. So you need to flash your gateway with UART: https://github.com/AlexxIT/XiaomiGateway3/wiki
Reacted by lxz946786639, oimag, cxfksword, Taktaz Co., Yi Zhai, chenchk, xrh0905, Necroneco, Taktaz Group, Jiang Wenzhang and 5 more
Reacted by LowB
Reacted by Cesar Romero , HomeOS, Daniel Fanica and Hero
Sorry. Telnet cannot be opened on this firmware using the software method. You either have to wait for a new way to open the Telnet. Or solder the gateway and downgrade the firmware. Or throw the gateway in the trash :)
Sorry. Telnet cannot be opened on this firmware using the software method. You either have to wait for a new way to open the Telnet. Or solder the gateway and downgrade the firmware. Or throw the gateway in the trash :)
is it any way to downgrade if the firmware is 1.5.5?
I accidentally clicked on the upgrade and ended up with version 1.5.5_0006. The Xiaomi app kept prompting you to click on the upgrade button. Finally, I found this solution and downgraded back to 1.5.0 using UART method. Then, I manually upgraded to 15.4. Many thanks to @AlexxIT for providing the detailed documentation. The UART method is indeed not easy for me. I have no idea what UART is, and I got stuck in the process because I couldn't find the firmware file like 15.x.uart. I also tried this method mentioned at https://github.com/AlexxIT/XiaomiGateway3/wiki/Downgrade-Firmware#solder-uart. Fortunately, after restarting, I was lucky enough to find it back at version 15.0. I'm happy now!
Request for support Xiaomi Multimode Gateway firmware 1.5.5_0006,thanks.
There is another easy way, no need downgrade FW or TRASH your Xiaomi devices, which is just switch to another Xiaomi integration from HACS that works perfectly fine (tested on Google Home and Apple Home like an old day).
But i need to thank to AlexxIT all these years working hard on the updates and make Xiaomi devices used to integrated well with HA.
Request for support Xiaomi Multimode Gateway firmware 1.5.5_0006,thanks.
There is another easy way, no need downgrade FW or TRASH your Xiaomi devices, which is just switch to another Xiaomi integration from HACS that works perfectly fine (tested on Google Home and Apple Home like an old day). But i need to thank to AlexxIT all these years working hard on the updates and make Xiaomi devices used to integrated well with HA.
Request for support Xiaomi Multimode Gateway firmware 1.5.5_0006,thanks.
There is another easy way, no need downgrade FW or TRASH your Xiaomi devices, which is just switch to another Xiaomi integration from HACS that works perfectly fine (tested on Google Home and Apple Home like an old day). But i need to thank to AlexxIT all these years working hard on the updates and make Xiaomi devices used to integrated well with HA.
Xiaomi Miot Auto can find the gateway, but it is often unavailable
Request for support Xiaomi Multimode Gateway firmware 1.5.5_0006,thanks.
There is another easy way, no need downgrade FW or TRASH your Xiaomi devices, which is just switch to another Xiaomi integration from HACS that works perfectly fine (tested on Google Home and Apple Home like an old day). But i need to thank to AlexxIT all these years working hard on the updates and make Xiaomi devices used to integrated well with HA.
Xiaomi Miot Auto can find the gateway, but it is often unavailable
or Xiaomi MIoT ok!. But need AlexxIT fix bug. thank to AlexxIT !
Request for support Xiaomi Multimode Gateway firmware 1.5.5_0006,thanks.
There is another easy way, no need downgrade FW or TRASH your Xiaomi devices, which is just switch to another Xiaomi integration from HACS that works perfectly fine (tested on Google Home and Apple Home like an old day). But i need to thank to AlexxIT all these years working hard on the updates and make Xiaomi devices used to integrated well with HA.
Xiaomi Miot Auto can find the gateway, but it is often unavailable
Xiaomi Miot Auto with a hub and all devices that are connected through it works EXCLUSIVELY THROUGH THE CLOUD. Especially if your hub is configured for Chinese servers, then you can get a significant delay in comparison with this integration, not to mention privacy.
AlexxIT, thank you so much for what you do. It's just superb.
I have found a way to activate telnet on firmware 1.5.5, but it requires the key (not a token!) from the device. Unfortunately, I have not yet discovered a way to obtain it without telnet already being open. However, if you have saved it somewhere before updating to 1.5.5, the re-opening telnet process will be very straightforward.
Reacted by Bruce Teng and xrh0905
Reacted by Ken Yang, Bruce Teng, chenchk and xrh0905
I have three p3 gateways, one 4.0.2_0024_0644. Two 4.0.1_0004, I tried to use 5-2-2-2-2 to open telnet (the green light is on), I tried to scan with nmap and the results are as follows
(This is a P3 with firmware 4.0.1_0004)
PS C:\Users\Plaud>nmap -p 22-23 192.168.8.243
Starting Nmap 7.94 ( https://nmap.org ) at 2023-06-06 08:53 中国标准时间
Nmap scan report for AC-Controller-2936.lan (192.168.8.243)
Host is up (0.040s latency).
PORT STATE SERVICE
22/tcp closed ssh
23/tcp open telnet
MAC Address: 54:EF:44:2E:1F:FF (Lumi United Technology)
Nmap done: 1 IP address (1 host up) scanned in 4.06 seconds
if you did not use them in HA before they still have password on telnet. clicks enable tty/telnetd and are solution only for ppl who deleted password before, but updated to locked firmware.
Well. You need to be more careful and stop upgrading to unsupported firmwares. Fortunately for you, there is a way to fix it.
Software method
If the gateway previously worked in Home Assistant integration, you can enable Telnet on firmware 1.5.5: 5 clicks, pause, 2 clicks, pause, 2 clicks, pause, 2 clicks, pause, 2 clicks, pause, 2 clicks, pause, 2 clicks, pause. https://www.youtube.com/shorts/qJ21wWNE1Gg
Warning! Incorrect clicks can reset the gateway. 10 clicks - reset gateway.
If the gateway has not previously worked in Home Assistant integration, you can enable Telnet, but it will have a password, which is impossible to find out. So you need to flash your gateway with UART: https://github.com/AlexxIT/XiaomiGateway3/wiki
How can i disable automated udpate ? I woke up this morning and my gateway was upgraded :/
This worked wonders for me. I upgraded a few days ago without knowing that it will break my integration. I did try for about 1-2 hours to get open the telnet but eventually managed. Thanks everyone in this discussion for all the info!
Is it likely or possible that this will ever be fixed in a more permanent way? I have noticed that for me, the Telnet gets broken every time the gateway loses power. Then by the time you have gotten the click timing correct in order to re enable it, you end up hard resetting the device by accident and losing your child devices. This is a real pain.
changed the title [-]Request for support Xiaomi Multimode Gateway firmware 1.5.5_0006[/-][+]Xiaomi Multimode Gateway on fw 1.5.5_0006 and higher[/+]on Mar 31, 2024
Activity
AlexxIT commentedon May 11, 2023
Well. You need to be more careful and stop upgrading to unsupported firmwares. Fortunately for you, there is a way to fix it.
Software method
If the gateway previously worked in Home Assistant integration, you can enable Telnet on firmware 1.5.5:
5 clicks, pause, 2 clicks, pause, 2 clicks, pause, 2 clicks, pause, 2 clicks, pause, 2 clicks, pause, 2 clicks, pause.
https://www.youtube.com/shorts/qJ21wWNE1Gg
Warning! Incorrect clicks can reset the gateway. 10 clicks - reset gateway.
Then you need to install any supported firmware:
https://github.com/zvldz/mgl03_fw/tree/main/firmware
Hardware method
If the gateway has not previously worked in Home Assistant integration, you can enable Telnet, but it will have a password, which is impossible to find out. So you need to flash your gateway with UART:
https://github.com/AlexxIT/XiaomiGateway3/wiki
lxz946786639 commentedon May 14, 2023
haha
18605000242 commentedon May 15, 2023
is it any way to downgrade if the firmware is 1.5.5?
AlexxIT commentedon May 15, 2023
Only UART method https://github.com/AlexxIT/XiaomiGateway3/wiki
taktazgroup commentedon May 20, 2023
Can the problem be solved in the next update? There is no way to inform Xiaomi to open the talent port?
gewanbo commentedon May 24, 2023
I accidentally clicked on the upgrade and ended up with version 1.5.5_0006. The Xiaomi app kept prompting you to click on the upgrade button. Finally, I found this solution and downgraded back to 1.5.0 using UART method. Then, I manually upgraded to 15.4. Many thanks to @AlexxIT for providing the detailed documentation. The UART method is indeed not easy for me. I have no idea what UART is, and I got stuck in the process because I couldn't find the firmware file like 15.x.uart. I also tried this method mentioned at https://github.com/AlexxIT/XiaomiGateway3/wiki/Downgrade-Firmware#solder-uart. Fortunately, after restarting, I was lucky enough to find it back at version 15.0. I'm happy now!
benghee commentedon May 29, 2023
There is another easy way, no need downgrade FW or TRASH your Xiaomi devices, which is just switch to another Xiaomi integration from HACS that works perfectly fine (tested on Google Home and Apple Home like an old day).
But i need to thank to AlexxIT all these years working hard on the updates and make Xiaomi devices used to integrated well with HA.
taktazgroup commentedon May 29, 2023
hi , please say hacs name , thanks
TwKenYang commentedon May 30, 2023
Xiaomi Miot Auto can find the gateway, but it is often unavailable
thanhbacmc commentedon May 31, 2023
or Xiaomi MIoT ok!. But need AlexxIT fix bug. thank to AlexxIT !
floingnom commentedon May 31, 2023
That's helps:
/config/custom_components/xiaomi_miot/core/xiaomi_cloud.py:68
/config/custom_components/xiaomi_miot/core/xiaomi_cloud.py:50
Algorithm0 commentedon May 31, 2023
Xiaomi Miot Auto with a hub and all devices that are connected through it works EXCLUSIVELY THROUGH THE CLOUD. Especially if your hub is configured for Chinese servers, then you can get a significant delay in comparison with this integration, not to mention privacy.
AlexxIT, thank you so much for what you do. It's just superb.
skrashevich commentedon Jun 2, 2023
I have found a way to activate telnet on firmware 1.5.5, but it requires the key (not a token!) from the device. Unfortunately, I have not yet discovered a way to obtain it without telnet already being open. However, if you have saved it somewhere before updating to 1.5.5, the re-opening telnet process will be very straightforward.
8 remaining items
Plaudern commentedon Jun 6, 2023
I have three p3 gateways, one 4.0.2_0024_0644. Two 4.0.1_0004, I tried to use 5-2-2-2-2 to open telnet (the green light is on), I tried to scan with nmap and the results are as follows
(This is a P3 with firmware 4.0.1_0004)
and then I used telnet to connect
What should I do? Does it mean that I can only go through the flash UART method?
rezmus commentedon Jun 6, 2023
if you did not use them in HA before they still have password on telnet. clicks enable tty/telnetd and are solution only for ppl who deleted password before, but updated to locked firmware.
ThomasDutartre commentedon Jun 11, 2023
How can i disable automated udpate ? I woke up this morning and my gateway was upgraded :/
AlexxIT commentedon Jun 12, 2023
I described about version in the blog AlexxIT/Blog#13
dfanica commentedon Jun 20, 2023
This worked wonders for me. I upgraded a few days ago without knowing that it will break my integration. I did try for about 1-2 hours to get open the telnet but eventually managed. Thanks everyone in this discussion for all the info!
ifflanb commentedon Jun 28, 2023
Is it likely or possible that this will ever be fixed in a more permanent way? I have noticed that for me, the Telnet gets broken every time the gateway loses power. Then by the time you have gotten the click timing correct in order to re enable it, you end up hard resetting the device by accident and losing your child devices. This is a real pain.
rezmus commentedon Jun 28, 2023
clicks are meant only for temporary telnet access so you can get gw cloud key.
integration should be able to enable telnet on 1.5.5 when key is filled.
ifflanb commentedon Jun 28, 2023
Thanks @rezmus . I already have a key specified in the Gateway config. Do the keys change?
rezmus commentedon Jun 28, 2023
it is set in factory (unique per device) and never changes because mijia cloud auth depends on it.
ifflanb commentedon Jun 29, 2023
Hmm ok. I guess mine is ok then. So your saying that you can restart your gateway and the Telnet remains working?
[-]Request for support Xiaomi Multimode Gateway firmware 1.5.5_0006[/-][+]Xiaomi Multimode Gateway on fw 1.5.5_0006 and higher[/+]Neznalkaknazvat commentedon Sep 8, 2025
I used wifi, first connect with cloud, copy key and use ip with telnet command