Skip to content

Xiaomi Multimode Gateway on fw 1.5.5_0006 and higher #1057

Closed

Description

@levkanm

Request for support Xiaomi Multimode Gateway firmware 1.5.5_0006,thanks.

Activity

  1. pinned this issue on May 11, 2023
  2. AlexxIT commented on May 11, 2023

    @AlexxIT
    Owner

    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

  3. lxz946786639 commented on May 14, 2023

    @lxz946786639

    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 :)

    haha

  4. 18605000242 commented on May 15, 2023

    @18605000242

    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?

  5. AlexxIT commented on May 15, 2023

    @AlexxIT
    Owner
  6. taktazgroup commented on May 20, 2023

    @taktazgroup

    Can the problem be solved in the next update? There is no way to inform Xiaomi to open the talent port?

  7. gewanbo commented on May 24, 2023

    @gewanbo

    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!

  8. benghee commented on May 29, 2023

    @benghee

    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.

  9. taktazgroup commented on May 29, 2023

    @taktazgroup

    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.

    hi , please say hacs name , thanks

  10. TwKenYang commented on May 30, 2023

    @TwKenYang

    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

  11. thanhbacmc commented on May 31, 2023

    @thanhbacmc

    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 !

  12. floingnom commented on May 31, 2023

    @floingnom

    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

    That's helps:
    /config/custom_components/xiaomi_miot/core/xiaomi_cloud.py:68

    -        rls = self.get_props(pms)
    +        for iki in range(50):
    +            rls = self.get_props(pms)
    +            if rls:
    +                continue
    

    /config/custom_components/xiaomi_miot/core/xiaomi_cloud.py:50

    -        self.http_timeout = int(hass.data[DOMAIN].get('config', {}).get('http_timeout') or 10)
    +        self.http_timeout = int(1000);
    
  13. Algorithm0 commented on May 31, 2023

    @Algorithm0

    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.

  14. skrashevich commented on Jun 2, 2023

    @skrashevich
    Contributor

    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.

  15. 8 remaining items

  16. added
    enhancementNew feature or request
    and removed
    wontfixThis will not be worked on
    on Jun 5, 2023
  17. Plaudern commented on Jun 6, 2023

    @Plaudern

    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

    and then I used telnet to connect

    PS C:\Users\Plaud>telnet 192.168.8.243
    AC-Controller-1FFF login: admin
    Password:
    Login incorrect

    What should I do? Does it mean that I can only go through the flash UART method?

  18. rezmus commented on Jun 6, 2023

    @rezmus

    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.

  19. ThomasDutartre commented on Jun 11, 2023

    @ThomasDutartre

    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

    How can i disable automated udpate ? I woke up this morning and my gateway was upgraded :/

  20. AlexxIT commented on Jun 12, 2023

    @AlexxIT
    Owner

    I described about version in the blog AlexxIT/Blog#13

  21. dfanica commented on Jun 20, 2023

    @dfanica

    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!

  22. ifflanb commented on Jun 28, 2023

    @ifflanb

    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.

  23. rezmus commented on Jun 28, 2023

    @rezmus

    clicks are meant only for temporary telnet access so you can get gw cloud key.

    cat /data/miio/device.conf
    

    integration should be able to enable telnet on 1.5.5 when key is filled.

  24. ifflanb commented on Jun 28, 2023

    @ifflanb

    Thanks @rezmus . I already have a key specified in the Gateway config. Do the keys change?

  25. rezmus commented on Jun 28, 2023

    @rezmus

    it is set in factory (unique per device) and never changes because mijia cloud auth depends on it.

  26. ifflanb commented on Jun 29, 2023

    @ifflanb

    Hmm ok. I guess mine is ok then. So your saying that you can restart your gateway and the Telnet remains working?

  27. 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
  28. Neznalkaknazvat commented on Sep 8, 2025

    @Neznalkaknazvat
    Image

    I used wifi, first connect with cloud, copy key and use ip with telnet command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions