Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge πŸŒ‰, get rid of your proprietary Zigbee bridges πŸ”¨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.22k stars 1.69k forks source link

Aqara T1 door & window contact sensor is only responding N/A #19559

Open Mwirenfeldt opened 1 year ago

Mwirenfeldt commented 1 year ago

What happened?

I was adding a Aqara T1 door & window contact sensor to my network. and after the interview was done, the device is responing N/A in Contact, Battery and Voltage. i have tried removing and adding 5 times, and it is not responing at all.

FirmwareBuild: 20230109 FirmwareVersion: 2019www. Model: MCCGQ12LM

What did you expect to happen?

i expected at least a True False respond.

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.33.2 commit: unknown

Adapter firmware version

7.1.1.0 build 273

Adapter

Skyconnect

Debug log

Log from Adding Device to network: 2023-11-04 17:49:13Received Zigbee message from '0x54ef4410009258b0', type 'readResponse', cluster 'ssIasZone', data '{"iasCieAddr":"0xe0798dfffe110b42","zoneState":1}' from endpoint 1 with groupID 0 Debug 2023-11-04 17:49:13No converter available for 'MCCGQ12LM' with cluster 'ssIasZone' and type 'readResponse' and data '{"iasCieAddr":"0xe0798dfffe110b42","zoneState":1}' Info 2023-11-04 17:49:13Successfully interviewed '0x54ef4410009258b0', device has successfully been paired Info 2023-11-04 17:49:13Device '0x54ef4410009258b0' is supported, identified as: Xiaomi Aqara T1 door & window contact sensor (MCCGQ12LM) Info 2023-11-04 17:49:13MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Aqara T1 door & window contact sensor","exposes":[{"access":1,"description":"Indicates if the contact is closed (= true) or open (= false)","label":"Contact","name":"contact","property":"contact","type":"binary","value_off":true,"value_on":false},{"access":1,"description":"Remaining battery in %, can take up to 24 hours before reported.","label":"Battery","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":1,"description":"Voltage of the battery in millivolts","label":"Voltage","name":"voltage","property":"voltage","type":"numeric","unit":"mV"},{"access":1,"description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"MCCGQ12LM","options":[],"supports_ota":true,"vendor":"Xiaomi"},"friendly_name":"0x54ef4410009258b0","ieee_address":"0x54ef4410009258b0","status":"successful","supported":true},"type":"device_interview"}'

Open and closing the contact: Debug 2023-11-04 18:00:30Received Zigbee message from '0x54ef4410009258b0', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":33}' from endpoint 1 with groupID 0 Debug 2023-11-04 18:00:30No converter available for 'MCCGQ12LM' with cluster 'ssIasZone' and type 'commandStatusChangeNotification' and data '{"extendedstatus":0,"zonestatus":33}' Debug 2023-11-04 18:00:31Received Zigbee message from '0x54ef4410009258b0', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":32}' from endpoint 1 with groupID 0 Debug 2023-11-04 18:00:31No converter available for 'MCCGQ12LM' with cluster 'ssIasZone' and type 'commandStatusChangeNotification' and data '{"extendedstatus":0,"zonestatus":32}'

amaciuc commented 9 months ago

About UI bug ... it is not so frustrating :smile: Try to press the icon with light/dark mode. it should be okay after that.

tretabyte commented 9 months ago

About UI bug ... it is not so frustrating πŸ˜„ Try to press the icon with light/dark mode. it should be okay after that.

Lifesaver!!!

pauldcomanici commented 9 months ago

With z2m version 1.35.3 I still do not get values in the UI

How it looks: Screenshot 2024-02-21 at 16 52 05

If I go under device -> state I can see:

{
    "battery_low": false,
    "contact": false,
    "linkquality": 80,
    "tamper": false
}

So the information exists (at least low_battery) ... but is not correctly displayed.

I'm missing something, or is this bug still valid?

amaciuc commented 9 months ago

With z2m version 1.35.3 I still do not get values in the UI

How it looks: Screenshot 2024-02-21 at 16 52 05

If I go under device -> state I can see:

{
    "battery_low": false,
    "contact": false,
    "linkquality": 80,
    "tamper": false
}

So the information exists (at least low_battery) ... but is not correctly displayed.

I'm missing something, or is this bug still valid?

Din you try to reconfigure / rejoin the sensor ?

pauldcomanici commented 9 months ago

Edited comment.

With re-join (set z2m in accept join, press the button on device to reset) issue was solved. Now I get:

{
    "battery_low": false,
    "contact": false,
    "linkquality": 18,
    "tamper": false,
    "battery": 94,
    "update": {
        "installed_version": -1,
        "latest_version": -1,
        "state": null
    },
    "update_available": null,
    "voltage": 2991,
    "device_temperature": 25,
    "power_outage_count": 11,
    "state": "ON"
}

thank you for the support

Gloomyeye commented 9 months ago

I try to rejoin or reconnect a new aqara T1 contact sensor multiple times, but I can not get any values except the link quality. I try to hit the sensor button during connection process, too. But no success. The battery is still "null"

Edit: I use the latest version of Zigbee2MQTT (1.36.0). This is my status of the device:

{
    "battery_low": false,
    "contact": true,
    "linkquality": 180,
    "tamper": false,
    "battery": null,
    "device": {
        "applicationVersion": 30,
        "dateCode": "20230109",
        "friendlyName": "Aqara Window DBO (groß)",
        "hardwareVersion": 1,
        "ieeeAddr": "0x54ef441000a7993b",
        "manufacturerID": 4447,
        "manufacturerName": "LUMI",
        "model": "MCCGQ12LM",
        "networkAddress": 62462,
        "powerSource": "Battery",
        "softwareBuildID": "2019\u0000www.",
        "stackVersion": 2,
        "type": "EndDevice",
        "zclVersion": 3
    },
    "update": {
        "installed_version": -1,
        "latest_version": -1,
        "state": null
    },
    "update_available": null,
    "voltage": null
}
pbrunier commented 4 months ago

Bought 4 of the Aqara T1 Door and Window sensors. The magnet sensor works fine but Battery doesn't respond. Zigbee2MQTT version 1.39.0 integrated in HASS Zigbee stick: Sonoff -- zStack3x0

It's a fresh Zigbee2MQTT install and all devices have not been paired before.

Device state: { "battery_low": false, "contact": true, "linkquality": 96, "tamper": false, "battery": null, "update": { "installed_version": -1, "latest_version": -1, "state": null }, "update_available": null, "voltage": null }

image image

Pls ask if I need to send more info.

Gloomyeye commented 4 months ago

I have the same issue with two sensors. Remaining battery is null / not available.

theSC commented 2 weeks ago

I am having this exact issue with three brand new sensors. I have removed and readded them multiple times. I have restarted zigbee2mqtt multiple times as well.

Some data shows but never the "contact" part which is the one that really matters lol

theSC commented 2 days ago

Is this issue being worked on? Is there anything I can do to help?