Finally I updated from 0.49 to the latest HA (0.57.3) and everything is fine except my Xiaomi Gateway integration HA lists xiaomi-aqara under Invalid Config.
I know that I had to change the sid to mac. But when I do that I can see an error in the log file that asks for my secret xiaomi_sid (and yes I also changed it in configuration.yaml).
When I add this line to the secrets, HA at least starts and I can see another error
2017-11-15 17:33:30 ERROR (Thread-4) [homeassistant.util.package] Unable to install package PyXiaomiGateway==0.6.0: Command âpython setup.py egg_infoâ failed with error code 1 in /tmp/pip-build-fp1255t3/cryptography/
2017-11-15 17:33:30 ERROR (MainThread) [homeassistant.setup] Not initializing xiaomi_aqara because could not install dependency PyXiaomiGateway==0.6.0
2017-11-15 17:33:30 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi_aqara: Could not install all requirements.
I searched the community and found something to uninstall pycryptodome and install pycrypto - but it is already installed
Due to this issue, documentation will be enhanced with the following:
If the required library âPyXiaomiGatewayâ cannot be installed you will need to install some missing system dependencies python3-dev, libssl-dev, libffi-dev manually (eg. sudo apt-get install python3-dev libssl-dev libffi-dev).
Finally is able to do the troubleshooting and it is working again.
@Danielhiversen you are right (or the trouble shooting doc ), you should create the Gateway key with Android and not with iOS. Everything is working again, fter I used BlueStack on my Mac and created a new key.