zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Missing temperature for lumi.weather with both 0.1.5 and dev branch

Open dzungpv opened this issue 8 years ago • 9 comments

Firmware cc2631 from Koenkk. I see the temperature is read but after the mqtt publish missing temperature, only with humidity and pressure. Seem this affect many device not only with this sensor like https://github.com/Koenkk/zigbee2mqtt/issues/387

'{"cid":"msTemperatureMeasurement","data":{"measuredValue":3166}}' of device 'lumi.weather' (0x00xxxxd000201b4xx)
  zigbee2mqtt:info 2018-9-21 03:22:04 MQTT publish, topic: 'zigbee2mqtt/0x00xxxxd000201b4xx', payload: '{"pressure":1010,"linkquality":99,"temperature":31.66}'
  zigbee-shepherd:af dispatchIncomingMsg(): type: zclIncomingMsg, msg: [object Object] +9ms
  zigbee2mqtt:debug 2018-9-21 03:22:04 Recieved zigbee message of type 'attReport' with data '{"cid":"msRelativeHumidity","data":{"measuredValue":5931}}' of device 'lumi.weather' (0x00xxxxd000201b4xx)
  zigbee2mqtt:info 2018-9-21 03:22:04 MQTT publish, topic: 'zigbee2mqtt/0x00xxxxd000201b4xx', payload: '{"temperature":31.66,"linkquality":99,"humidity":59.31}'
  cc-znp:AREQ <-- AF:incomingMsg, { groupid: 0, clusterid: 1027, srcaddr: 18442, srcendpoint: 1, dstendpoint: 1, wasbroadcast: 0, linkquality: 99, securityuse: 0, timestamp: 1369314, transseqnumber: 0, len: 17, data: <Buffer 18 43 0a 00 00 29 f2 03 14 00 28 ff 10 00 29 76 27> } +9ms
  zigbee-shepherd:af dispatchIncomingMsg(): type: incomingMsg, msg: [object Object] +1ms
  zigbee-shepherd:msgHdlr IND <-- AF:incomingMsg, transId: 0 +12ms
  zigbee2mqtt:debug 2018-9-21 03:22:04 Recieved zigbee message of type 'devChange' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":3166}}' of device 'lumi.weather' (0x00xxxxd000201b4xx)
  zigbee2mqtt:debug 2018-9-21 03:22:04 Recieved zigbee message of type 'devChange' with data '{"cid":"msRelativeHumidity","data":{"measuredValue":5931}}' of device 'lumi.weather' (0x00xxxxd000201b4xx)
  serialport:unixRead waiting for readable because of code: EAGAIN +42ms
  serialport:poller Polling for "readable" +85ms
  zigbee-shepherd:af dispatchIncomingMsg(): type: zclIncomingMsg, msg: [object Object] +12ms
  zigbee2mqtt:debug 2018-9-21 03:22:04 Recieved zigbee message of type 'attReport' with data '{"cid":"msPressureMeasurement","data":{"16":10102,"20":-1,"measuredValue":1010}}' of device 'lumi.weather' (0x00xxxxd000201b4xx)
  zigbee2mqtt:info 2018-9-21 03:22:04 MQTT publish, topic: 'zigbee2mqtt/0x00xxxxd000201b4xx', payload: '{"humidity":59.31,"linkquality":99,"pressure":1010}'

dzungpv avatar Sep 21 '18 03:09 dzungpv

Is it the Xiaomi sensor WSDCGQ11LM? I have one and it is woking fine with 0.1.5.

Robertops avatar Sep 21 '18 04:09 Robertops

@Robertops Yes, some time it show but sometime it blank, normal when press the button on the sensor, temperature update immediately, but now it not always update, i don't know what cause the problem, may be Hass or hardware issue

dzungpv avatar Sep 21 '18 04:09 dzungpv

For me it reproducible too, sometimes it shows just humidity, sometimes just pressure, sometimes all values

stas-demydiuk avatar Sep 21 '18 05:09 stas-demydiuk

My sensor sometines not update for a long time. Temperature, humidity definitely changes during that time (AC turn on)

image

mrfoxbit avatar Sep 21 '18 06:09 mrfoxbit

Yes, humidity and pressure update but not the temperature. This problem not occurs before

dzungpv avatar Sep 21 '18 06:09 dzungpv

@dzungpv have you set cache_state to false in configuration.yaml?

Koenkk avatar Sep 21 '18 06:09 Koenkk

@Koenkk No, it is enable by default

dzungpv avatar Sep 21 '18 06:09 dzungpv

I'm on latest (0.1.5) commit 7d49e13, see my log: https://pastebin.com/raw/cGbHamWx Seems fine to me.

AnhDuc85 avatar Sep 21 '18 08:09 AnhDuc85

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 20 '18 08:11 stale[bot]