My Trådfri integration stops working like once or twice every week. This started approx 1 month ago.
When this happen I can still use the IKEA Trådfri app so I guess its not a gateway issue(!?). If I reload the Trådfri integration everything works fine again.
The following gets logged when the problem occur, got around 100 identical rows in 1sec!.
2020-10-23 16:32:13 ERROR (MainThread) [homeassistant.components.tradfri.base_class] Unable to execute command <Command put [‘15001’, 65567]: {‘3311’: [{‘5850’: 1}]}>: (‘There was an error with the request.’, CredentialsMissingError(‘No suitable credentials for coaps://192.168.1.231:5684/15001/65567’))
Any ideas? Can I automate a reload of the integration?
I’m also experiencing instability on the tradfri integration.
And according to the github issue tracker, it is not the only issue:
I don’t think it’s the same issue as you have (logs are different).
I’m now waiting for the issue to reoccur on my setup and see if I have the same problem as you @kim1138
Interestingly, around the time that bug was filed, the pytradfri library got a huge version bump (to 7.0.0).
This version includes a whole asyncio rewrite, so that might have introduced this regression.
I had some instability issues a couple of months ago with the Tradfri so I moved away from it completely. I now have a ZigBee USB stick (and Zwave stick) running on a pi3 and my main HA running on a Proxmox VM and it works very well. I used Zigbee2MQTT and picking up all my Ikea lights was a breeze.
I had the problem again.
Unfortunately, there was no relevant info in the log @kim1138, could you open a bug report on https://github.com/home-assistant/core/issues/ ?
As such the hass developers can already take a look at the problem.
EDIT:
I’ve file a bug report for this as I did get some logging this time: