zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Updated IKEA E2001/E2002 to latest FW and now doesn't respond

Open smartroad opened this issue 1 year ago • 22 comments

What happened?

I updated my IKEA E2001/E2002 controller over OTA and all seemed to be okay. Now that it has updated, it is no longer responding. It joins fine, but there is nothing when you press a button (action never changes). It also shows the battery as 200%

image

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.38.0

Adapter firmware version

6.10.3.0 build 297

Adapter

SONOFF Universal Zigbee 3.0 USB Dongle Plus ZBDongle E

Setup

Addon Home Assistant

Debug log

No response

smartroad avatar Jun 29 '24 14:06 smartroad

I'm having similar issues with the latest firmware on the IKEA E2001/E2002. The buttons don't seem to work, or only long presses are recognized by the device. Reinserting the batteries in the device seems to fix the issue for a couple of days, but the problem always comes back. I have this issue with all of my IKEA E2001/E2002 devices (three of them). I even migrated from a SONOFF ZBDongle-P to an SLZB-06M adapter, but the problem persists on both of these adapters.

Kevincoenen avatar Jul 01 '24 08:07 Kevincoenen

Similar comments are reported here also; https://github.com/Koenkk/zigbee2mqtt/issues/22651

peternijssen avatar Jul 01 '24 13:07 peternijssen

Similar for me. Updated the devices to 2.4.11 and the arrow buttons stopped working. On and off buttons still doing fine.

schafran avatar Jul 03 '24 04:07 schafran

I'm running: Z2M: 1.39.0 commit: 0326926, HA: 2024.6.4, Firmware: 2.4.11

When the buttons stops working I remove the battery and put them back. Then the buttons start working again. After a day they stop working again. How can I help debugging / fixing?

martintilma avatar Jul 03 '24 18:07 martintilma

I have the same issue. Ever since the firmware update the remote has barely been working. It works after reinserting the battery for a day or two. The issue is still not fixed in 1.39.0. Is it possible to revert the firmware?

I tried pairing again and using the suggested binding, but it still does not work reliably. Screenshot 2024-07-10 at 22 48 41

Screenshot 2024-07-10 at 22 48 46

For example pressing the right button publishes one of these two variations:

[2024-07-10 22:52:31] debug: 	z2m: Received Zigbee message from 'Bedroom Remote', type 'commandTradfriArrowRelease', cluster 'genScenes', data '{"value":18127}' from endpoint 1 with groupID 0
[2024-07-10 22:52:31] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"arrow_right_release","action_duration":18.127,"battery":100,"last_seen":"2024-07-10T22:52:31+03:00","linkquality":131,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 22:52:31] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"","battery":100,"last_seen":"2024-07-10T22:52:31+03:00","linkquality":131,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 22:52:31] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote/action', payload 'arrow_right_release'
[2024-07-10 22:50:40] debug: 	z2m: Received Zigbee message from 'Bedroom Remote', type 'commandTradfriArrowHold', cluster 'genScenes', data '{"value":3328}' from endpoint 1 with groupID 0
[2024-07-10 22:50:40] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"arrow_right_hold","battery":100,"last_seen":"2024-07-10T22:50:40+03:00","linkquality":54,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 22:50:40] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"","battery":100,"last_seen":"2024-07-10T22:50:40+03:00","linkquality":54,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 22:50:40] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote/action', payload 'arrow_right_hold'

Pressing left:

[2024-07-10 22:54:30] debug: 	z2m: Received Zigbee message from 'Bedroom Remote', type 'commandTradfriArrowRelease', cluster 'genScenes', data '{"value":17078}' from endpoint 1 with groupID 0
[2024-07-10 22:54:30] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"arrow_left_release","action_duration":17.078,"battery":100,"last_seen":"2024-07-10T22:54:30+03:00","linkquality":127,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 22:54:30] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"","battery":100,"last_seen":"2024-07-10T22:54:30+03:00","linkquality":127,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 22:54:30] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote/action', payload 'arrow_left_release'
[2024-07-10 22:54:48] debug: 	z2m: Received Zigbee message from 'Bedroom Remote', type 'commandTradfriArrowHold', cluster 'genScenes', data '{"value":3329}' from endpoint 1 with groupID 0
[2024-07-10 22:54:48] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"arrow_left_hold","battery":100,"last_seen":"2024-07-10T22:54:48+03:00","linkquality":131,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 22:54:48] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"","battery":100,"last_seen":"2024-07-10T22:54:48+03:00","linkquality":131,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 22:54:48] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote/action', payload 'arrow_left_hold'

