I've got an IKEA hub connected to a few Trådfri lights which I've then added to Home Assistant on a Raspberry Pi and set up a load of automations. I moved the hub and the RPi around my room and now Home Assistant can't control any of the lights, it's just reporting Failed setup, will retry. The IKEA hub can still control the lights fine.
Any idea if there's a quick fix or do I need to bite the bullet, delete the config and set everything up again from scratch?
Check what IP HA is expecting and then check the IKEA hub to see if they match. If you have DHCP turned on for your hub then when you moved it it might have gotten a new IP. Easy fix its the case, just set a static IP on the IKEA hub for what HA expects and then restart the integration.
You were correct, though I couldn't find a way to update HA with the new IP. Ended up just re-configuring the Ikea integration, weirdly it's forgotten half my bulbs.
Like others said, most likely your HA IP changed, had this happen recently in a power outage. Need to either set them to use hostname or make the HA machine have a static IP.
if memory serves me correctly, Trådfri lights run on Zigbee, no? I don't personally use Trådfri but I've got Hue bulbs on my Home Assistant and bypass the Philips Hue hub altogether by running Zigbee2MQTT on my Home Assistant with a Sonoff Zigbee dongle plugged in. that helped solve random Hue Hub disconnects from my HA altogether. I highly recommend running all things zigbee this way.
I bought the Trådfri hub before I set up HA so it was easier to just connect it rather than resetting and reconfiguring everything. I've sorted it now, but if it comes to changing everything or staying again from scratch then I will cut out the middleman and have the devices talking directly to HA.