Skip to content

Commit

Permalink
Support MCCGQ11LM. Koenkk#4
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Apr 19, 2018
1 parent 93f4550 commit c4a1216
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions lib/converters/zigbee2mqtt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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'}}
Expand Down Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions lib/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 0 additions & 6 deletions support/docgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c4a1216

Please sign in to comment.