Skip to content

Commit

Permalink
Fix hue dimmer battery. Koenkk/zigbee2mqtt#36
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jul 15, 2018
1 parent e38205c commit cdf6e8b
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 @@ -577,7 +577,7 @@ const converters = {
cid: 'genPowerCfg',
type: 'attReport',
convert: (model, msg, publish, options) => {
return {battery: precisionRound(msg.data.data['batteryPercentageRemaining'], 2)};
return {battery: precisionRound(msg.data.data['batteryPercentageRemaining'], 2) / 2};
},
},
ICTC_G_1_move: {
Expand Down

0 comments on commit cdf6e8b

Please sign in to comment.