Pressing up and down does not do anything most of the time. When it does, this is published:

[2024-07-10 22:55:47] debug: 	z2m: Received Zigbee message from 'Bedroom Remote', type 'commandStopWithOnOff', cluster 'genLevelCtrl', data '{}' from endpoint 1 with groupID 0
[2024-07-10 22:55:47] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"brightness_stop","battery":100,"last_seen":"2024-07-10T22:55:47+03:00","linkquality":131,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 22:55:47] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"","battery":100,"last_seen":"2024-07-10T22:55:47+03:00","linkquality":131,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 22:55:47] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote/action', payload 'brightness_stop'
[2024-07-10 23:18:37] debug: 	z2m: Received Zigbee message from 'Bedroom Remote', type 'commandMove', cluster 'genLevelCtrl', data '{"movemode":1,"rate":83}' from endpoint 1 with groupID 0
[2024-07-10 23:18:37] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"brightness_move_down","action_rate":83,"battery":100,"last_seen":"2024-07-10T23:18:37+03:00","linkquality":127,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 23:18:37] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"","battery":100,"last_seen":"2024-07-10T23:18:37+03:00","linkquality":127,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 23:18:37] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote/action', payload 'brightness_move_down'
[2024-07-10 22:55:47] debug: 	z2m: Received Zigbee message from 'Bedroom Remote', type 'commandMoveWithOnOff', cluster 'genLevelCtrl', data '{"movemode":0,"rate":83}' from endpoint 1 with groupID 0
[2024-07-10 22:55:47] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"brightness_move_up","action_rate":83,"battery":100,"last_seen":"2024-07-10T22:55:47+03:00","linkquality":131,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 22:55:47] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"","battery":100,"last_seen":"2024-07-10T22:55:47+03:00","linkquality":131,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 22:55:47] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote/action', payload 'brightness_move_up'

Nezz avatar Jul 10 '24 19:07 Nezz

After reinserting the battery it starts to work normally. Left:

[2024-07-10 23:44:11] debug: 	z2m: Received Zigbee message from 'Bedroom Remote', type 'commandTradfriArrowSingle', cluster 'genScenes', data '{"value":257,"value2":13}' from endpoint 1 with groupID 0
[2024-07-10 23:44:11] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"arrow_left_click","battery":100,"last_seen":"2024-07-10T23:44:11+03:00","linkquality":91,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 23:44:11] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"","battery":100,"last_seen":"2024-07-10T23:44:11+03:00","linkquality":91,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 23:44:11] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote/action', payload 'arrow_left_click'

Right:

[2024-07-10 23:44:06] debug: 	z2m: Received Zigbee message from 'Bedroom Remote', type 'commandTradfriArrowSingle', cluster 'genScenes', data '{"value":256,"value2":13}' from endpoint 1 with groupID 0
[2024-07-10 23:44:06] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"arrow_right_click","battery":100,"last_seen":"2024-07-10T23:44:06+03:00","linkquality":91,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 23:44:06] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"","battery":100,"last_seen":"2024-07-10T23:44:06+03:00","linkquality":91,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 23:44:06] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote/action', payload 'arrow_right_click'

Up:

[2024-07-10 23:44:14] debug: 	z2m: Received Zigbee message from 'Bedroom Remote', type 'commandOn', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 0
[2024-07-10 23:44:14] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"on","battery":100,"last_seen":"2024-07-10T23:44:14+03:00","linkquality":94,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 23:44:14] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"","battery":100,"last_seen":"2024-07-10T23:44:14+03:00","linkquality":94,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 23:44:14] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote/action', payload 'on'

Down:

[2024-07-10 23:44:18] debug: 	z2m: Received Zigbee message from 'Bedroom Remote', type 'commandOff', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 0
[2024-07-10 23:44:18] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"off","battery":100,"last_seen":"2024-07-10T23:44:18+03:00","linkquality":83,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 23:44:18] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote', payload '{"action":"","battery":100,"last_seen":"2024-07-10T23:44:18+03:00","linkquality":83,"update":{"installed_version":33816593,"latest_version":33816593,"state":"idle"},"update_available":null}'
[2024-07-10 23:44:18] info: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bedroom Remote/action', payload 'off'

Nezz avatar Jul 10 '24 20:07 Nezz

