-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Stability issue with IKEA Tradfri #1027
Comments
Running the latest egde add on i get a few of these errors as well: |
I have the exact same problems since some days when I added more Ikea switches to my network. I have 10 lights and 6 switches now and these errors happen several times a day. I get the errors with the lights and switches, randomly. Also on a led driver. Running older firmware 20181024 but same version of home assistant and zigbee2mqtt. |
Error Errors like
|
@BadEendt network map looks indeed good. Can you try removing the TRADFRI control outlet from the network and check if the issue persists? |
I have tried that already. had it set up via bridge and removed it completely but i still had issues. but i dont know how the routing was set up back then so i could try it again if that is what you mean? |
Is you tradfri bridge still running? |
Nope, i removed all devices and unplugged it. |
@BadEendt how often do these errors happen? always or just randomly sometimes? |
Last few day's it was almost every time i tried switching multiple lights. Strange enough everything stop working altogether yesterday. Since i got it back working to day i haven't got any errors, running the edge add-on. Only thing that i changed is one bulb isn't setup yet and removed the dimmer battery. I will try to add then back into the mix and check if i can trigger any errors |
@BadEendt the latest |
Well that seems to do the trick. I will test it for a couple of days if it keeps working correctly i will close the topic then |
And i got a other error.... This time it happened by real fast switching on and off, sensor was triggered at the same time as i manually turn the lights off |
How many commands in what timespan? Can you post the complete log? |
I think about 11 in a second or two, so it might not be a to realist scenario. But here is the log file, it happend at 17:32: |
Hi again, as I said I'm having the same problem and is testing at home right now. Bought an USB extension cable now and keeping the USB thingie 1m from the raspberry pie. What I have experienced is also when sending many commands at once. I have scenarios for all lights on and off. I have Ikea bulbs, outlets and led driver, a total of 22 devices that I turn on and off at once. One error is that I get a lot of 205, 183 and 16 errors when bursting command. When trying after a few seconds with the failed ones, it works fine. Another error is that the devices goes completely "offline" at the burst of commands. The requests times out and it stays like that ( Sending logs for the first problem (log1.log) and the second (log2.log). I have a theory I will test: I'm always sending brightness and color temp, to all devices. Some of them complain that they cannot handle it, of course. Maybe that puts them in a state of error? |
Another thing my network graph look like a big wheel, where everything is connected to everything. The coordinator has at least 18 devices with arrows to it. Maybe it is a problem with the limit of 15, but since almost all my devices are routers, I would think it would just connect to them instead if coordinator gets full, even if it can reach it. (couln't get it more high res, but I zoomed in on coordinator) |
sounds like we have the exact same problem. Are you running the latest edge version? |
No I'm running the stable version because of "stable"... ;) |
If you want to control a lot of bulbs at the same time, I would recommend using groups: https://koenkk.github.io/zigbee2mqtt/information/groups.html. It is know that turning of so many bulbs at the same time is unreliable. If groups is not a solution, you could try increasing this delay: https://github.com/Koenkk/zigbee2mqtt/blob/dev/lib/zigbee.js#L30 to e.g. |
i also recommend using groups. I have 11 GU10 tradfri and 4 bulbs split in 4 groups. I paired the devices with the old firmware with no group support. I tried to switch a group in HA (so not a group in zigbee2mqtt) with 8 spots. Zigbee Network crashed/stopped instant with recovering after a while. I had a bad feeling about this as i built a new kitchen with 4 fysical switches out of sight (hidden in a cupboard) and placed 4 zigbee switches. I was horrified to replace the fysical switches back on a more normal location. But the group support changed everything, always working perfectly for about more as a week stable. Also made sure: long usb cable on CC2531. And added more HUE bulbs to create a better path. |
Yes groups seems like a good solution. Was going there anyway just to make the lights go on and off simultaneously. But I have to reflash the stick and repair everything... :( Will try with the delay as well! Thanks for all help, and development of this! You are really doing a great job! |
repair is not needed. Flash the new firmware with "retain address" take your stick and PC/NUC/Pi to the attic, wrap the stick in allumium foil and boot up and make sure zigbee2mqtt starts running. This prevents that the new flashed stick get's a different address. (maybe a network cable) so you can check the logging of zigbee2mqtt. If in the logs you see the new firmware date (2019xxxxx) you can shutdown PC/Nuc/Pi. Place back in normal positon and unwrap foil and boot up. Now all devices will reconnect without repair. Same can also be done removing buls/routers from power (and maybe remove battery from sensors, not sure on that), both up with new firmware and after a few minutes give back power to your bulbs/routers/sensors. |
Oh that's new! So if I understand correctly:
Is the crucial step that it is started up with new firmware without being able to see other Zigbee devices/networks? And by "Flash the new firmware with retain address", you just mean the process, there is no flag when flashing? |
Your first step should be the shielding of the stick I think. After that you can flash the stick, pull it out, remove shielding, bring it back to it's original place and you are done.
Yes. Since I only have 1 battery powered device I can just switch off the fuse + remove the battery, so all devices are offline. Flash the stick with a notebook and achieve the same result (as suggested above)
There is no extra flag. You just have to use the same panID, channel and so on in Zigbee2mqtt But you should definitely try to increase the delay as mentioned above. This worked for me with fewer devices than you have (that's because it's set 170 currently). And if we can find a good value for the delay everyone could profit. |
Good! I will try first with the delay just to see if it improves, then do the flashing. Will come back with report! |
I'm running zigbee2mqtt as an addon in hassio, so I don't really know where to find the zigbee.js file... |
I don't know how exactly the hassio addons work but they seem to be simple docker containers. So you probably could
to find out the container name (probably something with "zigbee2mqtt") then
|
I cannot access this from within Hassio... At least I think. I have no idea in what container I end up in when I SSH in.. Is it the underlaying OS or a Docker container? Feels like the Inception movie.. :D Will flash the stick tomorrow! |
A bit of an update:
Current status is that if I use groups to turn off/on the lights it works like a charm! But if I turn off the 10-15 bulbs one by one in a burts (from a group in HA), some lights will stop responding and a restart+replug is required. It seems that the burst of commands takes down the Zigbee network until restart. One bulb is faulty I think, it may stop responding by random. Restart of bulb fixes that. Conclusion: Groups are the solution to a large Ikea Trådfri network! Sending burst of commands may kill network requiring restart. (running stable 1.1.1) |
I am now having issues since updating the co-ordinator to firmware 20190223 from a release in January (logs deleted so can't tell which revision). Phillips Hue bulbs connect to the stick and show the correct states, but changing the brightness or toggling the switch causes the issues mentioned here:
All other devices (Xiaomi door sensors, temperature sensors and motion sensors appear to be working fine). |
@DeliriousMetro please try to re-pair the problematic device. |
Sorted. Thanks 😉 |
I've been running 20190223 with the dev branch and the following devices: 2x Tradfri Control Outlet, 3x Sengled E11-G13, 1x GE 45857GE. Pretty much no issues for almost 2 weeks. Next up, will need to test if the Tradfri Bulbs (LED1622G12) cause problems. |
Same here! Running 20190223 with the stable branch (v 1.2.1) and i have not experienced any stability issues lately. @djchen, I almost exclusively use the E27 variant of those bulbs (LED1623G12), so i think it should go without any problems. |
+1 |
Are you running the latest firmware (20190223) on your stick? and the latest zigbee2mqtt? I have a bunch of Tradfri devices (including 4x Tradfri LED1622G12 lights) and I can tell you the CC25x stick doesn't have anywhere near as much range as the Tradfri hub. You definitely have to compensate for that by adding additional routers in between. The easy choice for me was to add a couple Tradfri control outlets in between. I have 1 control outlet about 2 ft from the coordinator and another about 15 ft away. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Seems I have this same issue: In logs, I see (0xd0cf5efffe0bb71a is the device ID of the light)
and this triggers the light to go on/off. I'm running
Is there anything I can do to get this more stable? Here is an overview of my network Any help is appreciated! |
For the random turn on/off can you provide the logging when the bulb turns on/off when running with debug logging enabeld To enable debug logging set in advanced:
log_level: debug |
Here is already something weird:
is this normal behaviour? |
One for you to check - this happened to me a few months ago and I pulled out my hair trying to work out why my lights turned on every time I restarted zigbee2mqtt. It turned out i had a retained mqtt message on my mqtt server that was getting picked up by zigbee2mqtt at startup and switching on the light |
@bartplessers it seems that they are indeed retained MQTT messages (like @timstanley1985 mentions). In the log you see that these are received and applied just after zigbee2mqtt starts. |
hmmm. Is there something else I can do? log after reboot attached |
@bartplessers perhaps you do have a home assistant automation or e.g. node red setup sending this message? You need to figure out where it comes from.. |
Hi @Koenkk , I will let it run a day now. grtz & thanx for help and following up! |
Unfortunatly, (see line nr 5592-5594) No buttons pressed, no automations...
Any possibility that this causes interference? any advice appreciated! |
AHAAAAAAA,.... This device is a IKEA TRADFRI Dimmer, and YES...there was an automation here:
So I think this is what happened:
Could this be the case? Any suggestion for better automation for the dimmer? kind regards, |
Yeah those trådfri dimmers are very sensitive. If you take them out of their base and put them back nearly every time it will trigger something during that motion. I mostly use them stationary as otherwise they are simply a pain. I think it's very possible that they get triggered by minor vibrations due to your wooden floors. |
Hi everybody,
I'm trying to get zigbee2mqtt to work properly, but I'm having serious stability issues.
I'm running the zigbee2mqtt HASS.io (V1.13 and home assistant 0.86.4) add-on version 1.1.1 with a CC2531 flashed with the 2019-01-09 firmware. I got 5 Tradfri 1000lm dimmable bulbs (LED1623G12) , a Trafdri dimmer and a Tradfri outlet hooked up.
My problem is that if i try to switch multiple (like 4), zigbee2mqtt drops all connection's and stops functioning. I can fix this by restarting the add-on, re-plugging and resetting the stick, but the problem occurs multiple times a day so that is not a great fix.
I get these error's:
2019-2-5 19:41:12 - error: Zigbee publish to device '0x000b57fffe115554', genOnOff - on - {} - {"manufSpec":0,"disDefaultRsp":0} - null failed with error Error: Timed out after 30000 ms
What i tried:
I hope anyone can help me the solve this issue
Full debug code:
https://pastebin.com/Pa0rjb14
Regards,
Tijmen
The text was updated successfully, but these errors were encountered: