Skip to content

Commit

Permalink
Don’t convert readRsp for ZNLDP12LM. Koenkk/zigbee2mqtt#1240
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Mar 13, 2019
1 parent 01fc5fc commit a520217
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions converters/fromZigbee.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,15 @@ const converters = {
}
},
},
state_report: {
cid: 'genOnOff',
type: 'attReport',
convert: (model, msg, publish, options) => {
if (msg.data.data.hasOwnProperty('onOff')) {
return {state: msg.data.data['onOff'] === 1 ? 'ON' : 'OFF'};
}
},
},
state_change: {
cid: 'genOnOff',
type: 'devChange',
Expand Down
2 changes: 1 addition & 1 deletion devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const devices = [
description: 'Aqara smart LED bulb',
extend: generic.light_onoff_brightness_colortemp,
fromZigbee: [
fz.brightness, fz.color_colortemp, fz.state, fz.xiaomi_bulb_interval,
fz.brightness, fz.color_colortemp, fz.state_report, fz.xiaomi_bulb_interval,
fz.ignore_light_brightness_report, fz.ignore_light_color_colortemp_report, fz.ignore_onoff_change,
fz.ignore_basic_change,
],
Expand Down

0 comments on commit a520217

Please sign in to comment.