core: Home assistant 2023.1.2 Xiaomi gateway 3 fails to load

The problem

Home assistant 2023.1.2 Xiaomi gateway 3 fails to load Error: Logger: homeassistant.setup Source: setup.py:210 First occurred: 05:56:45 (1 occurrences) Last logged: 05:56:45

Setup failed for custom integration xiaomi_gateway3: Unable to import component: cannot import name ‘Command’ from ‘zigpy.zcl.foundation’ (/usr/local/lib/python3.10/site-packages/zigpy/zcl/foundation.py)

What version of Home Assistant Core has the issue?

2023.1.2

What was the last working version of Home Assistant Core?

2023.1.1

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Xiaomi Gateway 3

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.setup
Source: setup.py:210
First occurred: 05:56:45 (1 occurrences)
Last logged: 05:56:45

Setup failed for custom integration xiaomi_gateway3: Unable to import component: cannot import name 'Command' from 'zigpy.zcl.foundation' (/usr/local/lib/python3.10/site-packages/zigpy/zcl/foundation.py)

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 4
  • Comments: 22

Most upvoted comments

@ErnestoBrandao looks like issue still existing in: Home Assistant 2023.1.2 Supervisor 2022.12.1 Operating System 9.4 Xiaomi Gateway 3 v2.1.2 last HACS update did not solve it error:

Logger: homeassistant.setup
Source: setup.py:210
First occurred: 5:18:00 PM (1 occurrences)
Last logged: 5:18:00 PM

Setup failed for custom integration xiaomi_gateway3: Unable to import component: cannot import name 'Command' from 'zigpy.zcl.foundation' (/usr/local/lib/python3.10/site-packages/zigpy/zcl/foundation.py)

You have to toggle the Beta switch and switch to the Beta update. That one solves the problem. At least it worked for me.

How do you turn on this beta feature? I’m looking on Hacs or the integration and don’t find it it

@itsmartinho

1 Go to HACS 2 search for the gateway integration and select it 3 In the upper right corner click on the 3 dots 4 Choose redownload 5 Toggle the “Show beta versions” switch 6 Select the v3.0-alpha.1 version and click on download 7 Restart Home Assistant 8 Fingers crossed

Hope this helps you out.

@ErnestoBrandao looks like issue still existing in: Home Assistant 2023.1.2 Supervisor 2022.12.1 Operating System 9.4 Xiaomi Gateway 3 v2.1.2

last HACS update did not solve it

error:

Logger: homeassistant.setup
Source: setup.py:210
First occurred: 5:18:00 PM (1 occurrences)
Last logged: 5:18:00 PM

Setup failed for custom integration xiaomi_gateway3: Unable to import component: cannot import name 'Command' from 'zigpy.zcl.foundation' (/usr/local/lib/python3.10/site-packages/zigpy/zcl/foundation.py)

You have to toggle the Beta switch and switch to the Beta update. That one solves the problem. At least it worked for me.

i had to roll back as the alphe did not work propperly, i’ll keep hoping for a new stable release. BLE worked after the upgrade, but all other sensors (Zigbee) stopped reporting values … all connected via the HuB -> Mosquitto -> Zigbee2mqtt

Same here. I noticed that my connection with all my zigbee lights were unstable the past 2 days. And I couldn’t figure out why this was happening and the misses was getting angry that Google Home wasn’t working properly anymore. First I thought it was the new HA Core update but after a rollback the problem wasn’t fixed. I even tried to switch from the diy Google Home connection to Nabu Casa but the problems persisted. The zigbee connections got stable again after I downgraded the Xiaomi Gateway 3 integration. So there’s a conflict somewhere in this fix that causes unstable zigbee connections even when I don’t use the gateway as my main zigbee router.

@ErnestoBrandao looks like issue still existing in: Home Assistant 2023.1.2 Supervisor 2022.12.1 Operating System 9.4 Xiaomi Gateway 3 v2.1.2 last HACS update did not solve it error:

Logger: homeassistant.setup
Source: setup.py:210
First occurred: 5:18:00 PM (1 occurrences)
Last logged: 5:18:00 PM

Setup failed for custom integration xiaomi_gateway3: Unable to import component: cannot import name 'Command' from 'zigpy.zcl.foundation' (/usr/local/lib/python3.10/site-packages/zigpy/zcl/foundation.py)

You have to toggle the Beta switch and switch to the Beta update. That one solves the problem. At least it worked for me.

How do you turn on this beta feature? I’m looking on Hacs or the integration and don’t find it it

@itsmartinho

1 Go to HACS 2 search for the gateway integration and select it 3 In the upper right corner click on the 3 dots 4 Choose redownload 5 Toggle the “Show beta versions” switch 6 Select the v3.0-alpha.1 version and click on download 7 Restart Home Assistant 8 Fingers crossed

Hope this helps you out.

This method work for me. Thank you!!!

V3.0-alpha.1