Koenkk / zigbee2mqtt

Zigbee šŸ to MQTT bridge šŸŒ‰, get rid of your proprietary Zigbee bridges šŸ”Ø
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.71k stars 1.64k forks source link

Aqara TVOC sensor OTA completes but datecode not updating #13200

Closed ptr727 closed 1 year ago

ptr727 commented 2 years ago

What happened?

On 14 May 2022 I deployed an Aquara TVOC VOCKQJK11LM and updated the firmware using built in OTA to "dateCode": "20220222".

Yesterday (17 July 2022) I deployed a second VOCKQJK11LM, again did an OTA update, but this device still reports "dateCode": "20210204".

OTA reports no update available.

I removed and repaired the device, same.

I downloaded the OTA file and placed in local OTA index file, still reports no update.

wget --directory-prefix=/data/appdata/zigbee2mqtt/config http://cdn.aqara.com/cdn/opencloud-product/mainland/product-firmware/prd/lumi.airmonitor.acn01/20220222202427_OTA_lumi.airmonitor.acn01_0.0.0_0029_20220222_17EC2C.ota
ota:
    zigbee_ota_override_index_location: ota_index.json
[
    {
        "url": "20220222202427_OTA_lumi.airmonitor.acn01_0.0.0_0029_20220222_17EC2C.ota"
    }
]
debug 2022-07-18 13:02:02: ZigbeeOTA: downloaded main index
debug 2022-07-18 13:02:02: ZigbeeOTA: Loading override index /app/data/ota_index.json
debug 2022-07-18 13:02:02: ZigbeeOTA: getting local firmware file /app/data/20220222202427_OTA_lumi.airmonitor.acn01_0.0.0_0029_20220222_17EC2C.ota
debug 2022-07-18 13:02:02: Is new image available for '0x54ef4410002a6e9e', current '{"fieldControl":0,"manufacturerCode":4447,"imageType":9480,"fileVersion":29}', latest meta '{"fileVersion":29,"url":"20220222202427_OTA_lumi.airmonitor.acn01_0.0.0_0029_20220222_17EC2C.ota"}'
debug 2022-07-18 13:02:02: Update available for '0x54ef4410002a6e9e': NO

First device state:

{
    "battery": 100,
    "device_temperature": 25,
    "humidity": 69.86,
    "last_seen": "2022-07-18T19:54:05.517Z",
    "linkquality": 94,
    "power_outage_count": 34,
    "temperature": 25.65,
    "update": {
        "state": "idle"
    },
    "update_available": false,
    "voc": 135,
    "voltage": 3090,
    "device": {
        "applicationVersion": 24,
        "dateCode": "20220222",
        "friendlyName": "Aqara-Air-1A0E11",
        "hardwareVersion": 1,
        "ieeeAddr": "0x54ef4410001a0e11",
        "manufacturerID": 4447,
        "manufacturerName": "LUMI",
        "model": "VOCKQJK11LM",
        "networkAddress": 38064,
        "powerSource": "Battery",
        "softwareBuildID": "2020\u0000www.",
        "stackVersion": 2,
        "type": "EndDevice",
        "zclVersion": 3
    }
}

Second device state:

{
    "battery": 100,
    "device_temperature": 25,
    "humidity": 69.83,
    "last_seen": "2022-07-18T20:15:11.628Z",
    "linkquality": 54,
    "power_outage_count": 13,
    "temperature": 25.88,
    "update": {
        "state": "idle"
    },
    "update_available": false,
    "voc": 60,
    "voltage": 3145,
    "device": {
        "applicationVersion": 29,
        "dateCode": "20210204",
        "friendlyName": "Aqara-Air-2A6E9E",
        "hardwareVersion": 1,
        "ieeeAddr": "0x54ef4410002a6e9e",
        "manufacturerID": 4447,
        "manufacturerName": "LUMI",
        "model": "VOCKQJK11LM",
        "networkAddress": 21623,
        "powerSource": "Battery",
        "softwareBuildID": "2020\u0000www.",
        "stackVersion": 2,
        "type": "EndDevice",
        "zclVersion": 3
    }
}

I followed troubleshooting steps from here with no solution.

What did you expect to happen?

I expected both devices to update to "dateCode": "20220222", and both devices to behave the same.

How to reproduce it (minimal and precise)

Zigbee2MQTT version

1.26.0 commit: cd23aea

Adapter firmware version

20220219

Adapter

Tubes cc2652p2 zStack3x0

Debug log

z2mlog.log

ptr727 commented 2 years ago

I experimented and updated another new sensor using the M2 hub and the Aquara app. As expected the datecode and application version updated.

"applicationVersion": 29,
"dateCode": "20220222",
{
    "battery": 0,
    "device": {
        "applicationVersion": 29,
        "dateCode": "20220222",
        "friendlyName": "Aqara-Air-2A6585",
        "hardwareVersion": 1,
        "ieeeAddr": "0x54ef4410002a6585",
        "manufacturerID": 4447,
        "manufacturerName": "LUMI",
        "model": "VOCKQJK11LM",
        "networkAddress": 1867,
        "powerSource": "Battery",
        "softwareBuildID": "2020\u0000www.",
        "stackVersion": 2,
        "type": "EndDevice",
        "zclVersion": 3
    },
    "device_temperature": 26,
    "humidity": 58.87,
    "last_seen": "2022-08-08T20:25:00.107Z",
    "linkquality": 65,
    "temperature": 26.92,
    "update": {
        "state": null
    },
    "update_available": null,
    "voc": 135,
    "voltage": 2795,
    "power_outage_count": 11
}
github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

ptr727 commented 1 year ago

Some more info.