Skip to content

Commit

Permalink
Update fromZigbee.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk authored and Koen Kanters committed Jan 22, 2020
1 parent 8401788 commit a498f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion converters/fromZigbee.js
Original file line number Diff line number Diff line change
Expand Up @@ -2381,7 +2381,7 @@ const converters = {
const current = msg.meta.zclTransactionSequenceNumber;

if (last !== current && msg.data.hasOwnProperty('onOff')) {
store[msg.device.ieeeAddr] = last;
store[msg.device.ieeeAddr] = current;
return {state: msg.data['onOff'] === 1 ? 'ON' : 'OFF'};
}
},
Expand Down

0 comments on commit a498f88

Please sign in to comment.