Xiaomi Gateway setup HA 0.112

I had this issue when I dismissed the auto discovered devices and try to re-set it up again. It shows “aborted - gateway already configured” and nothing shows up in devices/integrations.

Fortunately I managed to solve the issue. Here’s the instructions and hopefully it can save you some time:

  1. go to a directory named “.storage” under the home assistant config directory
  2. edit “core.config_entries” file
  3. locate two entries that look like [1] and delete them from the list. Please ensure the structure of file to be valid json format while tampering it.
  4. restart home assistant
  5. the device should be re-discovered and can be added normally again.

[1]:

            {
                "connection_class": "local_poll",
                "data": {
                    "host": "<masked>"
                },
                "domain": "xiaomi_miio",
                "entry_id": "<masked>",
                "options": {},
                "source": "ignore",
                "system_options": {
                    "disable_new_entities": false
                },
                "title": "Ignored",
                "unique_id": "<masked>",
                "version": 1
            },
            {
                "connection_class": "local_push",
                "data": {
                    "host": "192.168.1.187"
                },
                "domain": "xiaomi_aqara",
                "entry_id": "<masked>",
                "options": {},
                "source": "ignore",
                "system_options": {
                    "disable_new_entities": false
                },
                "title": "Ignored",
                "unique_id": "<masked>",
                "version": 1
            }
2 Likes