Xiaomi Gateway setup HA 0.112

Hi Guys,

Ive opened 2 new issues on Github, summarizing the problems
Xiaomi Gateway (Aqara) integration fails to discover Gateway
Xiaomi Miio integration fails to discover sensors

Chime in to the comments if you like to add more info.

Thanks

1 Like

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

hi
i already tryed it still getting the zeroconf error msg.

1 Like

Hi all,

I just tried the suggestion regarding deleting entries from the config file, the gateway did auto discovered by the Xiaomi Aqara integration, but the issue remains.

See more here:

UPDATE:

I made it work following a suggestion of a fellow user:

"If you manually insert these settings into core.config_entries, the gateway works

            {
                "connection_class": "local_push",
                "data": {
                    "host": "192.168.1.22",
                    "interface": "any",
                    "key": "b22jb533kg1vgqx2",
                    "mac": "78:7c:2e:c3:cc:82",
                    "port": 9898,
                    "protocol": "1.1.2",
                    "sid": "787c2ec3cc82"
                },
                "domain": "xiaomi_aqara",
                "entry_id": "9d1bbfcef9dd4c47ab58b000fd55e711",
                "options": {},
                "source": "zeroconf",
                "system_options": {
                    "disable_new_entities": false
                },
                "title": "Xiaomi Aqara Gateway",
                "unique_id": "78:7c:2e:c3:cc:82",
                "version": 1
            }

Change the following:

  1. 78:7c:2e:c3:cc:82 - MAC address in lower case
  2. 787c2ec3cc82 - MAC address in lower case without ā€œ:ā€.
  3. b22jb533kg1vgqx2 - gateway password from MiHome application
    (About -> Wireless communication protocol - > Password)
  4. 192.168.1.22 - IP address of the gateway
  5. 9d1bbfcef9dd4c47ab58b000fd55e711 - I think itā€™s just a random GUID for Home Assistant to link the gateway configuration and its devices.
    During the test, left one value for both gateways.
    If you use two gateways at once, the values should be different."

It DID recognise the gateway but none of my devices/sensors attached to it.
image

See more here:

1 Like

hi
i do the changes you sent and it start to work !!!
i hope it will be stable.
thanks

1 Like

@guyy
Happy to hear that!

Did it also connect your devices/sensors?

hi,
yes it is but after 3 hours they become disconnected.
only the temp sensor which discovered under the xiaomi gateway ( not aqara) continue to work.

@guyy

Can you join in the conversation here an comment your issue?:

Dont forget to mention which sensors you have.

I have the same issueā€¦ did you figure out how to fix it?
Thanks!

@pitoganzado

Please visit the official thread of the issue that I have opened here:

There you can find possible solutions and help from the creators of the integration.

Leave a comment with your issue and youā€™ll get help form the experts.

1 Like

hi any update about it ?
i am giving up the xiaomi devices and HA

Same thing here((( too bad.

Hi guys,

No word yet from the devs that are working on the integration.

In any case I advise you to go here: https://github.com/home-assistant/core/issues/38582
That is the official thread for the issues we encounter and is monitored by the devs that have designed the integration.

Post your issue, question or problem so that they understand that Iā€™m not alone in this.
Currently only @guyy posted his issue on the thread.

Thanks

If you want to ditch the gateway, go for another zigbee solution.

I highly suggest you get a CC2531 Zigbee controller and flash it. Youā€™ll learn a lot. I still have my Xiaomi gateway installed just for the alarm feature but I switched to my own zigbee gateway to control all zigbee devices (not only xiaomi ones).

1 Like

Yes, but I actually reccommend the newer TI devices. Better range, more devices possible.

Like this https://www.tindie.com/products/slaesh/cc2652-zigbee-coordinator-or-openthread-router/?pt=ac_prod_search and there is another one called zig zig ahh or something.

Hi
Do i need to do any modification after buying it ? Or only connect it to the pi which is the ha ?

Are you asking me?

Yes i am asking you