Skip to content

Commit

Permalink
fix: Fix IKEA E2123 SYMFONISK gen2 battery % incorrect (#5844)
Browse files Browse the repository at this point in the history
We have a `ikea.fz.battery` that tries to be smart based on the fwVersion if we need to divide or not, IKEA fixed there implementation to be in spec a while ago.

The SYMFONISK gen2 remote never had the problem and our fwVersion check checkes for a version that is high enough, but this remote has an good firmware even at major 1.

We can simply switch to the regular `fz.battery` to get the correct result here.

Fixes Koenkk/zigbee2mqtt#17616
  • Loading branch information
sjorge committed Jun 5, 2023
1 parent d5958a5 commit 582f76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/ikea.js
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ module.exports = [
model: 'E2123',
vendor: 'IKEA',
description: 'SYMFONISK sound remote gen2',
fromZigbee: [ikea.fz.battery, fz.legacy.E1744_play_pause, ikea.fz.ikea_track_click, ikea.fz.ikea_volume_click,
fromZigbee: [fz.battery, fz.legacy.E1744_play_pause, ikea.fz.ikea_track_click, ikea.fz.ikea_volume_click,
ikea.fz.ikea_volume_hold, ikea.fz.ikea_dots_click_v1, ikea.fz.ikea_dots_click_v2],
exposes: [e.battery().withAccess(ea.STATE_GET), e.action(['toggle', 'track_previous', 'track_next', 'volume_up',
'volume_down', 'volume_up_hold', 'volume_down_hold', 'dots_1_initial_press', 'dots_2_initial_press',
Expand Down

0 comments on commit 582f76f

Please sign in to comment.