mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-16 18:39:09 -07:00
Support MCCGQ11LM. #4
This commit is contained in:
parent
6499b78108
commit
21575673b3
@ -26,7 +26,7 @@ const store = {}
|
||||
|
||||
const parsers = [
|
||||
{
|
||||
devices: ['WXKG01LM', 'RTCGQ01LM', 'WSDCGQ01LM', 'MCCGQ01LM', 'WXKG11LM'],
|
||||
devices: ['WXKG01LM', 'RTCGQ01LM', 'WSDCGQ01LM', 'MCCGQ01LM', 'WXKG11LM', 'MCCGQ11LM'],
|
||||
cid: 'genBasic',
|
||||
type: 'attReport',
|
||||
disablePublish: true,
|
||||
@ -108,7 +108,7 @@ const parsers = [
|
||||
}
|
||||
},
|
||||
{
|
||||
devices: ['MCCGQ01LM'],
|
||||
devices: ['MCCGQ01LM', 'MCCGQ11LM'],
|
||||
cid: 'genOnOff',
|
||||
type: 'attReport',
|
||||
convert: (msg) => {return {state: msg.data.data['onOff'] ? 'open' : 'closed'}}
|
||||
@ -147,13 +147,13 @@ const parsers = [
|
||||
|
||||
// Ignore parsers (these message dont need parsing).
|
||||
{
|
||||
devices: ['WXKG11LM'],
|
||||
devices: ['WXKG11LM', 'MCCGQ11LM'],
|
||||
cid: 'genOnOff',
|
||||
type: 'devChange',
|
||||
convert: () => null
|
||||
},
|
||||
{
|
||||
devices: ['WXKG11LM'],
|
||||
devices: ['WXKG11LM', 'MCCGQ11LM'],
|
||||
cid: 'genBasic',
|
||||
type: 'devChange',
|
||||
convert: () => null
|
||||
|
@ -29,6 +29,12 @@ const devices = {
|
||||
description: 'MiJia door & window contact sensor',
|
||||
supports: 'open and closed state',
|
||||
},
|
||||
'lumi.sensor_magnet.aq2': {
|
||||
model: 'MCCGQ11LM',
|
||||
vendor: 'Xiaomi',
|
||||
description: 'Aqara door & window contact sensor',
|
||||
supports: 'open and closed state',
|
||||
},
|
||||
'TRADFRI bulb E27 WS opal 980lm': {
|
||||
model: 'LED1545G12',
|
||||
vendor: 'IKEA',
|
||||
|
@ -10,12 +10,6 @@ const plannedToSupport = [
|
||||
supports: '-',
|
||||
vendor: 'Xiaomi',
|
||||
},
|
||||
{
|
||||
model: 'MCCGQ11LM',
|
||||
description: 'Aqara door & window contact sensor',
|
||||
supports: '-',
|
||||
vendor: 'Xiaomi',
|
||||
},
|
||||
{
|
||||
model: 'RTCGQ11LM',
|
||||
description: 'Aqara human body movement and illuminance sensor',
|
||||
|
Loading…
Reference in New Issue
Block a user