use Pi, Raspbian, xiaomi gateway(gateway.v3) worked well on HA.
Recently I bought aqara air conditioning controller(advanced) . it can be used as a gateway. I can perfectly reach it through the MiHome app.
xiaomi_aqara:
gateways:
mac: 640980xxxxxx
key: 8D6E7Fxxxxxxxxxx
but I got error, it is an unknown gateway.
2018-04-13 09:41:41 ERROR (Thread-22) [xiaomi_gateway] Unknown gateway ip 192.168.xx.xxx
I searched on the forum. some friends suggested to use “custom_components”, I tried, but still error.
I am not sure if it is caused by version of LAN communication protocol. because aqara air conditioning controller(advanced) only support LAN communication protocol v2.0.
and upgrade milo
sudo su -s /bin/bash homeassistant
source /srv/homeassistant/homeassistant_venv/bin/activate
pip3 install --upgrade python-miio
then find these files( fan/xiaomi_miio.py,light/xiaomi_miio.py,switch/xiaomi_miio.py,vacuum/xiaomi_miio.py ) under /srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components
modify “python-miio==x.x.x” to “python-miio==0.3.3”