Skip to content

Commit

Permalink
Support WXKG03LM. Koenkk#4
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Apr 22, 2018
1 parent 5a6a1f8 commit 4448dfa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
6 changes: 6 additions & 0 deletions lib/converters/zigbee2mqtt.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ const parsers = [
type: 'attReport',
convert: (msg) => {return {click: WXKG02LM[msg.endpoints[0].epId]}}
},
{
devices: ['WXKG03LM'],
cid: 'genOnOff',
type: 'attReport',
convert: (msg) => {return {click: 'single'}}
},
{
devices: ['SJCGQ11LM'],
cid: 'genBasic',
Expand Down
7 changes: 7 additions & 0 deletions lib/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,13 @@ const devices = {
supports: 'single, double, triple, quadruple click',
homeassistant: [homeassistant.sensor_button]
},
'lumi.sensor_86sw1\u0000lu': {
model: 'WXKG03LM',
vendor: 'Xiaomi',
description: 'Aqara single key wireless wall switch',
supports: 'single click',
homeassistant: [homeassistant.sensor_button]
},
'lumi.sensor_86sw2\u0000Un': {
model: 'WXKG02LM',
vendor: 'Xiaomi',
Expand Down
12 changes: 0 additions & 12 deletions support/docgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,12 @@
*/

const plannedToSupport = [
{
model: 'SJCGQ11LM',
description: 'Aqara water leak sensor',
supports: '-',
vendor: 'Xiaomi',
},
{
model: 'MFKZQ01LM',
description: 'Mi magic cube controller',
supports: '-',
vendor: 'Xiaomi',
},
{
model: 'WXKG03LM',
description: 'Aqara single key wireless wall switch',
supports: '-',
vendor: 'Xiaomi',
},
{
model: 'QBKG11LM',
description: 'Aqara single key wired wall switch',
Expand Down

0 comments on commit 4448dfa

Please sign in to comment.