Which integrations are slowing down Home Assistant?

A screenshot of the Home Assistant integration startup times panel

I’m a little over 18 months into my Home Assistant journey, and now have 54 integrations set up. This includes standard integrations set up in the Home Assistant interface, some added using YAML, and custom integrations added via HACS.

When I first set Home Assistant, I went out of my way to set up as many integrations as possible, regardless of whether I needed them. Home Assistant scales quite well, but some integrations take longer to load than others. If you’ve ever logged in whilst Home Assistant is restarting to see a dashboard with many missing entities, you’ll know what I mean.

There’s a panel hidden away in Home Assistant’s Lovelace interface that tells you how long each integration takes to load. Open Settings, scroll down to System, and select Repairs. Then, click on the three vertical dots at the top right, and choose ‘Integration Startup Times’.

The list will be sorted with those taking the longest at the top. The vast majority of mine take less than a second to load, but there are some outliers. My worst offenders are:

  • Google Nest (24 seconds). Taking three seconds longer than a famous So Solid Crew song, this is the integration for my Nest Thermostat. I use this quite a bit in Home Assistant, so I’m stuck with it.
  • Wyoming Protocol (21.5 seconds). This is the bridge between Home Assistant’s Assist chat bot, and Homeway Sage. To be honest, I don’t use this, so this is an easy one to turn off. It’s an auto-discovered integration.
  • Meross LAN (21 seconds). This is a custom integration from HACS for my Meross smart plugs, and I need this for energy monitoring. Whilst the smart plugs also support Matter, the energy monitoring is only available via this integration. Theoretically, I can convince the smart plugs to use MQTT and that might negate the need for this integration, but I haven’t fully investigated it.
  • DLNA Digital Media Server (17 seconds). Another auto-discovered integration, courtesy of my router. I’m not using this, so this is another good candidate to disable.
  • Spotify (15 seconds). This allows me to control Spotify playback in Home Assistant. In reality, I don’t really use it, but it is on my dashboard.
  • Home Connect (14 seconds). This is for my smart Bosch dishwasher. I use this for a dashboard badge to see if the dishwasher is on at a glance. Our dishwasher is built-in and almost silent so this is useful.
  • Fitbit (14 seconds). Another dashboard badge to see how much charge is left in my Fitbit Versa 3.

Of these, there were two obvious candidates to remove – Wyoming and DLNA, saving a combined 30 seconds of startup time.

Ignored integrations

As they’re both integrations which are auto-discovered, I have had to tell Home Assistant to ignore them. On the Integrations Settings page, if you click the filter icon on the top right, you can then show the integrations that are ignored. I’ve added Wyoming Protocol there; it joins Philips Hue (since I’m using Bifrost) and ZHA (since I’m using Zigbee2MQTT)

Integration

With Home Assistant, I think it’s fair to say that some of its integrations are easier to set up than others.

Some services offer a nice public API, and an easy way for users to get hold of an API key. Then, it’s just a case of popping this API key into Home Assistant, and off you go.

Some services are not so easy. They may offer an API, but require you to jump through hoops to sign up as a developer and create an application before you can get what you need. Or they may not offer an API, and the only way to integrate it with Home Assistant is to scrape web pages. Meanwhile, the integration developers have to constantly amend their integration to carry on working.

Now, this isn’t a blog post about Home Assistant – it’s using Home Assistant as a metaphor for immigration, and it’s inspired by this Guardian Comment piece from last week. We seem to want people who come to the UK to integrate with British culture, but integration works best when both sides work together.

In the late 1990s, there was a pioneering British sketch comedy TV show called Goodness Gracious Me, which was the first to feature an all British Asian cast. One of the recurring sketches was The Coopers, an Asian family that tries a little too hard to be British. I think it’s relevant to this, because, as someone who is white and indigenous to Britain, I have a duty to those who want to integrate with British society to feel welcome. We can’t tell people to integrate harder when we’re unwilling to do the same. Just because we happened to be lucky to be born into a country where lots of people want to live.

Britain is a better country because of immigration. I appreciate living in a multi-cultural society, where I can experience different perspectives on the world. Where there’s a range of different food shops and restaurants from the various diasporas who have settled here. Where the jobs that British natives don’t want to do get done, especially in health and social care. Where Christmas is celebrated alongside Eid, Diwali and Passover. When we all work together so that we can live together in peace, the world is a better place.