I also have the exact same issue and did not find a solution yet. I am at 1.36.1.

Bkrickl avatar Jul 11 '24 19:07 Bkrickl

Discussed this also in the forum topic https://github.com/Koenkk/zigbee2mqtt/discussions/23243.

After experiencing the same things as mentioned above I currently use a Trädfri hub and one Styrbar remote + lightbulb, to check the remote. This combination is now already active for at least 2 days without interruption. I now will try to install an older Z2M version as local add-on. See what happens. I will look for a version before 1.36.1.

EricV-hue avatar Jul 12 '24 08:07 EricV-hue

Have same issue, maybe some kind of "timeout" I have one in my office room works fine the whole week, after 2.5 day no usage over weekend have to reinsert the battery

DerOetzi avatar Jul 16 '24 09:07 DerOetzi

Quick update: The remote on the Trädfi hub is still working as it should be. My Z2M is now on 1.35.0. The remote connected to HA works fine, key presses are reported correctly, even for multiple days. Until the left arrow key is pressed. The response then gets unpredictable: sometimes i get brightness_move_down, or brightness_stop. Also the long keypress behave inconsistant. i think this behaviour was intended to be solved in 1.36.0? At some point, after pressing the left arrow key a number of times the remote stopped. After a Soft reset (battery remove) the responses were normal.

Does this suggest that it is not the remote control update but the z2m software causing the problem?

EricV-hue avatar Jul 16 '24 20:07 EricV-hue

The issue is resolved by a firmware downgrade, you can follow the instructions here: https://github.com/Koenkk/zigbee2mqtt/discussions/23243#discussioncomment-10038494

Nezz avatar Jul 17 '24 07:07 Nezz

Although downgrading is working, I think this is more a workaround than a solution. Downgrading the remote does not explain why the same remote combined with a Trådfri hub works without problem.

is there a handy way to do some sort of sniffing on mqtt messages?

EricV-hue avatar Jul 17 '24 08:07 EricV-hue

It is indeed a workaround. I believe zigbee traffic sniffing would be needed: https://www.zigbee2mqtt.io/advanced/zigbee/04_sniff_zigbee_traffic.html

IKEA probably introduced something in the new firmware that causes the device to enter a bad state after a day or two. The Tradfri hub might send something to the remote once a day that keeps it in the working state. Or it might set up a reporting that's needed to not brick the remote.

Nezz avatar Jul 17 '24 12:07 Nezz

Maybe. But that does not seem to explain why the remote keeps working with z2m 1.35.0. That is, as far as brightness_move_up and brightness_move_down are concerned.

EricV-hue avatar Jul 18 '24 16:07 EricV-hue

I played with the Availability setting (from simple to advanced) but I didn't notice any difference. The last days the remotes are working fine again.

martintilma avatar Jul 19 '24 06:07 martintilma

Which version of z2m and remote firmare are you using?

EricV-hue avatar Jul 19 '24 15:07 EricV-hue

1.39.0 commit: 0326926

Remote firmware: 2.4.11 HA: 2024.7.2

martintilma avatar Jul 20 '24 08:07 martintilma

I also seem to be hitting this issue, and would love to see it resolved!

My information in case that helps:

