zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Issues in latest dev branch

Open AnhDuc85 opened this issue 8 years ago • 17 comments

Hi, just pulled the latest dev image and it seems there are some issues.

Some examples:

  • Xiaomi Temp Sensor (should report battery and voltage) {"battery":"NaN","voltage":"!","linkquality":57,"temperature":21.76,"humidity":67.92}

  • Xiaomi Zigbee plug (should be ON & reporting consumption values){"state":"OFF","power":null,"voltage":null,"consumption":null,"temperature":null,"linkquality":102}

When I switch back to the latest images, these sensors reporting normal values.

AnhDuc85 avatar Sep 14 '18 18:09 AnhDuc85

Please provide full log via debug and do some samples. I think i know the reason But need some input debug stuff first..

tb-killa avatar Sep 16 '18 10:09 tb-killa

example with device WSDCGQ01LM debug log with latest-dev: https://pastebin.com/raw/YpS6FNh2 debug log with latest: https://pastebin.com/raw/RDa5qF7U

AnhDuc85 avatar Sep 16 '18 11:09 AnhDuc85

Recieved zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":"\u0001!�\u000b\u0004!�\u0013\u0005!\u0006\u0000\u0006$\u0000\u0000\u0000\u0000\u0000d)�\be!�\u0015\n!\u0000\u0000"}}' of device 'lumi.sens' (0x00158d0001c2cf7e)

The structure isnt parse correct.

tb-killa avatar Sep 16 '18 11:09 tb-killa

This is due to https://github.com/Koenkk/zigbee-shepherd-converters/pull/63

@evildad @lolorc did you ever experience this?

Koenkk avatar Sep 16 '18 19:09 Koenkk

Just grepped in my logs for the pattern voltage":"!" and found zero entries. So the answer is no, never had that issue... Edit: I don't understand why the Xiaomi Plug has this issue, too. We didn't change this Model

evildad avatar Sep 16 '18 19:09 evildad

I have the same problem on WSDCGQ01LM - Xiaomi MiJia temperature & humidity sensor, debug log:

9/17/2018, 4:02:35 PM - debug: Recieved zigbee message of type 'attReport' with data '{"cid":"genBasic","data":{"65281":"\u0001!�\u000b\u0004!�\u0013\u0005!\u001c\u0000\u0006$\u0002\u0000\u0000\u0000\u0000d)�\ne!�\u001e\n!\u0000\u0000"}}' of device 'lumi.sens' (0x00158d0001e81c40)
9/17/2018, 4:02:35 PM - info: MQTT publish, topic: 'zigbee2mqtt/ht_bedroom', payload: '{"battery":"NaN","voltage":"!","linkquality":26,"temperature":26.98,"humidity":82.43}'
9/17/2018, 4:02:35 PM - debug: Recieved zigbee message of type 'devChange' with data '{"cid":"genBasic","data":{"65281":"\u0001!�\u000b\u0004!�\u0013\u0005!\u001c\u0000\u0006$\u0002\u0000\u0000\u0000\u0000d)�\ne!�\u001e\n!\u0000\u0000"}}' of device 'lumi.sens' (0x00158d0001e81c40)

Zigbee2mqtt git revision 6ede5a3

azuwis avatar Sep 17 '18 08:09 azuwis

Can you try if this issue also happens in issue_373.

Note: do a rm -rf node_modules && npm install after checking out this branch.

Koenkk avatar Sep 17 '18 14:09 Koenkk

I can confirm that the problem does not happen on branch issue_373.

azuwis avatar Sep 17 '18 15:09 azuwis

We should check if this is correct?? var deviceId = zclId.device(260, 10).key; Maybe there comes faulty result.?

tb-killa avatar Sep 17 '18 15:09 tb-killa

@tb-killa You are right, this PR will solve the problem https://github.com/Koenkk/zcl-packet/pull/6

dzungpv avatar Sep 18 '18 09:09 dzungpv

I can confirm that battery values are not read correctly with 'latest-dev':

'zigbee2mqtt/0x00158d00022c9005', payload: '{"temperature":23.21,"linkquality":92,"humidity":46.08,"pressure":1002,"battery":"NaN","voltage":"!"}' 'zigbee2mqtt/0x00158d0001f535eb', payload: '{"temperature":25.1,"linkquality":21,"humidity":45.19,"pressure":1002,"battery":"NaN","voltage":"!"}' 'zigbee2mqtt/0x00158d0001e50c7c', payload: '{"illuminance":110,"linkquality":13,"occupancy":false,"battery":"NaN","voltage":"!"}'

hdo avatar Sep 18 '18 10:09 hdo

Can you check if this has been fixed in the latest dev branch?

Koenkk avatar Sep 18 '18 16:09 Koenkk

Can you check if this has been fixed in the latest dev branch?

Running Docker latest-dev (commit #8376b7c). Still issues with battery reading but some values seem to be correct. Maybe it's an issue with retained values.

I'll keep an eye on that.

'{"temperature":13.38,"linkquality":0,"humidity":38.24,"pressure":1002,"battery":"NaN","voltage":"!"}' '{"temperature":13.38,"linkquality":0,"humidity":32.16,"pressure":1002,"battery":"NaN","voltage":"!"}' '{"temperature":27.55,"linkquality":63,"humidity":35.98,"pressure":1002,"battery":"98.33","voltage":2995}' '{"temperature":27.6,"linkquality":63,"humidity":39.43,"pressure":1002.37,"battery":"98.33","voltage":2995}'

hdo avatar Sep 18 '18 16:09 hdo

I can confirm that battery voltage is read correctly again with latest-dev. Thank you.

hdo avatar Sep 19 '18 05:09 hdo

can also confirm, will close the issue

AnhDuc85 avatar Sep 19 '18 06:09 AnhDuc85

@Koenkk yes I experiencing this issue at the moment. :-) probably because you reverted @dzungpv PR.

lolorc avatar Oct 01 '18 10:10 lolorc

Fixed again!

Koenkk avatar Oct 05 '18 18:10 Koenkk