New with zigbee2mqtt

Hi, forgive me for my bad english.

I’m new with zigbee. I’m using domoticz with mqtt since a while. I’m trying to use, for test, 2 devices using zigbee:

  • Aqara WSDCGQ11LM temp/hum sensor
  • door contact sensor MCCGQ11LM

I’m using CC2351 with: “Starting zigbee2mqtt version 1.10.0 (commit #8df6be8”)

The contact sensor seems to work as expecteed. But the aqara, works randomly. Sometime no value during more than 30min, sometime, the values are updated every 2min, and sometime, nothing: I have to restart the daemon.

homeassistant: false
permit_join: false
mqtt:
base_topic: zigbee2mqtt
server: ‘mqtt://localhost’
serial:
port: /dev/zigbee2mqtt
advanced:
log_directory: /home/domos/zigbee2mqtt/log
log_file: zigbee2mqtt.log
log_output:
- file
devices:
‘0x00158d00040756ac’:
friendly_name: tempSensor1
temperature_precision: 2
retain: false
‘0x00158d00042470ee’:
friendly_name: contactSensor1

Any idea what is the problem ? Thanks.

I think the behaviour that you are seeing is by design.

To conserve the battery, the temperature/humidity devices only transmit when there has been a change in one of the readings. If nothing changes at all, I’d expect the sensor to report in about every 50 minutes (as do all the Xiaomi sensors). If the temperature or humidity starts to change rapidly, I’d expect it to transmit updated readings much more frequently.

Ok, so I can’t use a hardware like this one. In my mind i’d use these values to operate a heating system programatically. So I need more often updates.

Thanks for the answer.

Zigbee2mqtt with the Aqara temperature sensor is probably still usable.

If your software needs to constantly poll and receive the current temperature, just set the “retained” flag on MQTT messages (“retain: true” in the configuration file). Your MQTT server will then hold the most recent reading and keep serving it up every time the application polls for that sensor’s reading.