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.
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" ]