Support QBCZ11LM. #4

This commit is contained in:
Koenkk
2018-04-27 14:10:13 +02:00
parent ce370750c0
commit 0ee1d27099
2 changed files with 11 additions and 4 deletions
+4 -4
View File
@@ -207,13 +207,13 @@ const parsers = [
}
},
{
devices: ['ZNCZ02LM'],
devices: ['ZNCZ02LM', 'QBCZ11LM'],
cid: 'genOnOff',
type: 'attReport',
convert: (msg) => {return {state: msg.data.data['onOff'] === 1 ? "ON" : "OFF"}}
},
{
devices: ['ZNCZ02LM'],
devices: ['ZNCZ02LM', 'QBCZ11LM'],
cid: 'genAnalogInput',
type: 'attReport',
convert: (msg) => {return {power: precisionRound(msg.data.data['presentValue'], 2)}}
@@ -221,7 +221,7 @@ const parsers = [
// Ignore parsers (these message dont need parsing).
{
devices: ['WXKG11LM', 'MCCGQ11LM', 'MCCGQ01LM', 'WXKG01LM', 'LED1545G12', '7146060PH', 'LED1537R6', 'ZNCZ02LM'],
devices: ['WXKG11LM', 'MCCGQ11LM', 'MCCGQ01LM', 'WXKG01LM', 'LED1545G12', '7146060PH', 'LED1537R6', 'ZNCZ02LM', 'QBCZ11LM'],
cid: 'genOnOff',
type: 'devChange',
convert: () => null
@@ -263,7 +263,7 @@ const parsers = [
convert: () => null
},
{
devices: ['ZNCZ02LM'],
devices: ['ZNCZ02LM', 'QBCZ11LM'],
cid: 'genAnalogInput',
type: 'devChange',
convert: () => null
+7
View File
@@ -86,6 +86,13 @@ const devices = {
vendor: 'Xiaomi',
homeassistant: [homeassistant.switch, homeassistant.sensor_power]
},
'lumi.ctrl_86plug': {
model: 'QBCZ11LM',
description: 'Aqara socket Zigbee',
supports: 'on/off, power measurement',
vendor: 'Xiaomi',
homeassistant: [homeassistant.switch, homeassistant.sensor_power]
},
// IKEA
'TRADFRI bulb E27 WS opal 980lm': {