Skip to content

Installing Aqara Temperature and Humidity Sensor WSDCGQ01LM OpenHab with Zigbee2MQTT

Replace battery WSDCGQ01LM Aqara sensor

You must have FRIENDLY_NAME enabled in zigbee2mqtt configuration.yaml. If you followed my tutorial install zigbee2mqtt openhabian Then you can use the following. Pair

Pair WSDCGQ01LM with Zigbee2MQTT

Stand as close to the zigbee2mqtt transmitter as possible.

Press and hold the reset button on the device. Until the blue light starts blinking. The reset button is the small button on the ‘top’ of the WSDCGQ01LM. After this the device will automatically join the Zigbee2mqtt Network.

Edit FriendlyName device

Go to the Zigbee2mqtt folder.

cd /opt/zigbee2mqtt/data

Edit the configuration.yaml. file

sudo nano configuration.yaml.
friendly name zigbee2mqtt

Here you can edit the friendly names of your zigbee2mqtt devices. Hit Ctrl +X to exit and save.

Things example WSDCGQ01LM

Add this too your thing file in Openhab.

Thing topic BathRoomSensor "Bathroom sensor" {
        Type number : temperature   "temperature"        [ stateTopic="zigbee2mqtt/BathRoomSensor/temperature"]
        Type number : humidity      "humidity"           [ stateTopic="zigbee2mqtt/BathRoomSensor/humidity"]
        Type number : voltage       "voltage"            [ stateTopic="zigbee2mqtt/BathRoomSensor/voltage" ]
        Type number : battery       "battery"            [ stateTopic="zigbee2mqtt/BathRoomSensor/battery" ]
        Type number : linkquality   "linkquality"        [ stateTopic="zigbee2mqtt/BathRoomSensor/linkquality" ]
        Type datetime : last_seen   "last_seen"         [ stateTopic="zigbee2mqtt/BathRoomSensor/last_seen" ]

Items example WSDCGQ01LM

Add this too your items file in Openhab.

   Thing topic BathRoomSensor "Badkamer sensor" {
    Channels: //'Device ID 0x00158d0002b53f22 ronde versie
        Type number : temperature   "temperature"        [ stateTopic="zigbee2mqtt/BathRoomSensor/temperature"]
        Type number : humidity      "humidity"           [ stateTopic="zigbee2mqtt/BathRoomSensor/humidity"]
        Type number : voltage       "voltage"            [ stateTopic="zigbee2mqtt/BathRoomSensor/voltage" ]
        Type number : battery       "battery"            [ stateTopic="zigbee2mqtt/BathRoomSensor/battery" ]
        Type number : linkquality   "linkquality"        [ stateTopic="zigbee2mqtt/BathRoomSensor/linkquality" ]
        Type datetime : last_seen   "last_seen"         [ stateTopic="zigbee2mqtt/BathRoomSensor/last_seen" ]

Leave a Reply

Your email address will not be published. Required fields are marked *