Mi gateway error message. I can't connect. How can I solve this problem?

2018-05-01 15:44:28 ERROR (SyncWorker_0) [xiaomi_gateway] Non matching response. Expecting get_id_list_ack, but got read_ack
2018-05-01 15:44:28 ERROR (SyncWorker_0) [xiaomi_gateway] Non matching response. Expecting read_ack, but got get_id_list_ack
2018-05-01 15:44:28 ERROR (SyncWorker_0) [xiaomi_gateway] No data in response from hub None
2018-05-01 15:44:28 ERROR (SyncWorker_0) [xiaomi_gateway] Not a valid device. Check the mac adress and update the firmware.
2018-05-01 15:44:28 ERROR (SyncWorker_0) [xiaomi_gateway] Non matching response. Expecting read_ack, but got get_id_list_ack
2018-05-01 15:44:28 ERROR (SyncWorker_0) [xiaomi_gateway] No data in response from hub None
2018-05-01 15:44:28 ERROR (SyncWorker_0) [xiaomi_gateway] Not a valid device. Check the mac adress and update the firmware.
2018-05-01 15:44:28 ERROR (SyncWorker_0) [xiaomi_gateway] Non matching response. Expecting read_ack, but got get_id_list_ack
2018-05-01 15:44:28 ERROR (SyncWorker_0) [xiaomi_gateway] No data in response from hub None
2018-05-01 15:44:28 ERROR (SyncWorker_0) [xiaomi_gateway] Not a valid device. Check the mac adress and update the firmware.
2018-05-01 15:44:34 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/src/app/homeassistant/helpers/entity_platform.py”, line 308, in _async_add_entity
msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.humidity_158d000210a77a. Platform xiaomi_aqara does not generate unique IDs
2018-05-01 15:44:34 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/src/app/homeassistant/helpers/entity_platform.py”, line 308, in _async_add_entity
msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.temperature_158d000210a77a. Platform xiaomi_aqara does not generate unique IDs

I’m sure my key / MAC / host / is correct. But only one or two sensors work! My version of homeassistant is 0.68.1.

Xiaomi firmware version: 1.4.1_154.0143.

How do I deal with this problem?

xiaomi_aqara:
discovery_retry: 10
gateways:
- mac: 286C078xxxxx
key: E4BA01DFxxxxxx
host: 10.1.1.xx

Did you find a solution meanwhile? You can see some sensors, but can you see gateway light switch? In case no, I have the same problem

Hey, are you using homeassistant or hass.io?
In case of HA, you can try this:

  • disable discovery
  • set up a custom_component called xiaomi_aqara.py copying the official one and changing this line

REQUIREMENTS = ['PyXiaomiGateway==0.9.0']

to

REQUIREMENTS = ['https://github.com/luci-11/PyXiaomiGateway/archive/'
'0.6.26-luci.zip#PyXiaomiGateway==0.6.26-luci']

It’s my personal solution for both this errors:

Not a valid device. Check the mac adress and update the firmware
and this:
homeassistant.exceptions.HomeAssistantError: Entity id already exists

Let me know if it’s helpful. For me now everything works as expected