-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected response for get_device_list on Xiaomi Miio gateway #51294
Comments
Hey there @rytilahti, @syssi, @starkillerOG, mind taking a look at this issue as its been labeled with an integration ( |
@frabar55 what kind of gateway are u using (see https://www.home-assistant.io/integrations/xiaomi_miio/#supported-xiaomi-gateway-models)? In any case, it seems like the response you get from the gateway is not a dictionary but some string, it might just be a case of using json.loads(). Could you run the following python script and post the output?
|
I'm using the ZNDMWG03LM. I'l send you the output of the script soon |
I apologize, but Iìm not able to riun the script yoiu suggested. The following is the error I received just at th first row Traceback (most recent call last): |
@frabar55 that error just means python-miio is not installed in the location you are running the python script. |
that is the output of the script: Traceback (most recent call last): |
I'm sorry, this is the real result: {'code': 0, 'id': 1, 'exe_time': 110} |
That is pretty weird, are you on the latest firmware version of the gateway? (you can update in the Mii home app) |
@rytilahti do you know why the |
|
Hi everybody, passing to the new HA rel (2021.6.00), the error has changed: Logger: homeassistant.components.xiaomi_miio.gateway DeviceException during setup of xiaomi gateway with host 192.168.178.49 |
Sorry, reset! Logger: homeassistant.config_entries Error setting up entry Xiaomi Gateway for xiaomi_miio |
Unfortunately no, my guess would be that the device/firmware doesn't support the command (or that there are no devices bound to it?). python-miio should check if the response is in expected format and raise an exception when not (like in this case). |
@frabar55 Thas is a good question: Are there any subdevices connected to this gateway and if so: how many? |
There are three BLE devices (miaomiaoce.sensor_ht.t2) and none Zigbee because the gateway are not able to pair any (i have either Lumi and Aqarq devices but conneccted to Zigbee2mqtt) |
@frabar55 alright, that explains it. I will make a PR in python-miio that will catch this case and not return an error if there are no zigbee devices connected. I don't know how BLE devices work and how they are connected (and if) to the gateway. |
This PR schould fix your issue: rytilahti/python-miio#1065 |
Thanks to everybody. Please tell me haw I can check on my own. |
The problem
error in integrating lumi.gateway3 in home assistant
What is version of Home Assistant Core has the issue?
2021.5.05
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
Xiaomi Miio
Link to integration documentation on our website
No response
Example YAML snippet
when i try to integrate the lumi.gateway3 I always receive the error (see below)
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: