CC2530/CC2531 routers are not Xiaomi devices. https://github.com/Koenkk/zigbee2mqtt/issues/1248

This commit is contained in:
Koen Kanters 2019-03-23 17:20:30 +01:00
parent 1ea694cb1a
commit c64158b75d

View File

@ -92,7 +92,7 @@ function getZigbee2mqttVersion(callback) {
module.exports = {
millisecondsToSeconds: (milliseconds) => milliseconds / 1000,
secondsToMilliseconds: (seconds) => seconds * 1000,
isXiaomiDevice: (device) => xiaomiManufacturerID.includes(device.manufId),
isXiaomiDevice: (device) => device.modelId !== 'lumi.router' && xiaomiManufacturerID.includes(device.manufId),
isIkeaTradfriDevice: (device) => ikeaTradfriManufacturerID.includes(device.manufId),
isRouter: (device) => device.type === 'Router',
isNumeric: (string) => /^\d+$/.test(string),