HomeBridge error 502: Bad Gateway

I’ve had this addon working in the past, after wiping my Hassio had to re-setup but now have the issue that despite successfully adding the home-assistant bridge in the iOS Home app, however none of my HA devices are showing up. I see in the homebridge logs:

[2018-2-5 07:27:58] Loaded plugin: homebridge-homeassistant
[2018-2-5 07:27:58] Registering platform 'homebridge-homeassistant.HomeAssistant'
[2018-2-5 07:27:58] ---
[2018-2-5 07:27:58] Loaded config.json with 0 accessories and 1 platforms.
[2018-2-5 07:27:58] ---
[2018-2-5 07:27:58] Loading 1 platforms...
[2018-2-5 07:27:58] [HomeAssistant] Initializing HomeAssistant platform...
[2018-2-5 07:27:58] [HomeAssistant] Fetching HomeAssistant devices.
[2018-2-5 07:27:58] Loading 0 accessories...
undefined:1
502: Bad Gateway

And my Homebridge config.json:

{
  "bridge": {
    "name": "Home Assistant",
    "username": "02:23:45:67:89:AB",
    "port": 51826,
    "pin": "645-57-122"
  },
  "description": "Homebridge for Home Assistant",
  "accessories": [],
  "platforms": [
    {
      "platform": "HomeAssistant",
      "name": "HomeAssistant",
      "host": "http://hassio/homeassistant",
      "password": "",
      "default_visibility": "hidden",
      "supported_types": [
        "automation",
        "binary_sensor",
        "climate",
        "cover",
        "device_tracker",
        "fan",
        "group",
        "input_boolean",
        "light",
        "lock",
        "media_player",
        "remote",
        "scene",
        "script",
        "sensor",
        "switch",
        "vacuum"
      ],
      "logging": true,
      "verify_ssl": true
    }
  ]
}

Any advice?
Cheers

config.json

  1. “default_visibility”: “hidden”, <= change to visible
  2. “host”: “http://hassio/homeassistant”, <= with HA port
    After restart homebridge if still cannot see any accessories in homekit.

config.json
1.“username”: “02:23:45:67:89:AB”, <== change to something else
by changing the username that mean you have add new house in homekit so remove old house in homekit as well before adding new house in.

Thanks @Sunonline I had used the username on an earlier install, so changing the username by 1 character fixed the issue.
Cheers