Skip to content

Commit

Permalink
Support ZNCLDJ12LM. Koenkk/zigbee2mqtt#1879 #545
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Oct 17, 2019
1 parent dd7eb30 commit 75a7d66
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion converters/fromZigbee.js
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ const converters = {
}
},
},
ZNCLDJ11LM_curtain_genAnalogOutput: {
ZNCLDJ11LM_ZNCLDJ12LM_curtain_analog_output: {
cluster: 'genAnalogOutput',
type: ['attributeReport', 'readResponse'],
convert: (model, msg, publish, options) => {
Expand Down
2 changes: 1 addition & 1 deletion converters/toZigbee.js
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ const converters = {
await entity.command('genIdentify', 'identifyTime', {identifytime: value}, getOptions(meta));
},
},
ZNCLDJ11LM_control: {
ZNCLDJ11LM_ZNCLDJ12LM_control: {
key: ['state', 'position'],
convertSet: async (entity, key, value, meta) => {
if (key === 'state' && value.toLowerCase() === 'stop') {
Expand Down
13 changes: 11 additions & 2 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,17 @@ const devices = [
description: 'Aqara curtain motor',
supports: 'open, close, stop, position',
vendor: 'Xiaomi',
fromZigbee: [fz.ZNCLDJ11LM_curtain_genAnalogOutput, fz.cover_position_tilt, fz.ignore_basic_report],
toZigbee: [tz.ZNCLDJ11LM_control],
fromZigbee: [fz.ZNCLDJ11LM_ZNCLDJ12LM_curtain_analog_output, fz.cover_position_tilt, fz.ignore_basic_report],
toZigbee: [tz.ZNCLDJ11LM_ZNCLDJ12LM_control],
},
{
zigbeeModel: ['lumi.curtain.hagl04'],
model: 'ZNCLDJ12LM',
vendor: 'Xiaomi',
description: 'Aqara B1 curtain motor ',
supports: 'open, close, stop, position',
fromZigbee: [fz.ZNCLDJ11LM_ZNCLDJ12LM_curtain_analog_output, fz.cover_position_tilt, fz.ignore_basic_report],
toZigbee: [tz.ZNCLDJ11LM_ZNCLDJ12LM_control],
},
{
zigbeeModel: ['lumi.relay.c2acn01'],
Expand Down

0 comments on commit 75a7d66

Please sign in to comment.