Noob issues: Config error & Xiaomi not found

Hi,

First post. I’m trying to get my head around setting up Hassio and have already learnt quite a bit, however, I’m really struggling with getting my Xiaomi Gateway recognised. I’m getting a ‘Config Validating’ message every time on the dashboard and I have tried nearly every time I boot up. I have also tried everything that has been suggested (at least from what I have searched for) for setting up the Xiaomi Gateway. I have enabled multicasting on my router, I have tried pointing to the Mac address, the IP, rebooting, etc and still nothing shows. Here are the bits from my log - I have omitted a lot of it, as a lot of the errors are repetitions:

Update for sensor.piccadilly fails
Updating london_underground sensor took longer than the scheduled update interval 0:00:30
Updating hue light took longer than the scheduled update interval 0:00:05
20:58 helpers/entity_platform.py (WARNING)
Timer got out of sync. Resetting
20:58 core.py (ERROR)
Hass.io config check API error
20:58 components/hassio/__init__.py (ERROR)
Timeout on /homeassistant/check request
20:58 components/hassio/handler.py (ERROR)
Timer got out of sync. Resetting
Unable to reach bridge 192.168.0.2
20:58 components/light/hue.py (ERROR)

There is nothing here that stands out as an issue in regards to the gateway but could possibly be a network issue?

This is my config:

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: #########
  longitude: #########
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 14
  # metric for Metric, imperial for Imperial
  unit_system: imperial
  time_zone: Europe/London
  # Customization file
  customize: !include customize.yaml

# Show links to resources in log and frontend
introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  # Secrets are defined in the file secrets.yaml
  api_password: #########
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  # base_url: 

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Enables a map showing the location of tracked devices
map:

# Track the sun
sun:

# Weather, Underground
sensor:
  - platform: yr
  
  - platform: london_underground
    line:
      - Bakerloo
      - Central
      - Circle
      - District
      - DLR
      - Hammersmith & City
      - Jubilee
      - London Overground
      - Metropolitan
      - Northern
      - Piccadilly
      - TfL Rail
      - Victoria
      - Waterloo & City

# Text to speech
tts:
  - platform: google

# Cloud
cloud:

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

# Aqara
xiaomi_aqara:
  discovery_retry: 10
  gateways:
      - host: #########
        mac: #########
        key: #########

It feels like I’m being really dumb and I’m hoping it’s a simple issue, but can someone take pity on a noob and offer some recommendations.

I can tell you the gateway has the latest firmware installed, the key does not change and is correct, I’m running a Pi1 model B (wired to the router) and I have the latest version of Hassio installed.

Thanks!

Please read the blue banner at the top of this page then edit your post accordingly.

Apologies, updated.

Your indenting is way too far right.

# Aqara
xiaomi_aqara:
  discovery_retry: 10
  gateways:
    - host: #########
      mac: #########
      key: #########

Thanks David, I’ll try and tidy up with YAML Lint when I get back from work and see if this makes a difference.