GithubHelp home page GithubHelp logo

Comments (8)

banto6 avatar banto6 commented on May 30, 2024

看样子是设备的配置文件拉取失败了,我现在加上了日志,您可以拉取一下最新代码看看日志输出呢

from haier.

dingzhenying avatar dingzhenying commented on May 30, 2024

image
更新后,设备依旧无法加载,以上为日志报错信息,设备为海尔**空调

from haier.

dingzhenying avatar dingzhenying commented on May 30, 2024

image

from haier.

banto6 avatar banto6 commented on May 30, 2024

是WIFI设备吗?

from haier.

dingzhenying avatar dingzhenying commented on May 30, 2024

是的,通过wifi接入的

from haier.

banto6 avatar banto6 commented on May 30, 2024

在海尔智家APP中可以正常控制吗?是新设备还是老设备呢?看日志接口确实没有返回配置文件,有可能是本项目使用的API跟海尔智家APP使用的API不一致导致的。

from haier.

dingzhenying avatar dingzhenying commented on May 30, 2024

是海尔的**空调,智家app中是能正常搜索和控制的,但在插件中设备无法被加载成功。以下为日志信息:

2023-07-04 09:20:54.131 ERROR (MainThread) [custom_components.haier] 设备[04E229535562_1-1]初始化失败
Traceback (most recent call last):
File "/Users/dingzhenying/.homeassistant/custom_components/haier/init.py", line 34, in async_setup_entry
coordinator = await new_device_coordinator(hass, client, device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dingzhenying/.homeassistant/custom_components/haier/init.py", line 78, in new_device_coordinator
device['config'] = await client.get_hardware_config(device['wifiType'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dingzhenying/.homeassistant/custom_components/haier/haier.py", line 142, in get_hardware_config
if 'data' not in content or 'url' not in content['data']:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable
2023-07-04 09:20:54.135 DEBUG (MainThread) [custom_components.haier] Device Info: {"deviceId": "04E229535562_1-2", "deviceName": "\u7a7a\u8c03", "deviceType": "0D082001", "online": true, "permissions": [{"auth": {"control": true, "set": true, "view": true}, "authType": "owner"}, {"auth": {"control": true, "set": false, "view": true}, "authType": "home"}], "productCodeT": "AA9E9005A", "productNameT": "RFTSAD71MXS-V1", "totalPermission": {"control": true, "set": true, "view": true}, "wifiType": "01c12002400081034080000000100000"}
2023-07-04 09:20:59.476 ERROR (MainThread) [custom_components.haier] 设备[04E229535562_1-2]初始化失败
Traceback (most recent call last):
File "/Users/dingzhenying/.homeassistant/custom_components/haier/init.py", line 34, in async_setup_entry
coordinator = await new_device_coordinator(hass, client, device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dingzhenying/.homeassistant/custom_components/haier/init.py", line 78, in new_device_coordinator
device['config'] = await client.get_hardware_config(device['wifiType'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dingzhenying/.homeassistant/custom_components/haier/haier.py", line 142, in get_hardware_config
if 'data' not in content or 'url' not in content['data']:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable
2023-07-04 09:20:59.478 DEBUG (MainThread) [custom_components.haier] Device Info: {"deviceId": "04E229535562_1-3", "deviceName": "\u7a7a\u8c03", "deviceType": "0D082001", "online": true, "permissions": [{"auth": {"control": true, "set": true, "view": true}, "authType": "owner"}, {"auth": {"control": true, "set": false, "view": true}, "authType": "home"}], "productCodeT": "AA9E9005A", "productNameT": "RFTSAD71MXS-V1", "totalPermission": {"control": true, "set": true, "view": true}, "wifiType": "01c12002400081034080000000100000"}
2023-07-04 09:20:59.879 ERROR (MainThread) [custom_components.haier] 设备[04E229535562_1-3]初始化失败
Traceback (most recent call last):
File "/Users/dingzhenying/.homeassistant/custom_components/haier/init.py", line 34, in async_setup_entry
coordinator = await new_device_coordinator(hass, client, device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dingzhenying/.homeassistant/custom_components/haier/init.py", line 78, in new_device_coordinator
device['config'] = await client.get_hardware_config(device['wifiType'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dingzhenying/.homeassistant/custom_components/haier/haier.py", line 142, in get_hardware_config
if 'data' not in content or 'url' not in content['data']:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable
2023-07-04 09:20:59.880 DEBUG (MainThread) [custom_components.haier] Device Info: {"deviceId": "04E229535562_1-4", "deviceName": "\u7a7a\u8c03", "deviceType": "0D082001", "online": true, "permissions": [{"auth": {"control": true, "set": true, "view": true}, "authType": "owner"}, {"auth": {"control": true, "set": false, "view": true}, "authType": "home"}], "productCodeT": "AA9E9005A", "productNameT": "RFTSAD71MXS-V1", "totalPermission": {"control": true, "set": true, "view": true}, "wifiType": "01c12002400081034080000000100000"}
2023-07-04 09:21:00.510 ERROR (MainThread) [custom_components.haier] 设备[04E229535562_1-4]初始化失败
Traceback (most recent call last):
File "/Users/dingzhenying/.homeassistant/custom_components/haier/init.py", line 34, in async_setup_entry
coordinator = await new_device_coordinator(hass, client, device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dingzhenying/.homeassistant/custom_components/haier/init.py", line 78, in new_device_coordinator
device['config'] = await client.get_hardware_config(device['wifiType'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dingzhenying/.homeassistant/custom_components/haier/haier.py", line 142, in get_hardware_config
if 'data' not in content or 'url' not in content['data']:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable

from haier.

banto6 avatar banto6 commented on May 30, 2024

#6 (comment)

您好,请参考这个回复。

from haier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.