Skip to content

Commit

Permalink
Remove SJCGQ11LM_water_leak_interval converter. Koenkk/zigbee2mqtt#1967
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Sep 16, 2019
1 parent 848cd4c commit 417df2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
9 changes: 0 additions & 9 deletions converters/fromZigbee.js
Original file line number Diff line number Diff line change
Expand Up @@ -804,15 +804,6 @@ const converters = {
return {water_leak: msg.data.zonestatus === 1};
},
},
SJCGQ11LM_water_leak_interval: {
cluster: 'genBasic',
type: ['attributeReport', 'readResponse'],
convert: (model, msg, publish, options) => {
if (msg.data.hasOwnProperty('65281') && msg.data['65281'].hasOwnProperty('100')) {
return {water_leak: msg.data['65281']['100'] === 1};
}
},
},
state: {
cluster: 'genOnOff',
type: ['attributeReport', 'readResponse'],
Expand Down
5 changes: 1 addition & 4 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,10 +583,7 @@ const devices = [
vendor: 'Xiaomi',
description: 'Aqara water leak sensor',
supports: 'water leak true/false',
fromZigbee: [
fz.xiaomi_battery_3v, fz.SJCGQ11LM_water_leak_iaszone,
fz.SJCGQ11LM_water_leak_interval,
],
fromZigbee: [fz.xiaomi_battery_3v, fz.SJCGQ11LM_water_leak_iaszone],
toZigbee: [],
},
{
Expand Down

0 comments on commit 417df2c

Please sign in to comment.