Support MCCGQ11LM. #4

This commit is contained in:
Koen Kanters 2018-04-19 23:00:07 +02:00
parent 6499b78108
commit 21575673b3
3 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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',

View File

@ -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',