Skip to content
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

None of the devices under the gateway can be obtained #1275

Open
zuobianfy opened this issue Jan 30, 2024 · 4 comments
Open

None of the devices under the gateway can be obtained #1275

zuobianfy opened this issue Jan 30, 2024 · 4 comments
Labels
question Further information is requested

Comments

@zuobianfy
Copy link

zuobianfy commented Jan 30, 2024

Traceback (most recent call last):
  File "/config/custom_components/xiaomi_gateway3/core/gateway/__init__.py", line 192, in prepare_gateway
    return await self.mgw2_prepare_gateway(sh)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_gateway3/core/gateway/gate_mgw2.py", line 36, in mgw2_prepare_gateway
    await self.dispatcher_send(SIGNAL_PREPARE_GW, sh=sh)
  File "/config/custom_components/xiaomi_gateway3/core/gateway/base.py", line 108, in dispatcher_send
    await handler(**kwargs)
  File "/config/custom_components/xiaomi_gateway3/core/gateway/openmiio.py", line 30, in openmiio_prepare_gateway
    await sh.download_openmiio()
  File "/config/custom_components/xiaomi_gateway3/core/shell/base.py", line 145, in download_openmiio
    raw = await download(self.openmiio_url)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_gateway3/core/shell/base.py", line 184, in download
    async with session.get(url_or_path) as resp:
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1187, in __aenter__
    self._resp = await self._coro
                 ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 500, in _request
    with timer:
  File "/usr/local/lib/python3.11/site-packages/aiohttp/helpers.py", line 735, in __exit__
    raise asyncio.TimeoutError from None
TimeoutError  

Is it downloading something?

@zuobianfy
Copy link
Author

The devices under the gateway have been unable to be obtained. The entity of gateway3 is also in an unknown state. If this entity is overloaded, it will also become unavailable.

@AlexxIT AlexxIT added the question Further information is requested label Feb 19, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Feb 19, 2024

Yes. It is trying to download

OPENMIIO_BASE = "https://github.com/AlexxIT/openmiio_agent/releases/download/v1.2.1/"

And can't. Check your internet.

@zuobianfy
Copy link
Author

Yes. It is trying to download

OPENMIIO_BASE = "https://github.com/AlexxIT/openmiio_agent/releases/download/v1.2.1/"

And can't. Check your internet.

After all, in China to access github, the network is not smooth. If manually downloaded, how to install? Thank you very much for your reply

@AlexxIT
Copy link
Owner

AlexxIT commented Feb 20, 2024

There is undocumented feature for pushing local openmiio. Change these settings to fit your needs (configuration.yaml):

xiaomi_gateway3:
  openmiio:
    md5_mips: 6b914ea2967438cda7120853472b1340
    md5_arm: 867645409f437e739f3e914b23aacedd
    url_mips: ./openmiio_agent/openmiio_agent_mips
    url_arm: ./openmiio_agent/openmiio_agent_arm

MIPS - Multimode 1, ARM - Multimode 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants