home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.51k stars 30.71k forks source link

Xiaomi gateway does not discovered HA #25521

Closed adisbr01 closed 4 years ago

adisbr01 commented 5 years ago

Hope somebosy can help. I am newbie but tried to follow all steps required.

Home Assistant release with the issue: xiaomi gateway does not discovered HA

I get an alert: Invalid config The following components and platforms could not be set up:

xiaomi-aqara Please check your config.

This is system info: arch x86_64
dev false
docker true
hassio true
os_name Linux
python_version 3.7.4
timezone Asia/Jerusalem
version 0.96.5
virtualenv false

Last working Home Assistant release (if known): 0.96.5

Operating environment (Hass.io/Docker/Windows/etc.): VM image

Component/platform: https://www.home-assistant.io/components/xiaomi_aqara/

Description of problem:

I hope somebody have a solution. I tried all detailed steps to connect xiaomi gateway to home assistant. It worked before but not recognized by home assistant anymore. all works fine on Mi App. I tried all this steps:

Try to disable and then enable LAN access - done Hard reset the gateway: Press the button of the gateway 30 seconds and start again from scratch. - done

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

default_config:
tts:
  - platform: google_translate
xiaomi_aqara:
  discovery_retry: 10
  gateways:
    - key: 4jw55e0dXXXXXXX

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

Traceback (if applicable):

2019-07-28 07:14:10 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=5 from 2019-07-27 21:58:19.108444)
2019-07-28 07:14:20 WARNING (MainThread) [homeassistant.setup] Setup of xiaomi_aqara is taking over 10 seconds.
2019-07-28 01:01:26 ERROR (SyncWorker_4) [homeassistant.components.xiaomi_aqara] No gateway discovered
2019-07-28 01:01:26 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi_aqara: Integration failed to initialize.

Additional information:

image

sbakker82 commented 5 years ago

I have the same problem. Did somebody already take a look at this problem?

byxil commented 5 years ago

I have the same problem too. I take the key, but the gateway non work with hassio. I see in the About screen the option "Wireless communication protocol" and not "local area network communication protocol", may be this option is disabled? The version of mi home is 2.75.3, he gateway is mijia

stale[bot] commented 4 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

maymaymay commented 4 years ago

Same problem here. Strange thing is that sometimes is working, sometimes dont. Can't find reason for that.

PavloFatula commented 4 years ago

I do have the same problem: No gateway discovered error in logs did someone found the solution?