Hey there,
I´ve tried a lot, to fix this. Now I got duplicate devices, but the issue still exists. But lets start at the beginning
I´m using PyXiaomiGateway because $$ and it seems to work very nice for sensors and buttons. Thanks to the developers and testers! Recently I´ve tried, to use the Gateway light and the ringtone integration and smart wallplug.
Unfortunatelly I cant use the devices - every issued service call leads to
[PyXiaomiGateway] Got error element in data {"error":"Invalid key"}
In order to fix the thing, I followed the troubleshooting guide, wich is part of the official component documentation.
That for I´ve:
- Factory reset the Gateway
- Disabled & Reenabled local access
- Regenerated the Access Key several times
What I got now, is still the same error message (the key is correctly formed and consists of the 16 characters, that it should
The versions are all current -
[homeassistant] % pip show homeassistant
Name: homeassistant
Version: 0.54.0
Summary: Open-source home automation platform running on Python 3.
Home-page: https://home-assistant.io/
Author: The Home Assistant Authors
Author-email: [email protected]
License: Apache License 2.0
Location: /usr/local/homeassistant/lib/python3.5/site-packages
Requires: chardet, jinja2, pyyaml, typing, aiohttp, pip, pytz, astral, voluptuous, requests, async-timeout
[homeassistant] % pip show PyXiaomiGateway
Name: PyXiaomiGateway
Version: 0.5.1
Summary: a library to communicate with the Xiaomi Gateway
Home-page: https://github.com/Danielhiversen/PyXiaomiGateway/
Author: Daniel Hoyer Iversen
Author-email: UNKNOWN
License: UNKNOWN
Location: /usr/local/homeassistant/lib/python3.5/site-packages
Requires: pyCrypto
[homeassistant] % pip show pyCrypto
Name: pycrypto
Version: 2.6.1
Summary: Cryptographic modules for Python.
Home-page: http://www.pycrypto.org/
Author: Dwayne C. Litzenberger
Author-email: [email protected]
License: UNKNOWN
Location: /usr/local/homeassistant/lib/python3.5/site-packages
Requires:
The Config is
xiaomi:
gateways:
- mac: xxxxxxxxxxxx
key: xxxxxxxxxxxxxxxx
Anyone has an idea, on how to fix this? Second thing, can somebody help me, cleaing out the duplicates - I´ve all devices twice (with a “_2”) since the last gateway reset.
Thanks in advance and greetings
Jakob