Home Assistant goes very slow and times out

Hello,

I’ve been using HA for a few weeks now, which is great once I got my head around a few things. But it is unbelievably slow. It takes forever for my laptop to connect, my mobile app and constantly times out. It is that bad that it is becoming unusable, it even took me 10 minutes to get the app to work.

Maybe I’m doing something wrong, as I’m terrible with code, so I tend to go the long way around before I realise my error.

I’m using a Pi4 4gb
32gb sd card (new for HA, which has been running for circa 6 weeks)
It is currently configured for wifi, which I keep meaning to swap to a wired connection but my internet is pretty consistent across the board, so I wouldn’t expect it to be this slow, regardless.

Any direction to which to look for a solution?

Check the logs for errors.

I just seem to get time out errors messages

2020-05-16 22:19:27 WARNING (MainThread) [homeassistant.components.mqtt] Data in your configuration entry is going to override your configuration.yaml: {'broker': 'core-mosquitto', 'discovery': True, 'password': 'eRae1xaeR0fahSahwooSeeVee3OuPaezahdiezu2eiw8eiNgahBuhooth9iem6Th', 'port': 1883, 'protocol': '3.1.1', 'username': 'homeassistant'}
2020-05-16 22:19:37 WARNING (MainThread) [homeassistant.setup] Setup of coronavirus is taking over 10 seconds.
2020-05-16 22:19:37 ERROR (MainThread) [homeassistant.components.coronavirus] Timeout fetching coronavirus data
2020-05-16 22:19:37 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 288, in async_add_entities
    for entity in new_entities
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 285, in <listcomp>
    self._async_add_entity(  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/coronavirus/sensor.py", line 22, in <genexpr>
    for info_type in SENSORS
  File "/usr/src/homeassistant/homeassistant/components/coronavirus/sensor.py", line 37, in __init__
    self.name = f"{coordinator.data[country].country} Coronavirus {info_type}"
TypeError: 'NoneType' object is not subscriptable
2020-05-16 22:30:36 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry outdoor_light for light
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 682, in _async_remove_listener
    self._listeners[event_type].remove(listener)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 576, in __eq__
    if self.unique_id is None or other.unique_id is None: