GithubHelp home page GithubHelp logo

Comments (7)

banto6 avatar banto6 commented on May 30, 2024

问题已修,拉一下master最新代码即可

from haier.

banto6 avatar banto6 commented on May 30, 2024

新增climate实体可以提供一下空调对应的wifi_type,我看能不能做一个通用组件,wifi_type参数可在日志中Device Info部分找到。

from haier.

FaintGhost avatar FaintGhost commented on May 30, 2024

新增climate实体可以提供一下空调对应的wifi_type,我看能不能做一个通用组件,wifi_type参数可在日志中Device Info部分找到。

抱歉回复您迟了,不知道为什么微软把github的邮件判断为垃圾邮件了,刚刚更新了master分支的代码设备控制功能已经恢复正常了。

wifi_type我在error日志中找到了如下:

Logger: custom_components.haier.haier
Source: custom_components/haier/haier.py:179
Integration: Haier ([documentation](https://github.com/banto6/haier), [issues](https://github.com/banto6/haier/issues))
First occurred: 21:59:51 (2 occurrences)
Last logged: 21:59:54

获取配置信息失败, wifi_type: 111c120024000810040100318001150000000000000000000000000000000000, response: {"status": "1", "data": null, "total": 0}
获取配置信息失败, wifi_type: 111c120024000810010200618003654100000000000061800376410000010000, response: {"status": "1", "data": null, "total": 0}

对应的两个设备DEBUG信息如下,再次感谢大佬的辛苦工作!

2023-07-08 04:21:39.302 DEBUG (MainThread) [custom_components.haier.coordinator] 设备[18A7F1AAD312]已获取到最新状态数据: {"intelligenceStatus": "false", "humidificationStatus": "false", "silentSleepStatus": "false", "electricHeatingStatus": "false", "ch2oValue": "0", "rapidMode": "false", "energySavePeriod": "20", "specialMode": "0", "10degreeHeatingStatus": "false", "ch2oCleaningStatus": "false", "humanSensingStatus": "0", "outdoorPM2p5Value": "0", "acType": "0", "lightStatus": "false", "totalCleaningTime": "81", "errCode": "", "totalElectricityUsed": "145686", "sensingResult": "0", "tempUnit": "1", "lockStatus": "false", "selfCleaningStatus": "false", "airQuality": "0", "operationModeHK": "0", "operationMode": "1", "co2Value": "0", "targetTemperature": "27.00", "vocValue": "0", "localFilterChangeFlag": "false", "energySavingStatus": "false", "freshAirStatus": "false", "windDirectionVertical": "0", "onOffStatus": "false", "halfDegreeSettingStatus": "false", "echoStatus": "false", "outdoorTemperature": "28.00", "pm2p5Level": "0", "indoorPM2p5Value": "8", "pmvStatus": "false", "muteStatus": "false", "healthMode": "false", "ErrAckFlag": "false", "pm2p5CleaningStatus": "false", "targetHumidity": "30", "indoorTemperature": "29.50", "windSpeed": "1", "heatAccumulationStatus": "false", "opSrc": "1", "screenDisplayStatus": "true", "windDirectionHorizontal": "0", "indoorHumidity": "0"}
2023-07-08 04:21:39.678 DEBUG (MainThread) [custom_components.haier.coordinator] 设备[18A7F146A350]已获取到最新状态数据: {"intelligenceStatus": "false", "humidificationStatus": "false", "silentSleepStatus": "false", "electricHeatingStatus": "false", "ch2oValue": "0", "rapidMode": "false", "energySavePeriod": "15", "specialMode": "0", "10degreeHeatingStatus": "false", "ch2oCleaningStatus": "false", "humanSensingStatus": "0", "outdoorPM2p5Value": "0", "acType": "0", "lightStatus": "false", "totalCleaningTime": "0", "errCode": "", "totalElectricityUsed": "0", "sensingResult": "0", "tempUnit": "1", "lockStatus": "false", "selfCleaningStatus": "false", "airQuality": "0", "operationModeHK": "0", "operationMode": "6", "co2Value": "0", "targetTemperature": "26.00", "vocValue": "0", "localFilterChangeFlag": "false", "energySavingStatus": "false", "freshAirStatus": "false", "windDirectionVertical": "0", "onOffStatus": "false", "halfDegreeSettingStatus": "false", "echoStatus": "false", "outdoorTemperature": "28.00", "pm2p5Level": "0", "indoorPM2p5Value": "0", "pmvStatus": "false", "muteStatus": "false", "healthMode": "false", "ErrAckFlag": "false", "pm2p5CleaningStatus": "false", "targetHumidity": "30", "indoorTemperature": "32.00", "windSpeed": "2", "heatAccumulationStatus": "false", "opSrc": "1", "screenDisplayStatus": "true", "windDirectionHorizontal": "7", "indoorHumidity": "0"}

from haier.

banto6 avatar banto6 commented on May 30, 2024

error日志中的wifi_type是无法识别的设备,应该查看Device Info部分的日志

from haier.

FaintGhost avatar FaintGhost commented on May 30, 2024

error日志中的wifi_type是无法识别的设备,应该查看Device Info部分的日志

抱歉大佬不知道是不是方法不对,我实在是没找到Device Info这个字段的日志(已经开了DEBUG模式)。

from haier.

banto6 avatar banto6 commented on May 30, 2024

试试这个呢

配置 > 系统 > 日志 > 加载完整日志

from haier.

FaintGhost avatar FaintGhost commented on May 30, 2024

试试这个呢

配置 > 系统 > 日志 > 加载完整日志

找到了!感谢大佬!

2023-07-08 03:59:50.197 DEBUG (MainThread) [custom_components.haier] Device Info: {'_raw_data': {'deviceId': '18A7F146A350', 'deviceName': '挂式空调', 'deviceType': '0201201G', 'online': True, 'permissions': [{'auth': {'control': True, 'set': True, 'view': True}, 'authType': 'owner'}, {'auth': {'control': True, 'set': False, 'view': True}, 'authType': 'home'}], 'productCodeT': 'AAABNH001', 'productNameT': 'KFR-35GW/05SNA81U1套机', 'totalPermission': {'control': True, 'set': True, 'view': True}, 'wifiType': '2008610800820324021200118007264200000000000000000000000000000040'}}
2023-07-08 03:59:51.461 DEBUG (MainThread) [custom_components.haier] Device Info: {'_raw_data': {'deviceId': '04FA83FA81E5', 'deviceName': '我家卡萨帝洗衣机', 'deviceType': '04001023', 'online': True, 'permissions': [{'auth': {'control': True, 'set': True, 'view': True}, 'authType': 'owner'}, {'auth': {'control': True, 'set': False, 'view': True}, 'authType': 'home'}], 'productCodeT': 'CB0JR000X', 'productNameT': 'C601 30RG', 'totalPermission': {'control': True, 'set': True, 'view': True}, 'wifiType': '111c120024000810040100318001150000000000000000000000000000000000'}}

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.