core: Suddenly, HA cannot discover xiaomi gateway and xiaomi sensors are unavailable now
The problem
I’m using HA more than one year. I have one xiaomi gateway and some xiaomi sensors. I have automations related with them. Everything was working properly. Recently, HA started not to discover gateway. Sensors seem as unavailable now. Maybe, it has started after a HA update. I didn’t notice. I have reset gateway several times. I disabled LAN from gateway and re-enabled. I have changed the key from gateway and I record the new key in configuration file of HA. I disabled firewall from router. I tried to make MAC as blank in configuration file. I restarted HA after each changes. (I read from HA docs) Nothing worked All other switches and automations are still working properly. Only problem is xiaomi gateway and related sensors etc.
Environment
Here below, screenshot

- Home Assistant Core release with the issue:
- Last working Home Assistant Core release (if known):
- Operating environment (Home Assistant/Supervised/Docker/venv):
- Integration causing this issue:
- Link to integration documentation on our website:
Problem-relevant configuration.yaml
I have tried by making MAC is blank. I have tried with IP address and without IP address. I have tried several options in configuration file. Herebelow, config file.

Traceback/Error logs
Here below, The notification what I see. Also log file


Additional information
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 36
I found a solution, within the information of the HA version change. That says so:
**YAML configuration of the Xiaomi Aqara integration has been deprecated, please remove the xiaomi_aqara platform from your configuration.yaml file.
Xiaomi Aqara Gateways are discovered automatically and show up under “Configuration”-> “Integrations”, from there click on configure and go through the steps. If your Xiaomi Aqara Gateway does not show up automatically, go to “Configuration”-> “Integrations”-> press the “+” icon -> search for “xiaomi_aqara” and enter the setup. If no key is provided during setup, only the binary_sensor and sensor platforms will be available. A key is required to activate the other platforms.**
I did that, and everything was solved. Thank you