Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't update Ikea Styrbar 1.0.024 to latest version #18515

Closed
crispy78 opened this issue Aug 3, 2023 · 81 comments
Closed

Can't update Ikea Styrbar 1.0.024 to latest version #18515

crispy78 opened this issue Aug 3, 2023 · 81 comments
Labels
problem Something isn't working

Comments

@crispy78
Copy link

crispy78 commented Aug 3, 2023

What happened?

When using the OTA functionality Zigbee2MQTT concludes that the version 1.0.024 is newer than the firmware available online 2.4.5, so it won't update the device.

I've tried forcing the update, but that didn't work. To accomplish that I've renamed the index.json from pull request Koenkk/zigbee-OTA#340 to my_index.json and put it in \config\zigbee2mqtt in Home Assistant and entered /config/zigbee2mqtt/my_index.json in Zigbee2MQTT as the OTA index override file name.

What did you expect to happen?

I would have liked the device to update to the latests firmware.

How to reproduce it (minimal and precise)

Press "Check for new updates" on a Ikea Styrbar in the OTA-menu.

Zigbee2MQTT version

1.32.2-dev commit: 68ec507

Adapter firmware version

20220928

Adapter

CC2652RB

Debug log

info 2023-08-03 22:04:53: Checking if update available for 'Drukknop voordeur'
info 2023-08-03 22:04:53: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Checking if update available for 'Drukknop voordeur'","meta":{"device":"Drukknop voordeur","status":"checking_if_available"},"type":"ota_update"}'
debug 2023-08-03 22:04:53: Check if update available for '0x540f57fffe8f81f0' (Remote Control N2)
debug 2023-08-03 22:04:53: Using endpoint '1'
debug 2023-08-03 22:04:54: Received Zigbee message from 'Drukknop voordeur', type 'commandOff', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 0
info 2023-08-03 22:04:54: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur', payload '{"action":"off","battery":100,"last_seen":"2023-08-03T22:04:54+02:00","linkquality":36,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":false}'
info 2023-08-03 22:04:54: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur', payload '{"action":"","battery":100,"last_seen":"2023-08-03T22:04:54+02:00","linkquality":36,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":false}'
info 2023-08-03 22:04:54: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur/action', payload 'off'
debug 2023-08-03 22:04:54: Received Zigbee message from 'Drukknop voordeur', type 'commandOff', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 0
info 2023-08-03 22:04:54: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur', payload '{"action":null,"battery":100,"last_seen":"2023-08-03T22:04:54+02:00","linkquality":36,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":false}'
debug 2023-08-03 22:04:56: Received Zigbee message from 'Drukknop voordeur', type 'commandTradfriArrowSingle', cluster 'genScenes', data '{"value":256,"value2":13}' from endpoint 1 with groupID 0
info 2023-08-03 22:04:56: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur', payload '{"action":"arrow_right_click","battery":100,"last_seen":"2023-08-03T22:04:56+02:00","linkquality":36,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":false}'
info 2023-08-03 22:04:56: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur', payload '{"action":"","battery":100,"last_seen":"2023-08-03T22:04:56+02:00","linkquality":36,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":false}'
info 2023-08-03 22:04:56: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur/action', payload 'arrow_right_click'
debug 2023-08-03 22:04:56: Received Zigbee message from 'Drukknop voordeur', type 'commandTradfriArrowSingle', cluster 'genScenes', data '{"value":256,"value2":13}' from endpoint 1 with groupID 0
info 2023-08-03 22:04:56: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur', payload '{"action":null,"battery":100,"last_seen":"2023-08-03T22:04:56+02:00","linkquality":36,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":false}'
debug 2023-08-03 22:04:57: Received Zigbee message from 'Drukknop voordeur', type 'commandTradfriArrowSingle', cluster 'genScenes', data '{"value":257,"value2":13}' from endpoint 1 with groupID 0
info 2023-08-03 22:04:57: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur', payload '{"action":"arrow_left_click","battery":100,"last_seen":"2023-08-03T22:04:57+02:00","linkquality":36,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":false}'
info 2023-08-03 22:04:57: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur', payload '{"action":"","battery":100,"last_seen":"2023-08-03T22:04:57+02:00","linkquality":36,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":false}'
info 2023-08-03 22:04:57: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur/action', payload 'arrow_left_click'
debug 2023-08-03 22:04:57: Received Zigbee message from 'Drukknop voordeur', type 'commandTradfriArrowSingle', cluster 'genScenes', data '{"value":257,"value2":13}' from endpoint 1 with groupID 0
info 2023-08-03 22:04:57: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur', payload '{"action":null,"battery":100,"last_seen":"2023-08-03T22:04:57+02:00","linkquality":36,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":false}'
debug 2023-08-03 22:04:57: Received Zigbee message from 'Drukknop voordeur', type 'commandQueryNextImageRequest', cluster 'genOta', data '{"fieldControl":1,"fileVersion":65572,"imageType":4555,"manufacturerCode":4476}' from endpoint 1 with groupID 0
info 2023-08-03 22:04:57: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur', payload '{"action":null,"battery":100,"last_seen":"2023-08-03T22:04:57+02:00","linkquality":36,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":false}'
debug 2023-08-03 22:04:57: Got OTA request '{"fieldControl":1,"manufacturerCode":4476,"imageType":4555,"fileVersion":65572}'
debug 2023-08-03 22:04:58: Received Zigbee message from 'Drukknop voordeur', type 'commandOn', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 0
info 2023-08-03 22:04:58: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur', payload '{"action":"on","battery":100,"last_seen":"2023-08-03T22:04:58+02:00","linkquality":32,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":false}'
info 2023-08-03 22:04:58: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur', payload '{"action":"","battery":100,"last_seen":"2023-08-03T22:04:58+02:00","linkquality":32,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":false}'
info 2023-08-03 22:04:58: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur/action', payload 'on'
debug 2023-08-03 22:04:58: Received Zigbee message from 'Drukknop voordeur', type 'commandOn', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 0
info 2023-08-03 22:04:58: MQTT publish: topic 'zigbee2mqtt/Drukknop voordeur', payload '{"action":null,"battery":100,"last_seen":"2023-08-03T22:04:58+02:00","linkquality":36,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":false}'
debug 2023-08-03 22:04:58: Is new image available for '0x540f57fffe8f81f0', current '{"fieldControl":1,"manufacturerCode":4476,"imageType":4555,"fileVersion":65572}', latest meta '{"fileVersion":581,"url":"http://fw.ota.homesmart.ikea.net/global/GW1.0/01.20.065/bin/10078031-zingo_kt_styrbar_remote-2.4.5.ota.ota.signed"}'
debug 2023-08-03 22:04:58: Update available for '0x540f57fffe8f81f0': NO
warn 2023-08-03 22:04:58: Firmware on '0x540f57fffe8f81f0' is newer than latest firmware online.
info 2023-08-03 22:04:58: No update available for 'Drukknop voordeur'

@crispy78 crispy78 added the problem Something isn't working label Aug 3, 2023
@crispy78
Copy link
Author

crispy78 commented Aug 4, 2023

I've found someone having the same issues as me.
Someone has altered the header in the update: zigpy/zigpy#1153 (comment) (was browsing Koenkk/zigbee-herdsman-converters#5393 (comment))
I've published the file on my server, created a my_index.json with only that file:

[
    {
        "fileVersion": 33816581,
        "fileSize": 218698,
        "manufacturerCode": 4476,
        "imageType": 4555,
        "sha512": "0e94264bd853d41cc5ee7caa8336b310b60ea8503d56f05ccfb42cb9ec8b03a1aa0cdac27bb6314c3cf9abbd55c9862cc6127bea46abedb8067bea07ffb8a8b1",
        "url": "http://__myserver__/10078031-zingo_kt_styrbar_remote-2.4.5_modded_header.ota.ota.signed",
        "force": true
    }
]

I've entered /config/zigbee2mqtt/my_index.json in "OTA index override file name", I've also tried my_index.json, but it still fails to update.

@malaakso
Copy link

malaakso commented Aug 25, 2023

I've also tried (and failed) to force update Styrbar by downloading the file locally and using local index.json. It seems that zigbee2mqtt ignores local index.json for those devices which are found in online feed, like IKEA. @Koenkk can you confirm this?

@Koenkk
Copy link
Owner

Koenkk commented Aug 25, 2023

It's only used when ota.zigbeeOTA is used (for this device ota.tradfri is used). You can override it with an ext converter: https://gist.github.com/Koenkk/fafd62c76aee9d331f70aa4ff4cf12fd

  • save this as file next to configuration.yaml as ext_converter.js
  • add it to configuration.yaml:
external_converters:
  - ext_converter.js
  • start z2m, check if issue is fixed
  • After update remove the ext converter again

@malaakso
Copy link

Thanks! I was able to update to 2.4.5 with the external converter.

I opened a pull request to get this information to the official docs.

@Koenkk
Copy link
Owner

Koenkk commented Aug 26, 2023

Great, assuming this can be closed now.

@Koenkk Koenkk closed this as completed Aug 26, 2023
@crispy78
Copy link
Author

I've tried it in several ways and couldn't get it to work. I've created the .js-file, I've changed the config, I've restarted Z2M from within Home Assistant numerous times and I can't get the button to update. I've added my my_index.json to the config and then I got the message that 1.0.024 is newer than 2.4.5.

@malaakso
Copy link

malaakso commented Aug 27, 2023

@crispy78 this is the index.json I used for successful OTA (I downloaded the file from IKEA feed to the /app/data directory):
[ { "manufacturerCode": 4476, "imageType": 4555, "fileVersion": 581, "url": "10078031-zingo_kt_styrbar_remote-2.4.5.ota.ota.signed", "force": true } ]
Your file version seems off.

@crispy78
Copy link
Author

I'm about to quit this struggle. I can't find the app/data directory, so I've placed the file in the Zigbee2MQTT config-directory. I've changed the my_index.json-file, changed the config-file and still no luck. I'm thinking of changing to ZHA temporarily, the device seems to be updating on that platform with less hassle. I might be wrong.

@tishcufksips
Copy link

tishcufksips commented Aug 27, 2023

I'm about to quit this struggle. I can't find the app/data directory, so I've placed the file in the Zigbee2MQTT config-directory. I've changed the my_index.json-file, changed the config-file and still no luck. I'm thinking of changing to ZHA temporarily, the device seems to be updating on that platform with less hassle. I might be wrong.

I've just managed to start the update, maybe I can help...
image

My problem was that I didn't know that GUI settings override the settings I've put in config files by hand.
Do you see any error when trying to update?

I've used simple-web-server from GitHub on my PC, and put 10078031-zingo_kt_styrbar_remote-2.4.5.ota.ota.signed and my_index.json files in the root directory. Then in Z2M\Settings\OTA Updates I've unchecked "IKEA TRADFRI OTA use test url" and put url to my_index.json file on web server - in my case it was http://192.168.1.100/my_index.json

Contents of my my_index.json:
[ { "manufacturerCode": 4476, "imageType": 4555, "fileVersion": 581, "url": "http://192.168.1.100/10078031-zingo_kt_styrbar_remote-2.4.5.ota.ota.signed", "force": true } ]

and last thing was ext_converter.js which I've uploaded with File Editor to the zigbee2mqtt directory. Contents were taken from the link that koenkk provided above. Then i just entered converter filename in Z2M\Settings\External Converters

@crispy78
Copy link
Author

crispy78 commented Aug 27, 2023

@tishcufksips thanks for your instructions, it finally got to the point that it found an update and it's currently updating.
For some reason the config wanted to use the test server so I had to change that to false and putting the my_index.json and update on my own server was a very helpfull comment.

@jkl1337
Copy link

jkl1337 commented Oct 1, 2023

There is no need to run a server or anything like that. zigbee2mqtt is perfectly capable of serving the file. The firmware file and my_index.json can both go in the data directory, which is the same directory that zigbee2mqtt configuration.yaml is located.
The steps that work are as follows:

  1. Copy https://gist.github.com/Koenkk/fafd62c76aee9d331f70aa4ff4cf12fd to ext_converter.js (in the zigbee2mqtt data directory).
  2. Download http://fw.ota.homesmart.ikea.net/global/GW1.0/01.20.065/bin/10078031-zingo_kt_styrbar_remote-2.4.5.ota.ota.signed and place the file into the zigbee2mqtt data directory.
  3. Add the following to a file called my_index.json in the data directory
[ { "manufacturerCode": 4476,
"imageType": 4555, 
"fileVersion": 581,
"url": "10078031-zingo_kt_styrbar_remote-2.4.5.ota.ota.signed",
"force": true } ]
  1. Add/merge the following configuration items to configuration.yaml
external_converters:
  - ext_converter.js
ota:
  zigbee_ota_override_index_location: my_index.json
  1. Restart zigbee2mqtt and go through the OTA update process as normal. After completion should then remove the ext_converter.js from the configuration and restart.

@brainhig
Copy link

brainhig commented Oct 5, 2023

Hi y'all:

I'm pretty sure I've done all the steps here correctly, and have tried both using a web server and putting the necessary files on the HA instance directly, but I'm getting errors (see below) that seem to point to another problem. The buttons are working correctly, so I'm not sure these errors really mean what they say. Any help or pointers is appreciated!

Info 2023-10-04 18:30:39MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"Failed to check if update available for 'IKEAButton2' (Device didn't respond to OTA request)","meta":{"device":"IKEAButton2","status":"check_failed"},"type":"ota_update"}'
Info 2023-10-04 18:30:39MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/check', payload '{"data":{"id":"IKEAButton2"},"error":"Failed to check if update available for 'IKEAButton2' (Device didn't respond to OTA request)","status":"error","transaction":"9rsko-15"}'

with DEBUG on, these errors appear:

Error 2023-10-04 19:13:07Failed to check if update available for 'IKEAButton2' (Device didn't respond to OTA request)
Debug 2023-10-04 19:13:07Error: Device didn't respond to OTA request at requestOTA (/app/node_modules/zigbee-herdsman-converters/src/lib/ota/common.ts:202:15) at Object.isUpdateAvailable (/app/node_modules/zigbee-herdsman-converters/src/lib/ota/common.ts:274:25) at OTAUpdate.onMQTTMessage (/app/lib/extension/otaUpdate.ts:203:45)

@malaakso
Copy link

malaakso commented Oct 5, 2023

Did you press button on the remote to wake it up immediately after clicking Check for updates?

@brainhig
Copy link

brainhig commented Oct 5, 2023

Did you press button on the remote to wake it up immediately after clicking Check for updates?

I did. I've reverted all the changes to force an OTA update and reset the devices and configs. And even then I get the same error :(

EDIT:

Finally got it to work. I, like [tishcufksips], found that I had to add the converter and index entries into the GUI for it to work. Also, pulling the batteries from the buttons seems to help the process along, as it checks for an update immediately after power-on.

@rbalaev
Copy link

rbalaev commented Oct 9, 2023

After flashing the firmware, the buttons stopped working, action commands are no longer sent, 3 buttons were flashed and they all stopped working. What have I done wrong?

@malaakso
Copy link

malaakso commented Oct 9, 2023

You have to remove the external converter and restart zigbee2mqtt to get all functionality back.

@rbalaev
Copy link

rbalaev commented Oct 9, 2023

You have to remove the external converter and restart zigbee2mqtt to get all functionality back.

Thank you, everything returned after completely stopping the container and starting it, restarting did not help.

@evilmumi
Copy link

evilmumi commented Nov 3, 2023

Hi, i did the update from #18515 (comment) and now only got device_announce messages when i insert battery.
Restart Z2M restart Docker container - no other information from device
Debug says: Retrieving state of "STYRBAR01' after reconnect.

@DrLeurs
Copy link

DrLeurs commented Nov 5, 2023

You have to remove the external converter and restart zigbee2mqtt to get all functionality back.

Thank you, everything returned after completely stopping the container and starting it, restarting did not help.

I alas seem to experience the same problem, even after restarting z2m/the whole system: both of my buttons stopped working after flashing the new firmware. No action commands are sent from them and I also can't seem to remove them.

They do however seem to pair perfectly again when factory resetting them, but the result is the same: no functionality whatsoever.

@evilmumi
Copy link

evilmumi commented Nov 6, 2023

I think something worked here.
Reset them
delete from Zigbee2MQTT
Pair with a bulb
pair with Zigbee2MQTT
reset the bulb

@DrLeurs
Copy link

DrLeurs commented Nov 6, 2023

I think something worked here. Reset them delete from Zigbee2MQTT Pair with a bulb pair with Zigbee2MQTT reset the bulb

I was about to do this, when I suddenly realized one of the two buttons worked. The only thing I had been doing (repeatedly) was removing the device, pairing it again and rebooting my entire system, to no avail. After leaving the button many hours, it suddenly worked. The second button I had still didn't work, but worked immediately after re-pairing it. I can't really pinpoint what suddenly changed...

@MacJawa
Copy link

MacJawa commented Nov 7, 2023

I think something worked here. Reset them delete from Zigbee2MQTT Pair with a bulb pair with Zigbee2MQTT reset the bulb

I was about to do this, when I suddenly realized one of the two buttons worked. The only thing I had been doing (repeatedly) was removing the device, pairing it again and rebooting my entire system, to no avail. After leaving the button many hours, it suddenly worked. The second button I had still didn't work, but worked immediately after re-pairing it. I can't really pinpoint what suddenly changed...

I've seen this behavior before. Mostly with IKEA shortcut button. It paired well, but sent no actions. Sometimes it started to work after multiple factory reset, sometimes I left it on the table and started to work after some hours by itself.
Hope this will happen with Styrbar, as both of my remotes now do not communicate as well after firmware update

@bub4
Copy link

bub4 commented Nov 8, 2023

same here - after the FW update it did not work anymore. Pairing was fine, just didn't trigger any action. I took out the batteries and replaced the remote with an old FW-level. After two days I wanted to do further tests and after inserting the batteries, the Styrbar worked just normal. So maybe it helps to take out the batteries over night...

thanks @jkl1337 for the above manual!!

@hazemhelmy
Copy link

same issue , tried to pair, it pairs ok ( long process of interview but finally pairs) but no actions triggered , also You can force a update for the firmware by pairing with hub and letting it update and then unpairing , but still when i connect to HA there is no trigger or binds working

@malaakso
Copy link

malaakso commented Nov 9, 2023

Since it is fixed (in container installation) by completely removing the container, it must be that the external converter gets somehow included in some other directory than data. Is it somehow cached or compiled in under files in dist?

@SnakeZi
Copy link

SnakeZi commented Nov 9, 2023

Few days ago something strange happened. Styrbar started to light up the bulbs on 1% of brightness no matter the previous state (not by automation but through binding). I had no such problem before. During my experiments I've excluded the fault of bulbs (they remembered brightness on power outage) and automations. It was Styrbar that was a culprit. And so I found this topic and decided to upgrade it. Thx @jkl1337 for great instruction!

Upgrade didn't help. The bulbs are still turned on with 1% brightness no matter what (I can move brightness up, but after I turn off the lights they forget previous value). No gain here.

Update breaks single arrow press. To recover from it I had to delete the device from z2m and re-pair anew. After that the new binding to Coordinator appeared - Scenes which fixes lack of single press as explained in this topic #15725

I still have to find the fix for this 1% brightness..

@Redominus
Copy link

...
I still have to find the fix for this 1% brightness..

Same here 😞

@SnakeZi
Copy link

SnakeZi commented Nov 22, 2023

Hi @Redominus
In my case I was totally wrong. The issue with 1% brightness wasn't caused by Styrbar remote. Update of Zigbee2Mqtt something messed up with the IKEA light bulbs ( https://www.zigbee2mqtt.io/devices/LED2003G10.html#ikea-led2003g10 ). The fix for me was to remove bulbs completely from z2m and pair them again. Now the bulbs remember their brightness again.

As for the Styrbar remote it is not worth it to update. With firmware 1.0.024 the remote could be bound with Lidl bulbs ( https://www.zigbee2mqtt.io/devices/HG06492B.html#lidl-hg06492b ). After update the remote works only with original IKEA ones.

@JohnBull-1975
Copy link

JohnBull-1975 commented May 5, 2024

And you removed that external converter and restart Z2M also?

external converter?

If I remove and re-insert batteries, last seen gets updated. But it still says offline and no response from buttons

@boozeman
Copy link

boozeman commented May 5, 2024

And you removed that external converter and restart Z2M also?

external converter?

If I remove and re-insert batteries, last seen gets updated. But it still says offline and no response from buttons

And you restarted Z2M also? If so, I am clueless here. :(

@JohnBull-1975
Copy link

Just tried this:

  • Removed batteries
  • Deleted with Force Exclude
  • Reboot Home Assistant (full reboot)
  • Inserted batteries - device came back without activating Permit Join

Stil "Offline" and no response

@JohnBull-1975
Copy link

JohnBull-1975 commented May 5, 2024

Edit:
Tried clearing the log
Pairing button x4 - device left
Device LED stable red light
Permit Join All - device re-joined

Log:
Warning 2024-05-05 21:17:22Device '0x287681fffeecf0d8' left the network
Info 2024-05-05 21:17:59Zigbee: allowing new devices to join.
Error 2024-05-05 21:17:59Received undefined command from '0'
Info 2024-05-05 21:18:05Interview for '0x287681fffeecf0d8' started
Info 2024-05-05 21:18:05Device '0x287681fffeecf0d8' joined
Info 2024-05-05 21:18:05Starting interview of '0x287681fffeecf0d8'
Info 2024-05-05 21:18:09Succesfully interviewed '0x287681fffeecf0d8'
Info 2024-05-05 21:18:09Successfully interviewed '0x287681fffeecf0d8', device has successfully been paired
Info 2024-05-05 21:18:09Device '0x287681fffeecf0d8' is supported, identified as: IKEA STYRBAR remote control (E2001/E2002)
Info 2024-05-05 21:18:31Zigbee: disabling joining new devices.
Error 2024-05-05 21:18:31Received undefined command from '0'

Read further up in this thread...some buttons looks to have started working after just leaving them for a day or two...
I'll see if my works tomorrow - otherwise I try to take it to IKEA and see if they replace it...

@JohnBull-1975
Copy link

that other thread was ZHA...so not applicable...other than it looks to be problems there as well

@JohnBull-1975
Copy link

JohnBull-1975 commented May 5, 2024

I had no trouble updating remote to latest firmware, but I regret doing that. After update 2.4.11 arrow buttons stopped sending event action in zigbee2mqtt. other two buttons worked just fine. After binding one ikea lightbulb to remote via Z2mqtt short press on arrows started working, but longer press is not registering in event action, (not triggering). When I press and hold any of the arrow keys its starts to dim lightbulb I just have bind.

My updated styrbar does not react on any button after update to 2.4.11 and excluded and re-joined to the network. Tried to bind it to a bulb according to your post above, but it fails to bind:

Error 2024-05-05 23:08:53Frame changeSourceRouteHandler parsing error: RangeError: Attempt to access memory outside buffer bounds at new NodeError (node:internal/errors:405:5) at boundsError (node:internal/buffer:86:11) at Buffer.readUInt16LE (node:internal/buffer:245:5) at Buffer.readUIntLE (node:internal/buffer:182:17) at Function.deserialize (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/types/basic.ts:19:67) at new EZSPFrameData (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:180:54) at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:154:23 at Array.every () at Function.createFrame (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:148:15) at Ezsp.onFrameReceived (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:439:35)
Error 2024-05-05 23:08:53Unparsed frame 0xc4. Skipped
Error 2024-05-05 23:08:55Failed to bind cluster 'genOnOff' from 'Styrbar' to 'Leos Byrå' (Error: Bind 0x287681fffeecf0d8/1 genOnOff from '0x5cc7c1fffe9f59fe/1' failed ({"address":35917,"clusterId":32801,"sequence":216} after 10000ms))
Error 2024-05-05 23:08:55Failed to bind

@zoomtronicOR
Copy link

I had no trouble updating remote to latest firmware, but I regret doing that. After update 2.4.11 arrow buttons stopped sending event action in zigbee2mqtt. other two buttons worked just fine. After binding one ikea lightbulb to remote via Z2mqtt short press on arrows started working, but longer press is not registering in event action, (not triggering). When I press and hold any of the arrow keys its starts to dim lightbulb I just have bind.

My updated styrbar does not react on any button after update to 2.4.11 and excluded and re-joined to the network. Tried to bind it to a bulb according to your post above, but it fails to bind:

Error 2024-05-05 23:08:53Frame changeSourceRouteHandler parsing error: RangeError: Attempt to access memory outside buffer bounds at new NodeError (node:internal/errors:405:5) at boundsError (node:internal/buffer:86:11) at Buffer.readUInt16LE (node:internal/buffer:245:5) at Buffer.readUIntLE (node:internal/buffer:182:17) at Function.deserialize (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/types/basic.ts:19:67) at new EZSPFrameData (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:180:54) at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:154:23 at Array.every () at Function.createFrame (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:148:15) at Ezsp.onFrameReceived (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:439:35) Error 2024-05-05 23:08:53Unparsed frame 0xc4. Skipped Error 2024-05-05 23:08:55Failed to bind cluster 'genOnOff' from 'Styrbar' to 'Leos Byrå' (Error: Bind 0x287681fffeecf0d8/1 genOnOff from '0x5cc7c1fffe9f59fe/1' failed ({"address":35917,"clusterId":32801,"sequence":216} after 10000ms)) Error 2024-05-05 23:08:55Failed to bind

Did You checked following checkboxes on bulbs? OnOff, genPollCtrl
do that and try binding again

@JohnBull-1975
Copy link

JohnBull-1975 commented May 5, 2024

I had no trouble updating remote to latest firmware, but I regret doing that. After update 2.4.11 arrow buttons stopped sending event action in zigbee2mqtt. other two buttons worked just fine. After binding one ikea lightbulb to remote via Z2mqtt short press on arrows started working, but longer press is not registering in event action, (not triggering). When I press and hold any of the arrow keys its starts to dim lightbulb I just have bind.

My updated styrbar does not react on any button after update to 2.4.11 and excluded and re-joined to the network. Tried to bind it to a bulb according to your post above, but it fails to bind:
Error 2024-05-05 23:08:53Frame changeSourceRouteHandler parsing error: RangeError: Attempt to access memory outside buffer bounds at new NodeError (node:internal/errors:405:5) at boundsError (node:internal/buffer:86:11) at Buffer.readUInt16LE (node:internal/buffer:245:5) at Buffer.readUIntLE (node:internal/buffer:182:17) at Function.deserialize (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/types/basic.ts:19:67) at new EZSPFrameData (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:180:54) at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:154:23 at Array.every () at Function.createFrame (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:148:15) at Ezsp.onFrameReceived (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:439:35) Error 2024-05-05 23:08:53Unparsed frame 0xc4. Skipped Error 2024-05-05 23:08:55Failed to bind cluster 'genOnOff' from 'Styrbar' to 'Leos Byrå' (Error: Bind 0x287681fffeecf0d8/1 genOnOff from '0x5cc7c1fffe9f59fe/1' failed ({"address":35917,"clusterId":32801,"sequence":216} after 10000ms)) Error 2024-05-05 23:08:55Failed to bind

Did You checked following checkboxes on bulbs? OnOff, genPollCtrl do that and try binding again

I tried checking OnOff, but there were not genPollCtrl for that bulb:
image

Tried checking OnOff and LevelCtrl just to test. Not sure what LevelCtrl is, but then it managed to bind LevelCtrl but not OnOff:
image

Logs:
Error 2024-05-05 23:50:51Frame changeSourceRouteHandler parsing error: RangeError: Attempt to access memory outside buffer bounds at new NodeError (node:internal/errors:405:5) at boundsError (node:internal/buffer:86:11) at Buffer.readUInt16LE (node:internal/buffer:245:5) at Buffer.readUIntLE (node:internal/buffer:182:17) at Function.deserialize (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/types/basic.ts:19:67) at new EZSPFrameData (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:180:54) at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:154:23 at Array.every () at Function.createFrame (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:148:15) at Ezsp.onFrameReceived (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:439:35)
Error 2024-05-05 23:50:51Unparsed frame 0xc4. Skipped
Error 2024-05-05 23:50:54Failed to bind cluster 'genOnOff' from 'Styrbar' to 'Leos Byrå' (Error: Bind 0x287681fffeecf0d8/1 genOnOff from '0x5cc7c1fffe9f59fe/1' failed ({"address":35917,"clusterId":32801,"sequence":111} after 10000ms))
Info 2024-05-05 23:51:01Successfully bound cluster 'genLevelCtrl' from 'Styrbar' to 'Leos Byrå'
Info 2024-05-05 23:51:01Successfully setup reporting for 'Leos Byrå/1' cluster 'genLevelCtrl'
Error 2024-05-05 23:51:44Frame changeSourceRouteHandler parsing error: RangeError: Attempt to access memory outside buffer bounds at new NodeError (node:internal/errors:405:5) at boundsError (node:internal/buffer:86:11) at Buffer.readUInt16LE (node:internal/buffer:245:5) at Buffer.readUIntLE (node:internal/buffer:182:17) at Function.deserialize (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/types/basic.ts:19:67) at new EZSPFrameData (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:180:54) at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:154:23 at Array.every () at Function.createFrame (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:148:15) at Ezsp.onFrameReceived (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:439:35)
Error 2024-05-05 23:51:44Unparsed frame 0xc4. Skipped
Error 2024-05-05 23:51:46Failed to bind cluster 'genLevelCtrl' from 'Styrbar' to 'Leos Byrå' (Error: Bind 0x287681fffeecf0d8/1 genLevelCtrl from '0x5cc7c1fffe9f59fe/1' failed ({"address":35917,"clusterId":32801,"sequence":124} after 10000ms))
Error 2024-05-05 23:51:54Frame changeSourceRouteHandler parsing error: RangeError: Attempt to access memory outside buffer bounds at new NodeError (node:internal/errors:405:5) at boundsError (node:internal/buffer:86:11) at Buffer.readUInt16LE (node:internal/buffer:245:5) at Buffer.readUIntLE (node:internal/buffer:182:17) at Function.deserialize (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/types/basic.ts:19:67) at new EZSPFrameData (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:180:54) at /app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:154:23 at Array.every () at Function.createFrame (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:148:15) at Ezsp.onFrameReceived (/app/node_modules/zigbee-herdsman/src/adapter/ezsp/driver/ezsp.ts:439:35)
Error 2024-05-05 23:51:54Unparsed frame 0xc4. Skipped
Error 2024-05-05 23:51:56Failed to bind cluster 'genOnOff' from 'Styrbar' to 'Leos Byrå' (Error: Bind 0x287681fffeecf0d8/1 genOnOff from '0x5cc7c1fffe9f59fe/1' failed ({"address":35917,"clusterId":32801,"sequence":125} after 10000ms))
Error 2024-05-05 23:51:56Failed to bind

Edit: LevelCtrl lets me dim the lamp!!!
Tried again to bind OnOff and now that worked. Can switch it on/off
But still no response from buttons i MQTT console

@JohnBull-1975
Copy link

JohnBull-1975 commented May 5, 2024

For the STYRBAR on 1.0.024, genPollCtrl and PowerCfg is bound to coordinator, but for the one on 2.4.11 it's only bound to genPollCtrl....and I can't get it to bind to PowerCfg

When it's possible to bind both functions for up down to go directly via coordinator, but Zigbee2MQTT does not react at all for those buttons....is there something incompatible with this new firmware...?

I don't think I will wait for to long...think I'll try to take the stuff to IKEA and see if they exchange it. It's just half a year old They use to have a very customer friendly approach...

@bchevreau
Copy link

If you are having issues with the color temperature controls on this remote, do the following:

This answer should be added to Styrbar remotes in zigbee2mqtt documentation as well imo, as it just worked for me FINALLY !!!

1- Create a group called ikea_lights (or any name) with ID 65289 (the ID is important)
2- Add lights AND remote to this "magic" group 65289
3- Go to remote and bind the light including feature/cluster 'Scenes' (my binds are
LevelCtrl, OnOff, PowerCfg, Scenes)
4- Add the scenes to the bulb/group via MQTT json in your Home Assistant by clicking on MQTT>Configure with those options:

Topic:
zigbee2mqtt/ikea_lights/set
Payload:
(add each line one by one before you publish for safety)

{"scene_add":{"ID":1,"name":"Cold temp","transition":1,"color_temp":250}}
{"scene_add":{"ID":2,"name":"Neutral temp","transition":1,"color_temp":370}}
{"scene_add":{"ID":3,"name":"Warm temp","transition":1,"color_temp":454}}

Then you should be able to switch through the scenes via the 'left/right click' on the remote !!!

@GermanDZ
Copy link

GermanDZ commented May 6, 2024

My control doesn't report arrow_right_hold, arrow_right_release, arrow_left_hold, arrow_left_release anymore. But that was happening even before the firmware upgrade (but after upgrading zigbee2mqtt in the recent days).

@JohnBull-1975
Copy link

My control doesn't report arrow_right_hold, arrow_right_release, arrow_left_hold, arrow_left_release anymore. But that was happening even before the firmware upgrade (but after upgrading zigbee2mqtt in the recent days).

I planned taking my STYRBAR back to IKEA this afternoon and see if they accept to swap it under warranty as it stopped working...they use to have a very friendly customer service, but than that might not help. I don't think I tested it after updating Z2MQTT the other day before I updated the firmware of the STYRBAR.

I really hope some skilled enthusiast here can manage to update some driver so we can get our STYRBARs to work again!!!

@bchevreau
Copy link

For the STYRBAR on 1.0.024, genPollCtrl and PowerCfg is bound to coordinator, but for the one on 2.4.11 it's only bound to genPollCtrl....and I can't get it to bind to PowerCfg

When it's possible to bind both functions for up down to go directly via coordinator, but Zigbee2MQTT does not react at all for those buttons....is there something incompatible with this new firmware...?

I don't think I will wait for to long...think I'll try to take the stuff to IKEA and see if they exchange it. It's just half a year old They use to have a very customer friendly approach...

Have you tried to upgrade to 2.4.5 then to 2.4.11 though ? I was in the same boat, then I went thru the update process described above (for 2.4.5) then updated thru regular OTA.

Since then, only the 2 arrows were not working same as you, for which I described the fix above (right and left arrow are color temperature controls):

If you are having issues with the color temperature controls on this remote, do the following:

This answer should be added to Styrbar remotes in zigbee2mqtt documentation as well imo, as it just worked for me FINALLY !!!

1- Create a group called ikea_lights (or any name) with ID 65289 (the ID is important)
2- Add lights AND remote to this "magic" group 65289
3- Go to remote and bind the light including feature/cluster 'Scenes' (my binds are
LevelCtrl, OnOff, PowerCfg, Scenes)
4- Add the scenes to the bulb/group via MQTT json in your Home Assistant by clicking on MQTT>Configure with those options:

Topic:
zigbee2mqtt/ikea_lights/set
Payload:
(add each line one by one before you publish for safety)

{"scene_add":{"ID":1,"name":"Cold temp","transition":1,"color_temp":250}}
{"scene_add":{"ID":2,"name":"Neutral temp","transition":1,"color_temp":370}}
{"scene_add":{"ID":3,"name":"Warm temp","transition":1,"color_temp":454}}

Then you should be able to switch through the scenes via the 'left/right click' on the remote !!!

@JohnBull-1975
Copy link

For the STYRBAR on 1.0.024, genPollCtrl and PowerCfg is bound to coordinator, but for the one on 2.4.11 it's only bound to genPollCtrl....and I can't get it to bind to PowerCfg
When it's possible to bind both functions for up down to go directly via coordinator, but Zigbee2MQTT does not react at all for those buttons....is there something incompatible with this new firmware...?
I don't think I will wait for to long...think I'll try to take the stuff to IKEA and see if they exchange it. It's just half a year old They use to have a very customer friendly approach...

Have you tried to upgrade to 2.4.5 then to 2.4.11 though ? I was in the same boat, then I went thru the update process described above (for 2.4.5) then updated thru regular OTA.

Since then, only the 2 arrows were not working same as you, for which I described the fix above (right and left arrow are color temperature controls):

If you are having issues with the color temperature controls on this remote, do the following:
This answer should be added to Styrbar remotes in zigbee2mqtt documentation as well imo, as it just worked for me FINALLY !!!
1- Create a group called ikea_lights (or any name) with ID 65289 (the ID is important)
2- Add lights AND remote to this "magic" group 65289
3- Go to remote and bind the light including feature/cluster 'Scenes' (my binds are
LevelCtrl, OnOff, PowerCfg, Scenes)
4- Add the scenes to the bulb/group via MQTT json in your Home Assistant by clicking on MQTT>Configure with those options:
Topic:
zigbee2mqtt/ikea_lights/set
Payload:
(add each line one by one before you publish for safety)
{"scene_add":{"ID":1,"name":"Cold temp","transition":1,"color_temp":250}}
{"scene_add":{"ID":2,"name":"Neutral temp","transition":1,"color_temp":370}}
{"scene_add":{"ID":3,"name":"Warm temp","transition":1,"color_temp":454}}
Then you should be able to switch through the scenes via the 'left/right click' on the remote !!!

I updated directly to 2.4.11, so I can't try via 2.4.5
I want left/right to be read by the Z2MQTT controller as I don't use the standard IKEA colors/functions for left/right

@macaholman
Copy link

My control doesn't report arrow_right_hold, arrow_right_release, arrow_left_hold, arrow_left_release anymore. But that was happening even before the firmware upgrade (but after upgrading zigbee2mqtt in the recent days).

I have exactly the same issue with version 2.4.11 as well as 2.4.5.. updated zigbee2mqtt recently, might be an issue with zigbee2mqtt. All other buttons work as expected!

@0wnjei
Copy link

0wnjei commented May 8, 2024

I can confirm that after updating firmware to 2.4.11 both left/right long press don't work anymore. Any fixes for this (since I use both long presses for different lights toggling)?

@Hammerhand17
Copy link

I can confirm that after updating firmware to 2.4.11 both left/right long press don't work anymore. Any fixes for this (since I use both long presses for different lights toggling)?

For me, waiting a couple of days made them working again.

@bmk64
Copy link

bmk64 commented May 9, 2024

@Danteba
Copy link

Danteba commented May 10, 2024

In my case, the problem was resolved after upgrade zigbee2mqtt to the 1.37.1 version AND Home assistant to the 2024.5.2 version

@Oggy123
Copy link

Oggy123 commented May 13, 2024

for me helped to reconfigure device (the orange icon with arrows)

@dieewossmarthome
Copy link

I had the same problem, removing the noise once and retraining solved the problem.

@dlbogdan
Copy link

If you are having issues with the color temperature controls on this remote, do the following:

This answer should be added to Styrbar remotes in zigbee2mqtt documentation as well imo, as it just worked for me FINALLY !!!

1- Create a group called ikea_lights (or any name) with ID 65289 (the ID is important) 2- Add lights AND remote to this "magic" group 65289 3- Go to remote and bind the light including feature/cluster 'Scenes' (my binds are LevelCtrl, OnOff, PowerCfg, Scenes) 4- Add the scenes to the bulb/group via MQTT json in your Home Assistant by clicking on MQTT>Configure with those options:

Topic: zigbee2mqtt/ikea_lights/set Payload: (add each line one by one before you publish for safety)

{"scene_add":{"ID":1,"name":"Cold temp","transition":1,"color_temp":250}} {"scene_add":{"ID":2,"name":"Neutral temp","transition":1,"color_temp":370}} {"scene_add":{"ID":3,"name":"Warm temp","transition":1,"color_temp":454}}

Then you should be able to switch through the scenes via the 'left/right click' on the remote !!!

Any way of achieving this with ZHA?
Also, I'm stuck on 2.4.5, can't update for the life of me.

@steppel
Copy link

steppel commented May 21, 2024

I can confirm that after updating firmware to 2.4.11 both left/right long press don't work anymore. Any fixes for this (since I use both long presses for different lights toggling)?

Same problem, left and right buttons stopped working after firmware update. When you remove the battery and add it back, they start working again until it happens again. So the only way for now is reset via battery.

@devWaves
Copy link

devWaves commented May 23, 2024

I have a working fix that worked for me. I have 5 IKEA buttons. After the update 1 worked, the other 4 didn't report button presses anymore. I noticed the one that worked had different bind settings

Steps:

  1. Add IKEA Styrbar button to Z2MQTT
  2. Take the batteries out of the IKEA Styrbar Button
  3. Open the Styrbar device "Bind" tab in Z2MQTT
  4. Click all checkboxes under clusters so it looks like this ...
    image
  5. Put the batteries back in the IKEA Button
  6. Press the "Actions" Bind button
    image

you should now get a bunch of popups for each bind that was successful.

To get the battery to work again, it is possible it fixes itself, but you can also force the reporting by doing a similar process

Steps:

  1. Take the batteries out of the IKEA Styrbar Button
  2. Go to "Reporting" tab on the device in Z2MQTT and fill out for a new entry like this...
    image
  3. Put the batteries back in the IKEA Button
  4. Press the "Actions" Apply button

The endpoint should create and save. Now you should be 100% working

@yarafie
Copy link

yarafie commented May 30, 2024

So I followed all suggestions and managed to update to 2.4.5 then even update to 2.4.11.
But button (Any of them) Don't seem to work and I don;t see anything in the logs either (Turned on full debug)

I followed @devWaves instructions above also no luck, I did notice one difference though. Destination endpoint for me is 0 rather than 1.

Screenshot_20240530_132409_Chrome

@devWaves
Copy link

So I followed all suggestions and managed to update to 2.4.5 then even update to 2.4.11. But button (Any of them) Don't seem to work and I don;t see anything in the logs either (Turned on full debug)

I followed @devWaves instructions above also no luck, I did notice one difference though. Destination endpoint for me is 0 rather than 1.

Screenshot_20240530_132409_Chrome

@yarafie you can create a new binding. Use source endpoint = 1 , destination endpoint = 1, and destination = coordinator. Try creating a new one, then do the same bind process (take batteries out, fill out bind settings, put batteries back, press bind)

if that works then do an unbind on the original messed up one. or try unbind first

@yarafie
Copy link

yarafie commented May 31, 2024

I had 2 spare STYRBAR not updated yet so used those for the time being will get back to the other ones, one at 2.4.5 and the other at 2.4.11 and will post my trials here later when I get the chance.

I'm using a SLZB-06 as a coordinator and am at z2m 1.37.1

@tux-
Copy link

tux- commented Jun 8, 2024

I updated to 2.4.11, and then discovered the device is not working properly anymore (no left / right click). So, I ended up here in hope of how I can restore 1.0.024. But, can not find the answer here, and ticket is already closed. Am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests