mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-27 21:20:03 +00:00
Support QBCZ11LM. #4
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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': {
|
||||
|
||||
Reference in New Issue
Block a user