This adapter for WebThings Gateway by Mozilla allows to use the awesome zigbee2mqtt project to support lots of zigbee devices on a cheap cc2531
usb stick zigbee dongle.
THIS CODE IS A FORK OF THE ORIGINAL ZIGBEE2MQTT ADAPTER
Currently supported devices:
- Aqara ZigBee Light Bulb
- Xiaomi Magnet Sensor
- Xiaomi Magic Cube
You can add new ones to devices.js
like this:
{
'lumi.sensor_magnet': {
name: 'Xiaomi Magnet Contact Sensor',
'@type': ['BinarySensor'],
properties: {
battery: {
type: 'integer',
unit: 'percent',
minimum: 0,
maximum: 100,
readOnly: true,
},
linkquality: {
type: 'integer',
readOnly: true,
},
contact: {
type: 'boolean',
'@type': 'BooleanProperty',
readOnly: true,
},
},
},
}