Skip to content

当前版本提示调用业务系统异常 #8

Description

@NekoLines

在我的HomeAssistant中使用该插件添加美的JSQ30-MJ3热水器时程序出现错误,提示

Logger: homeassistant.setup
Source: setup.py:288
First occurred: 15:36:12 (1 occurrences)
Last logged: 15:36:12

Error during setup of component meiju
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 288, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/config/custom_components/meiju/__init__.py", line 100, in async_setup
    await acc.update_devices(cfg.get(CONF_DEVICES) or [])
  File "/config/custom_components/meiju/__init__.py", line 505, in update_devices
    await dvc.auth_device()
  File "/config/custom_components/meiju/__init__.py", line 632, in auth_device
    token, key = await self.hass.async_add_executor_job(self.account.cloud.gettoken, udpid)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/msmart/cloud.py", line 190, in gettoken
    response = self.api_request(
               ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/msmart/cloud.py", line 109, in api_request
    self.handle_api_error(int(response['code']), response['msg'])
  File "/usr/local/lib/python3.11/site-packages/msmart/cloud.py", line 275, in handle_api_error
    handler()
  File "/usr/local/lib/python3.11/site-packages/msmart/cloud.py", line 261, in throw
    raise ValueError(error_code, message)
ValueError: (40404, '调用业务系统异常(访问地址不存在) [no Route matched with those values]')

用户名和密码检查是正确的,也有热水器信息返回。

此错误来自自定义集成。

Logger: custom_components.meiju
Source: custom_components/meiju/__init__.py:496
Integration: Midea Meiju (documentation, issues)
First occurred: 15:36:12 (1 occurrences)
Last logged: 15:36:12

211106239999999, e3, 51109999, 0000E353151101719181712000357YX4,0000, 204, 燃气热水器

尝试连接代码中的地址,该网址返回内容和错误提示一样
{"msg":"调用业务系统异常(访问地址不存在) [no Route matched with those values]","code":40404}
怀疑美的更改了业务网址导致该故障发生,期待作者大大看一下。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions