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

login failed, no devices, got 'auth err' after update v0.7.21 #1899

Closed
MBRjun opened this issue Oct 25, 2024 · 10 comments
Closed

login failed, no devices, got 'auth err' after update v0.7.21 #1899

MBRjun opened this issue Oct 25, 2024 · 10 comments
Labels
bug Something isn't working fixed bug fixed

Comments

@MBRjun
Copy link
Contributor

MBRjun commented Oct 25, 2024

all entities unavailable

some logs:

None device in xiaomi cloud: (MAIL)
Get xiaomi message for (ID) failed: {'code': 0, 'message': 'auth err'}
Got xiaomi devices for (MAIL) failed: {'code': 0, 'message': 'auth err'}
Get xiaomi scene history for (ID) (number) failed: {'code': 0, 'message': 'auth err'}

rollback to v0.7.20 can fix this problem

btw: i noticed v0.7.21 "improve login to xiaomi cloud" in 9b715d0, is this caused by this?

@metricss
Copy link

metricss commented Oct 26, 2024

我升级到 0.7.21 后,所有的实体都变成不可用。
在「集成」中新添加新的Xiaomi Miot Auto集成,会提示:无法加载配置向导: {"message":"Invalid handler specified"}

已存在的实体,点开详情,会提示:「集成“xiaomi_miot”不再提供此实体。如果实体不再使用,可以在“设置”中删除它。」

After upgrading to version 0.7.21, all entities became unavailable. When trying to add the new Xiaomi Miot Auto integration in "Integrations," it displays the message: "Failed to load configuration wizard: {'message':'Invalid handler specified'}."

For existing entities, when you open the details, it shows the message: "The integration 'xiaomi_miot' no longer provides this entity. If the entity is no longer in use, you can delete it in 'Settings.'"

@DyAxy
Copy link

DyAxy commented Oct 27, 2024

2024-10-27 16:42:35.133 ERROR (MainThread) [custom_components.xiaomi_miot.sensor] Unexpected error fetching xiaomi_miot-mihome-scene-history-*********_********* data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 271, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_miot/sensor.py", line 754, in fetch_latest_message
    res = await self.cloud.async_request_api('scene/history', data={
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_miot/core/xiaomi_cloud.py", line 213, in async_request_api
    rsp = await self.async_request_rc4_api(api, params, method, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_miot/core/xiaomi_cloud.py", line 747, in async_request_rc4_api
    session = self.api_session(**{'async': True})
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/xiaomi_miot/core/xiaomi_cloud.py", line 662, in api_session
    raise MiCloudException('Cannot execute request. service token or userId missing. Make sure to login.')

应该还会有个这个,禁用米家场景历史实体 解决了

@metricss
Copy link

"/config/custom_components/xiaomi_miot/core/xiaomi_cloud.py", line 662, in api_session raise MiCloudException('Cannot execute request. service token or userId missing. Make sure to login.') 应该还会有个这个,禁用米家场景历史实体 解决了

您好!可否请您帮忙讲讲“禁用米家场景历史实体”是怎么操作呀?
我理解是全删掉,然后再新增么?但我这边点击新增集成,也是报错的。

@DyAxy
Copy link

DyAxy commented Oct 29, 2024

"/config/custom_components/xiaomi_miot/core/xiaomi_cloud.py", line 662, in api_session raise MiCloudException('Cannot execute request. service token or userId missing. Make sure to login.') 应该还会有个这个,禁用米家场景历史实体 解决了

您好!可否请您帮忙讲讲“禁用米家场景历史实体”是怎么操作呀? 我理解是全删掉,然后再新增么?但我这边点击新增集成,也是报错的。

在配置集成时可以勾上的

@lujiashun1
Copy link

"/config/custom_components/xiaomi_miot/core/xiaomi_cloud.py", line 662, in api_session raise MiCloudException('Cannot execute request. service token or userId missing. Make sure to login.') 应该还会有个这个,禁用米家场景历史实体 解决了

您好!可否请您帮忙讲讲“禁用米家场景历史实体”是怎么操作呀? 我理解是全删掉,然后再新增么?但我这边点击新增集成,也是报错的。

在配置集成时可以勾上的

不行 还是提示账号下没有设备

@yjwu-leadstec
Copy link

回滚到上一个版本能暂时解决。

al-one added a commit that referenced this issue Nov 1, 2024
@al-one al-one added the bug Something isn't working label Nov 1, 2024
@al-one
Copy link
Owner

al-one commented Nov 1, 2024

尝试master分支。

wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash -

@MBRjun
Copy link
Contributor Author

MBRjun commented Nov 1, 2024

尝试master分支。

wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash -

works 👍

@junolym
Copy link

junolym commented Nov 1, 2024

尝试master分支。

wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash -

👍

@al-one al-one added the fixed bug fixed label Nov 4, 2024
@al-one
Copy link
Owner

al-one commented Nov 4, 2024

Fixed in v0.7.22

@al-one al-one closed this as completed Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed bug fixed
Projects
None yet
Development

No branches or pull requests

7 participants