zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Updated docker dev yesterday, all xiaomi contact reporting as false

Open way2many opened this issue 7 years ago • 10 comments

Hi all,

Weird bug since yesterday evening. I updated the dev docker version yesterday and since then all Xiaomi contact sensors are reporting false after a few minutes. I've enabled debug for log level and this is what I have:

7/9/2019, 8:52:39 AM - info: 0x00158d000312e7c8 (0x00158d000312e7c8): MCCGQ11LM - Xiaomi Aqara door & window contact sensor (EndDevice)
7/9/2019, 8:52:39 AM - info: 0x00158d0002d46d0c (0x00158d0002d46d0c): MCCGQ11LM - Xiaomi Aqara door & window contact sensor (EndDevice)
7/9/2019, 8:52:39 AM - info: 0x00158d000312e83d (0x00158d000312e83d): MCCGQ11LM - Xiaomi Aqara door & window contact sensor (EndDevice)

7/9/2019, 8:52:40 AM - info: MQTT publish: topic 'zigbee2mqtt/0x00158d000312e7c8', payload '{"battery":0,"voltage":"!","contact":false,"linkquality":65}'
7/9/2019, 8:52:40 AM - info: MQTT publish: topic 'zigbee2mqtt/0x00158d0002d46d0c', payload '{"battery":0,"voltage":"!","contact":false,"linkquality":36}'
7/9/2019, 8:52:40 AM - info: MQTT publish: topic 'zigbee2mqtt/0x00158d000312e83d', payload '{"battery":0,"voltage":"!","contact":false,"linkquality":63}'

7/9/2019, 8:52:41 AM - info: MQTT publish: topic 'zigbee2mqtt/0x00158d000312e7c8/availability', payload 'online'
7/9/2019, 8:52:41 AM - info: MQTT publish: topic 'zigbee2mqtt/0x00158d0002d46d0c/availability', payload 'online'
7/9/2019, 8:52:41 AM - info: MQTT publish: topic 'zigbee2mqtt/0x00158d000312e83d/availability', payload 'online'

Note: Everything was working correctly until the update.

Any clue on what is going on?

Thank you very much.

Edit: This is from one of the sensors also:

7/9/2019, 9:30:40 AM - debug: Received zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":"\u0001!�\u000b\u0003(\u001b\u0004!�C\u0005! \u0000\u0006$\u0001\u0000\u0000\u0000\u0000\n![�d\u0010\u0000"}}' of device 'lumi.sensor_magnet.aq2' (0x00158d000312e7c8) of endpoint 1
7/9/2019, 9:30:40 AM - info: MQTT publish: topic 'zigbee2mqtt/0x00158d000312e7c8', payload '{"battery":0,"voltage":"!","contact":false,"linkquality":63,"last_seen":null}'
7/9/2019, 9:30:40 AM - debug: Received zigbee message of type 'devChange' with data '{"cid":"genBasic","data":{"65281":"\u0001!�\u000b\u0003(\u001b\u0004!�C\u0005! \u0000\u0006$\u0001\u0000\u0000\u0000\u0000\n![�d\u0010\u0000"}}' of device 'lumi.sensor_magnet.aq2' (0x00158d000312e7c8) of endpoint 1

way2many avatar Jul 09 '19 09:07 way2many

Same story here. They flip suddenly to false. I am running 08c0f2b614fbb4a2df8ab09f44eca62779c55dd6

antst avatar Jul 09 '19 23:07 antst

Went back to 1.4.0-arm32v6 and had to delete state.json. It is working again perfectly so something is very wrong with latest dev.

way2many avatar Jul 10 '19 06:07 way2many

On which version was it still working?

Koenkk avatar Jul 10 '19 06:07 Koenkk

I always used latest docker dev version for Raspberry Pi so I suppose it was 1.4.0-arm32v6 at that time.

way2many avatar Jul 10 '19 07:07 way2many

I think it's due to https://github.com/Koenkk/zigbee-herdsman/commit/b2fa80f970ef5d6dca2909cb9dfbda047ec7a019, if possible please add console.log(deviceId) here https://github.com/Koenkk/zigbee-herdsman/commit/b2fa80f970ef5d6dca2909cb9dfbda047ec7a019#diff-b58d6104b2a88d6d2d4813f105048f47R629

Koenkk avatar Jul 10 '19 07:07 Koenkk

Is it safe to roll back only this commit? I will try. It is annoying, light in my storage is always on )

antst avatar Jul 10 '19 12:07 antst

OK, giving it a try with roll-back

antst avatar Jul 10 '19 13:07 antst

I verified that https://github.com/Koenkk/zigbee-herdsman/pull/2 is the issue, fixed in latest dev branch.

Koenkk avatar Jul 10 '19 17:07 Koenkk

Been running with latest dev and everything runs smoothly. Thanks for the quick correction/action.

way2many avatar Jul 14 '19 20:07 way2many

I am having this issue right here where I just started with version 0.1.6 and the only contact sensor I have paired is constantly showing false on contact.

miguelarios avatar Oct 04 '19 22:10 miguelarios