This adapter for WebThings Gateway by Mozilla allows to use awesome zigbee2mqtt project to support lots of zigbee devices on a cheap cc2531
usb stick zigbee dongle.
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,
},
},
},
}