Zigbee2Mqtt: 1.39.0 commit: 0326926 Adapter: UZG Gateway (UZG-01), running ZXG firmware (240707), and z-stack 240710 (although I've also tried with 20230507)] IKEA E2002 Styrbar Remote: Firmware 2.4.11

I do note that like others, taking out the battery, and putting it back in seems to make the remote work for about 1 day - but then it suddenly stops working.

I can try looking at Zigbee traffic sniffing, if people think that would help - is https://www.zigbee2mqtt.io/advanced/zigbee/04_sniff_zigbee_traffic.html#_3-sniffing-traffic the best way to start?

I wonder if there's some way of doing it from the Zigstar adpater itself - or is it best to get a secondary Zigbee-capable device/adapter to do the sniffing? And I assume it would need to sniff for more than a 24-hour period?

victorhooi avatar Jul 25 '24 17:07 victorhooi

@victorhooi having a sniff from the working situation until the failure will definitely help. Make sure to sniff close to the coordinator. Note that it requires a separate adapter (cannot be done with the coordinator)

Koenkk avatar Jul 25 '24 19:07 Koenkk

Quick update: i now have 2 Styrbar remotes working with no issues for about 1 week. Z2M version 1.35.0, Styrbar 2.4.11

EricV-hue avatar Jul 27 '24 08:07 EricV-hue

Could you check if the issue is fixed with the following external converter (in combination with z2m 1.39.0)

  • save this as file next to configuration.yaml as ext_converter.js
  • add it to configuration.yaml:
external_converters:
  - ext_converter.js
  • start z2m,
  • in the frontend, check if the description of this device now ends with CUSTOM (this indicates the external converter has been loaded correctly)
  • check if issue is fixed

Koenkk avatar Jul 27 '24 10:07 Koenkk

Will do that. Updated z2m to 1.39.0 and now waiting for the issue to reoccur (or not?).

EricV-hue avatar Jul 28 '24 09:07 EricV-hue

@Koenkk I tried to load the external converter but no luck:

z2m: Failed to load external converter file 'ext_converter.js' (Cannot find module '../lib/develco'
Require stack:
- /app/dist/util/utils.js
- /app/dist/util/settings.js
- /app/index.js)

After removing the unused imports:

z2m: Failed to load external converter file 'ext_converter.js' (Cannot read properties of undefined (reading 'options'))

Nezz avatar Jul 28 '24 13:07 Nezz

Will also try it. Had to adjust the code a little bit so it is working for me on 1.36.1.

Commented out the following:

// const {develcoModernExtend} = require('../lib/develco'); // const {battery} = require('../lib/modernExtend'); // if (utils.hasAlreadyProcessedMessage(msg, model)) return;

Since these things are not available for me

Then i added const globalStore = require('zigbee-herdsman-converters/lib/store');

Will come back to you to tell if i have or don't have any issues.

Bkrickl avatar Jul 28 '24 17:07 Bkrickl

@Koenkk I tried to load the external converter but no luck:

z2m: Failed to load external converter file 'ext_converter.js' (Cannot find module '../lib/develco'
Require stack:
- /app/dist/util/utils.js
- /app/dist/util/settings.js
- /app/index.js)

After removing the unused imports:

z2m: Failed to load external converter file 'ext_converter.js' (Cannot read properties of undefined (reading 'options'))

Whoops, updated https://gist.github.com/Koenkk/3d766bc346c74cb985b75cbb13eb7c6e

Koenkk avatar Jul 29 '24 17:07 Koenkk

I tried the updated one and @Bkrickl's suggestions too, but it's still failing to load with 1.39.0:

z2m: Failed to load external converter file 'ext_converter.js' (Cannot read properties of undefined (reading 'options'))

Nezz avatar Jul 29 '24 17:07 Nezz

I managed to make Z2M load it, here is what worked in the end: https://gist.github.com/Nezz/d036fb0047b667e7c91a13ccd5a4b33c

The issue was not fixed by this right away - I think the remote enters a bugged state after a day or so and it was already in this broken state. I re-inserted the battery to make it work again and will report back in a day or two.

Nezz avatar Jul 29 '24 18:07 Nezz

On the ikea thread says a new firmware with fixes are available 2.4.16 but i think is only available for ikea hub.

can someone know the download link manually?

Maverick5269-lab avatar Jul 31 '24 15:07 Maverick5269-lab

Looks like they indeed released that update to fix these issues: https://www.reddit.com/r/tradfri/comments/1e4lq3f/styrbar_firmware_version_2416/

Sadly they have not published it here: http://fw.ota.homesmart.ikea.net/feed/version_info.json

Nezz avatar Jul 31 '24 18:07 Nezz

Looks like they indeed released that update to fix these issues: https://www.reddit.com/r/tradfri/comments/1e4lq3f/styrbar_firmware_version_2416/

Sadly they have not published it here: http://fw.ota.homesmart.ikea.net/feed/version_info.json

I think this new firmware fixes the remote that enters a bugged state after a day or so. Without it I think it will always enters in this state after sometime in standby. From the Ikea thread this happens not only in the home assistant but with Ikea hub too. I assume this is a firmware problem with device and not from Zigbee2Mqtt.

Looks like they indeed released that update to fix these issues: https://www.reddit.com/r/tradfri/comments/1e4lq3f/styrbar_firmware_version_2416/

Sadly they have not published it here: http://fw.ota.homesmart.ikea.net/feed/version_info.json

Thanks I didn't knew were they were published. But appears the IKEA Hub goes to other address getting it. From the thread the hub is DIRIGERA that applies the new version.

Maverick5269-lab avatar Jul 31 '24 18:07 Maverick5269-lab