Xiaomi/Mii Binding Issue

Hi,
Does anyone know if something has happened to the Xiaomi binding recently?
I have two Xiaomi G1 Vacuums that have suddenly lost connectivity with my OpenHab install.
Restarting OpenHab hasn’t worked and I’m seeing this in the logs:

2022-03-02 19:45:47.991 [WARN ] [nal.transport.MiIoAsyncCommunication] - Could not parse '<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>............</title>
  <link rel="stylesheet" type="text/css" href="https://p.dun.mi.com/static/css/bad_gateway.css">
</head>
<body>
  <div class="container">
    <div class="top">
      <div class="top__title">
        <span class="top__title--main">Error 502</span>
      </div>
      <div class="top__error">............</div>
    </div>
    <div class="center">
      <div class="center__block">
        <div class="center__block--top is-right">
          <img class="center__block--image" src="https://p.dun.mi.com/static/images/img_bad_gateway/browser.png" alt="browser">
        </div>
        <div class="center__block--sub-title">.........</div>
        <div class="center__block--status">............</div>
      </div>
      <div class="center__block">
        <div class="center__block--top">
          <img class="center__block--image arrow" src="https://p.dun.mi.com/static/images/img_bad_gateway/arrow.png" alt="browser">
        </div>
      </div>
      <div class="center__block">
        <div class="center__block--top is-right cloud">
          <img class="center__block--image" src="https://p.dun.mi.com/static/images/img_bad_gateway/cloud.png" alt="browser">
        </div>
        <div class="center__block--sub-title">..................</div>
        <div class="center__block--status">............</div>
      </div>
      <div class="center__block">
        <div class="center__block--top">
          <img class="center__block--image arrow" src="https://p.dun.mi.com/static/images/img_bad_gateway/arrow.png" alt="browser">
        </div>
      </div>
      <div class="center__block">
        <div class="center__block--top is-error">
          <img class="center__block--image" src="https://p.dun.mi.com/static/images/img_bad_gateway/host.png" alt="browser">
        </div>
        <div class="center__block--sub-title">............</div>
        <div class="center__block--status is-error">.........</div>
      </div>
    </div>
    <div class="bottom">
      <div class="bottom__block">
        <div class="bottom__block--title">...............?</div>
        <div class="bottom__block--sub-title">Web...........................(502)</div>
      </div>
      <div class="bottom__block">
        <div class="bottom__block--title">..................?</div>
        <div class="bottom__block--sub-title">.......................................</div>
      </div>
    </div>
  </div>
</body>
</html>' <- {"id":7158,"method":"miIO.info","params":[]} (Device: REDACTED) gave error com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 12 path $

Thing config:

I’m not sure what I can do to troubleshoot this issue.

Thanks,
Richie

Hi,
So, having realised I hadn’t updated recently, I upgraded JDK 11 to the latest version and installed the latest 3.3.0 snapshot.
Now it seems to be working again - hopefully the upgrade hasn’t broken something else :slight_smile:

Thanks,
Richie

1 Like