merdok / homebridge-miot

Homebridge plugin for devices supporting the Xiaomi miot protocol
MIT License
397 stars 64 forks source link

Cannot connect Aqara Temperature Sensors WSDCGQ11LM #639

Closed YavorAtanasov closed 2 weeks ago

YavorAtanasov commented 2 weeks ago

I read the documentation and I think I followed every step, but I am still not able to connect them. I have two Temperature sensors, Both are the same lumi.weather.v1. One is CN version so that is why I have to gateways. The two gataways I have are lumi.acpartner.v3 and lumi.gateway.mgl001. Both are connected and working.

I added the temperature with the following configs:

{
    "name": "Temperature and humidity",
    "ip": "192.168.1.14",
    "token": "<token>",
    "deviceId": "lumi.158d0005515ac1",
    "model": "lumi.weather.v1",
    "pollingInterval": 10,
    "deepDebugLog": true,
    "silentLog": false,
    "deviceEnabled": true,
    "micloud": {
        "username": "something@email.com",
        "password": "123456",
        "country": "cn",
        "forceMiCloud": false
    },
    "buzzerControl": true,
    "ledControl": true,
    "childLockControl": true,
    "modeControl": true
}

Second one:

{
            "name": "Bedroom Temperature",
            "ip": "192.168.1.13",
            "token": "<token>",
            "deviceId": "158d00055a1b4a",
            "model": "lumi.weather.v1",
            "pollingInterval": 10,
            "deepDebugLog": true,
            "silentLog": false,
            "deviceEnabled": true,
            "buzzerControl": true,
            "ledControl": true,
            "childLockControl": true,
            "modeControl": true
        }

In the logs I see the following error:

[7.11.2024 г., 15:36:48 ч.] [homebridge-miot] [Temperature and humidity] Device found! Setting up miot device from local connection!
[7.11.2024 г., 15:36:48 ч.] [homebridge-miot] [Temperature and humidity] Connected to device: lumi.acpartner.v3
[7.11.2024 г., 15:36:48 ч.] [homebridge-miot] [Temperature and humidity] Doing initial property fetch.
[7.11.2024 г., 15:36:48 ч.] [homebridge-miot] [AC power outlet] Device found! Setting up miot device from local connection!
[7.11.2024 г., 15:36:48 ч.] [homebridge-miot] [AC power outlet] Connected to device: lumi.acpartner.v3
[7.11.2024 г., 15:36:48 ч.] [homebridge-miot] [AC power outlet] Doing initial property fetch.
[7.11.2024 г., 15:36:48 ч.] [homebridge-miot] [Temperature and humidity] Starting property polling.
[7.11.2024 г., 15:36:48 ч.] [homebridge-miot] [AC power outlet] Starting property polling.
[7.11.2024 г., 15:37:28 ч.] [homebridge-miot] [Temperature and humidity] Poll failed 4 times in a row! Stopping polling and trying to reconnect! Reason: Error: Method not found.
[7.11.2024 г., 15:35:51 ч.] [homebridge-miot] [Bedroom Temperature] Device found! Setting up miot device from local connection!
[7.11.2024 г., 15:35:51 ч.] [homebridge-miot] [Bedroom Temperature] Connected to device: lumi.gateway.mgl001
[7.11.2024 г., 15:35:51 ч.] [homebridge-miot] [Bedroom Temperature] Doing initial property fetch.
[7.11.2024 г., 15:36:03 ч.] [homebridge-miot] [Bedroom Temperature] Starting property polling.
[7.11.2024 г., 15:36:45 ч.] [homebridge-miot] [Bedroom Temperature] Poll failed 4 times in a row! Stopping polling and trying to reconnect! Reason: Error: Call to device timed out

Could someone help? Am I doing something wrong?

merdok commented 2 weeks ago

Hi, it might be that your gateways do not support the miot protocol, in that case you would need to set the forceMiCloud flag in your micloud credentials to true and see if that helps.

YavorAtanasov commented 2 weeks ago

@merdok , thank you. That was the issue. Now it works