Comments (8)
看样子是设备的配置文件拉取失败了,我现在加上了日志,您可以拉取一下最新代码看看日志输出呢
from haier.
更新后,设备依旧无法加载,以上为日志报错信息,设备为海尔**空调
from haier.
from haier.
是WIFI设备吗?
from haier.
是的,通过wifi接入的
from haier.
在海尔智家APP中可以正常控制吗?是新设备还是老设备呢?看日志接口确实没有返回配置文件,有可能是本项目使用的API跟海尔智家APP使用的API不一致导致的。
from haier.
是海尔的**空调,智家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.
您好,请参考这个回复。
from haier.
Related Issues (20)
- 海尔电热水器EC6002-D6(U1)没接入成功 HOT 2
- 提交一个冰箱小bug HOT 3
- 空调显示当前温度及设置温度异常 HOT 11
- 认证失败 HOT 3
- 账户认证失败 HOT 1
- 卡萨帝冰箱和洗衣机无法接入 HOT 1
- 账号下无可用实体 HOT 3
- 洗衣机的用电量显示形态有问题
- 请教海尔风管机是否能被控制,谢谢啦 HOT 3
- 【问题】现在支持智能门锁吗? HOT 1
- 海尔洗衣机 你们能获取到 message信息吗 HOT 2
- 烘干机的提示信息sensor不会提示"提示请清理过滤器"
- 认证失败 HOT 1
- 海尔风管机请求能更新以支持 HOT 1
- 洗衣机识别出错 HOT 1
- 海尔洗衣机的筒门状态不会更新 HOT 1
- 如何寻找说明文档 HOT 5
- 期待大神更新插件,让海尔智家更好用,谢谢 HOT 5
- 即热模式不开启加热 HOT 8
- 海尔智家中卡萨帝冰箱无法被搜多到 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haier.