I am a game developer!
- C++20
- Rust
- Dxr
- Motion Matching
XiaoMi AC Partner plugins for HomeBridge(https://github.com/nfarina/homebridge).
License: MIT License
I am a game developer!
Hello!
Thanks for a great plugin!!!
Now I can use Cooper&Hunter air conditioner with preset Gree No1 with homekit and Siri.
Can you, please, add in plugin support of door/window sensors, if it possible?
感十分谢楼主开发插件,用siri比找遥控器方便多了,哈哈哈
我来反馈一个我遇到的问题哈,不知道是不是只有我自己遇到。
我是美的空调,使用预设控制,当使用homekit手动控制空调的模式,制冷、自动、关闭均正常无误,
但是使用siri控制存在以下问题:
1.”hey siri,打开空调“:
siri反馈:空调已打开,
实际是:空调滴一声响应,打开,模式被设置为自动
2. “hey siri,关闭空调”:
siri反馈:空调已关闭
实际是:空调滴一声响应,但是并没有关闭,而模式被设置到了自动。
可以正常使用的方式为:
但是这样太别扭了。。。
另外我来补充两条当前可以获得token的方法供大家参考:
03:40:02
(node:17) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: syncInterval is not defined
03:40:02
(node:17) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the
一共有4个空调伴侣,已经正确设置了
每次homebridge刚启动时各个空调伴侣工作都正常,能够接收到发给自身的命令
一段时间后,有固定两台设备就会被混淆,发给伴侣A的命令会在伴侣B上有反应,homekit里两台设备的状态也被同步,伴侣A则无法接收任何操作
设置肯定没有问题,因为同样的设置在home-assistant里是正常的
你好,请问ios和Mac下如何获取温湿度传感器的设备码?
我没有安卓的设备,没办法通过安卓的app获取。
谢谢!
看之前的issues,您用的也是格力二号吗?可以更新一下格力二号用的preset_no吗?用您在之前issues中贴出的配置文件,已经成功控制家里的空调了,只是自动模式和制热等还不能使用,多谢。
自己也尝试获取customize tag,一直以失败告终。再次感谢
为啥switch开关设置了, 而且出现了, 但是开关没有反应。
switchMulti开关倒是有反应, 但是报错 [XiaoMiAcPartner] [SWITCHMULTI_ERROR]Send fail! Error
如题,请问如何把抓到的包替换到插件的预设模板中,谢谢了
现在加入温度传感器后看自动化中感应器这块还是灰色的,是目前的版本还没有做吗?
日立空调预设1,抓包成功,send_cmd信息整理如下,现在问题是打开关闭没有问题,但是制冷无法调节温度,一旦调节温度就进入无响应状态,看了homebridge的debug信息,调节温度完全没有debug信息,不像开关空调会有Sending AC code
的行为。求解。@LASER-Yi
附上空调码,
{
"name": "Ac Partner",
"type": "climate",
"customize": {
"off": "010001123201001c010001100040BFFF00CC33926D13EC40BF00FF00FF00FF00FF00FF53ACC13E00FF00FF",
"on": "010001123211001c010001100040BFFF00CC33926D13EC708F00FF00FF00FF00FF00FF23DCD12E00FF00FF",
"auto": "010001123211001c010001100040BFFF00CC33926D13EC708F00FF00FF00FF00FF00FF23DCD12E00FF00FF",
"cool": {
"30": "010001123211001e110001100040BFFF00CC33926D44BB788700FF00FF00FF00FF00FF23DCD12E00FF00FF",
"29": "010001123211001d110001100040BFFF00CC33926D43BC748B00FF00FF00FF00FF00FF23DCD12E00FF00FF",
"28": "010001123211001c110001100040BFFF00CC33926D43BC708F00FF00FF00FF00FF00FF23DCD12E00FF00FF",
"27": "010001123211001b110001100040BFFF00CC33926D43BC6C9300FF00FF00FF00FF00FF23DCD12E00FF00FF",
"26": "010001123211001a110001100040BFFF00CC33926D43BC689700FF00FF00FF00FF00FF23DCD12E00FF00FF",
"25": "0100011232110019110001100040BFFF00CC33926D43BC649B00FF00FF00FF00FF00FF23DCD12E00FF00FF",
"24": "0100011232110018110001100040BFFF00CC33926D43BC609F00FF00FF00FF00FF00FF23DCD12E00FF00FF",
"23": "0100011232110017110001100040BFFF00CC33926D43BC5CA300FF00FF00FF00FF00FF23DCD12E00FF00FF"
}
}
}
收到如下状态信息后,显示未关闭
[5/3/2018, 11:06:04 PM] [XiaoMiAcPartner] [Ac Partner]Complete
[5/3/2018, 11:06:09 PM] [XiaoMiAcPartner] [Ac Partner]Syncing...
[5/3/2018, 11:06:09 PM] [XiaoMiAcPartner] [SENSOR]Temperature -> 23
[5/3/2018, 11:06:09 PM] [XiaoMiAcPartner] [SENSOR]RelativeHumidity -> 49
[5/3/2018, 11:06:09 PM] [XiaoMiAcPartner] Partner state----------------------
[5/3/2018, 11:06:09 PM] [XiaoMiAcPartner] Model -> 0180111111
[5/3/2018, 11:06:09 PM] [XiaoMiAcPartner] Active -> 0
[5/3/2018, 11:06:09 PM] [XiaoMiAcPartner] Mode -> 1
[5/3/2018, 11:06:09 PM] [XiaoMiAcPartner] Temperature -> 24
[5/3/2018, 11:06:09 PM] [XiaoMiAcPartner] RotationSpeed -> 2
[5/3/2018, 11:06:09 PM] [XiaoMiAcPartner] SwingMode -> 1
[5/3/2018, 11:06:09 PM] [XiaoMiAcPartner] LED -> 0
[5/3/2018, 11:06:09 PM] [XiaoMiAcPartner] -----------------------------------
[5/3/2018, 11:06:09 PM] [XiaoMiAcPartner] [Ac Partner]Complete
/usr/local/lib/node_modules/homebridge-mi-acpartner/accessories/heaterCooler.js:42
<<<<<<< HEAD
^^
SyntaxError: Unexpected token <<
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:152:10)
at Module._compile (module.js:605:28)
at Object.Module._extensions..js (module.js:652:10)
at Module.load (module.js:560:32)
at tryModuleLoad (module.js:503:12)
at Function.Module._load (module.js:495:3)
at Module.require (module.js:585:17)
at require (internal/module.js:11:18)
at Object. (/usr/local/lib/node_modules/homebridge-mi-acpartner/index.js:8:1)
please help me. Homebridge dont start
if (!presets[data.model]) {
^
ReferenceError: presets is not defined
at module.exports (/usr/lib/node_modules/homebridge-mi-acpartner/packages/presetHandle.js:16:8)
at ClimateAccessory.SendCmd (/usr/lib/node_modules/homebridge-mi-acpartner/accessories/climate.js:310:27)
at ClimateAccessory.setTargetHeatingCoolingState (/usr/lib/node_modules/homebridge-mi-acpartner/accessories/climate.js:173:18)
at emitMany (events.js:146:13)
at Characteristic.TargetHeatingCoolingState.emit (events.js:223:7)
at Characteristic.TargetHeatingCoolingState.Characteristic.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:319:10)
at Bridge. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:867:22)
at Array.forEach (native)
at Bridge.Accessory._handleSetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:807:8)
at emitMany (events.js:146:13)
我只能下載 0.7.1. 請問我怎樣才能得到 0.7.2?
安装配置后跑homebridge,提示'XiaoMiAcPartner'插件不存在。
/usr/lib/node_modules/homebridge/lib/api.js:122
throw new Error("The requested platform '" + name + "' was not registered by any plugin.");
^
Error: The requested platform 'XiaoMiAcPartner' was not registered by any plugin.
at API.platform (/usr/lib/node_modules/homebridge/lib/api.js:122:13)
at Server._loadPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:294:45)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:85:36)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
空调是三菱电机, 所有控制都没有问题,在米家App中使用的是三菱电机预设2或者4。
但是运行一会后(使用Heat模式), 如果在Home中选择关闭空调(别的还没有试过,因为需求就是关机), 但是实际上空调不会被关闭。 打开米家App后发现空调显示也是运转状态, 但是运行模式会自动跳到 Auto (之前是Heat), 这时在米家App做任何操作都没有反应, 包含开关机操作, 同时Home中空调的状态也会再次自动跳回开机状态。
经过测试后, 这时只有两种办法可以恢复对空调的控制:
实在不知道这个问题应该找谁,有发反馈给小米, 但是石沉大海....
[7/24/2018, 12:58:26 PM] [MiAqaraPlatform] [DEBUG][Revc]{"cmd":"report","model":"ctrl_neutral1","sid":"158d00016146c9","short_id":7781,"data":"{\"channel_0\":\"on\"}"}
[7/24/2018, 12:58:26 PM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"write","model":"ctrl_neutral1","sid":"158d00016146c9","data":"{\"channel_0\":\"on\", \"key\": \"7e2bd4b3324484429629d6782f52cfd4\"}"}
[7/24/2018, 12:58:26 PM] [MiAqaraPlatform] [DEBUG][Revc]{"cmd":"report","model":"ctrl_neutral1","sid":"158d00016146c9","short_id":7781,"data":"{\"channel_0\":\"on\"}"}
[7/24/2018, 12:58:27 PM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"write","model":"ctrl_neutral1","sid":"158d00016146c9","data":"{\"channel_0\":\"on\", \"key\": \"7e2bd4b3324484429629d6782f52cfd4\"}"}
[7/24/2018, 12:58:28 PM] [MiAqaraPlatform] [ERROR]Error: timeout: {"cmd":"write","model":"ctrl_neutral1","sid":"158d00016146c9","data":"{\"channel_0\":\"on\", \"key\": \"7e2bd4b3324484429629d6782f52cfd4\"}"}
[7/24/2018, 12:58:28 PM] [MiAqaraPlatform] [ERROR]Error: timeout: {"cmd":"write","model":"ctrl_neutral1","sid":"158d00016146c9","data":"{\"channel_0\":\"on\", \"key\": \"7e2bd4b3324484429629d6782f52cfd4\"}"}
at Timeout.setInterval (/usr/lib/node_modules/homebridge-mi-aqara/index.js:399:27)
at ontimeout (timers.js:386:11)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
[7/24/2018, 12:58:32 PM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"write","model":"ctrl_neutral1","sid":"158d00016146c9","data":"{\"channel_0\":\"off\", \"key\": \"7e2bd4b3324484429629d6782f52cfd4\"}"}
[7/24/2018, 12:58:33 PM] [MiAqaraPlatform] [DEBUG][Revc]{"cmd":"report","model":"ctrl_neutral1","sid":"158d00016146c9","short_id":7781,"data":"{\"channel_0\":\"off\"}"}
[7/24/2018, 12:58:33 PM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"write","model":"ctrl_neutral1","sid":"158d00016146c9","data":"{\"channel_0\":\"off\", \"key\": \"7e2bd4b3324484429629d6782f52cfd4\"}"}
[7/24/2018, 12:58:34 PM] [MiAqaraPlatform] [DEBUG][Revc]{"cmd":"report","model":"ctrl_neutral1","sid":"158d00016146c9","short_id":7781,"data":"{\"channel_0\":\"off\"}"}
[7/24/2018, 12:58:34 PM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"write","model":"ctrl_neutral1","sid":"158d00016146c9","data":"{\"channel_0\":\"off\", \"key\": \"7e2bd4b3324484429629d6782f52cfd4\"}"}
[7/24/2018, 12:58:35 PM] [MiAqaraPlatform] [ERROR]Error: timeout: {"cmd":"write","model":"ctrl_neutral1","sid":"158d00016146c9","data":"{\"channel_0\":\"off\", \"key\": \"7e2bd4b3324484429629d6782f52cfd4\"}"}
[7/24/2018, 12:58:35 PM] [MiAqaraPlatform] [ERROR]Error: timeout: {"cmd":"write","model":"ctrl_neutral1","sid":"158d00016146c9","data":"{\"channel_0\":\"off\", \"key\": \"7e2bd4b3324484429629d6782f52cfd4\"}"}
at Timeout.setInterval (/usr/lib/node_modules/homebridge-mi-aqara/index.js:399:27)
at ontimeout (timers.js:386:11)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
插件能正确加载了
使用一次后,还是会报超时错误
超时后就瘫痪了
单独运行没问题
Hi, can you provide an English version of the README.md?
Thanks!
各位大佬,由于我Wireshark抓不到包,求同使用三菱电机空调的大佬有没有抓包成功的空调码,不胜感激!空调型号:MSZ-YK18VA、MSZ-FJ09VA,目前使用米家app中的三菱电机预设4。
多谢作者添加help wanted标签~
单独运行ac-parterner和mi-aqara都没有问题
但是放在一个桥里面,mi-aqara会超时
貌似mi-aqara的子设备没加载完,空调就是开始加载了
导致其一直读不到返回值?
[7/13/2018, 11:33:03 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd": "whois"}
[7/13/2018, 11:33:03 AM] [MiAqaraPlatform] [INFO]server is listening on port 9898.
[7/13/2018, 11:33:03 AM] Homebridge is running on port 51826.
[7/13/2018, 11:33:03 AM] [MiAqaraPlatform] [DEBUG][Revc]{"cmd":"iam","port":"9898","sid":"7811dcdc2a79","model":"gateway","ip":"192.168.1.132"}
[7/13/2018, 11:33:03 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"get_id_list"}
[7/13/2018, 11:33:03 AM] [MiAqaraPlatform] [DEBUG][Revc]{"cmd":"get_id_list_ack","sid":"7811dcdc2a79","token":"psGMUgXMweX8tj3S","data":"[\"158d0001e77bcd\",\"158d0001a1fc1e\",\"158d00016146c9\"]"}
[7/13/2018, 11:33:03 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"7811dcdc2a79"}
[7/13/2018, 11:33:03 AM] [MiAqaraPlatform] [DEBUG][Revc]{"cmd":"read_ack","model":"gateway","sid":"7811dcdc2a79","short_id":0,"data":"{\"rgb\":0,\"illumination\":672,\"proto_version\":\"1.0.9\"}"}
[7/13/2018, 11:33:03 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001e77bcd"}
[7/13/2018, 11:33:03 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001a1fc1e"}
[7/13/2018, 11:33:03 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d00016146c9"}
[7/13/2018, 11:33:03 AM] [MiAqaraPlatform] [DEBUG]read gateway device list finished. size: 3
[7/13/2018, 11:33:04 AM] [XiaoMiAcPartner] [INFO]Device 192.168.1.250 -> Connected
[7/13/2018, 11:33:04 AM] [XiaoMiAcPartner] [Ac Partner]Ready
[7/13/2018, 11:33:04 AM] [XiaoMiAcPartner] [WARN]Sync off
[7/13/2018, 11:33:04 AM] [XiaoMiAcPartner] Sync -----------------------------
[7/13/2018, 11:33:04 AM] [XiaoMiAcPartner] Accessory -> Ac Partner
[7/13/2018, 11:33:04 AM] [XiaoMiAcPartner] Model -> 0100011272
[7/13/2018, 11:33:04 AM] [XiaoMiAcPartner] Active -> 0
[7/13/2018, 11:33:04 AM] [XiaoMiAcPartner] Mode -> 1
[7/13/2018, 11:33:04 AM] [XiaoMiAcPartner] Temperature -> 26
[7/13/2018, 11:33:04 AM] [XiaoMiAcPartner] RotationSpeed -> 3
[7/13/2018, 11:33:04 AM] [XiaoMiAcPartner] SwingMode -> 1
[7/13/2018, 11:33:04 AM] [XiaoMiAcPartner] LED -> 0
[7/13/2018, 11:33:04 AM] [XiaoMiAcPartner] -----------------------------------
[7/13/2018, 11:33:06 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001e77bcd"}
[7/13/2018, 11:33:06 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001a1fc1e"}
[7/13/2018, 11:33:06 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d00016146c9"}
[7/13/2018, 11:33:09 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001e77bcd"}
[7/13/2018, 11:33:09 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001a1fc1e"}
[7/13/2018, 11:33:09 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d00016146c9"}
[7/13/2018, 11:33:12 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001e77bcd"}
[7/13/2018, 11:33:12 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001a1fc1e"}
[7/13/2018, 11:33:12 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d00016146c9"}
[7/13/2018, 11:33:15 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001e77bcd"}
[7/13/2018, 11:33:15 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001a1fc1e"}
[7/13/2018, 11:33:15 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d00016146c9"}
[7/13/2018, 11:33:18 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001e77bcd"}
[7/13/2018, 11:33:18 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001a1fc1e"}
[7/13/2018, 11:33:18 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d00016146c9"}
[7/13/2018, 11:33:21 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001e77bcd"}
[7/13/2018, 11:33:21 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001a1fc1e"}
[7/13/2018, 11:33:21 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d00016146c9"}
[7/13/2018, 11:33:24 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001e77bcd"}
[7/13/2018, 11:33:24 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001a1fc1e"}
[7/13/2018, 11:33:24 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d00016146c9"}
[7/13/2018, 11:33:27 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001e77bcd"}
[7/13/2018, 11:33:27 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001a1fc1e"}
[7/13/2018, 11:33:27 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d00016146c9"}
[7/13/2018, 11:33:30 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001e77bcd"}
[7/13/2018, 11:33:30 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001a1fc1e"}
[7/13/2018, 11:33:30 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d00016146c9"}
[7/13/2018, 11:33:33 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001e77bcd"}
[7/13/2018, 11:33:33 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001a1fc1e"}
[7/13/2018, 11:33:33 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d00016146c9"}
[7/13/2018, 11:33:36 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001e77bcd"}
[7/13/2018, 11:33:36 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d0001a1fc1e"}
[7/13/2018, 11:33:36 AM] [MiAqaraPlatform] [DEBUG][Send]{"cmd":"read", "sid":"158d00016146c9"}
[7/13/2018, 11:33:39 AM] [MiAqaraPlatform] [ERROR]Error: timeout: {"cmd":"read", "sid":"158d0001e77bcd"}
[7/13/2018, 11:33:39 AM] [MiAqaraPlatform] [ERROR]Error: timeout: {"cmd":"read", "sid":"158d0001e77bcd"}
at Timeout.setInterval (/usr/lib/node_modules/homebridge-mi-aqara/index.js:399:27)
at ontimeout (timers.js:386:11)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
[7/13/2018, 11:33:39 AM] [MiAqaraPlatform] [ERROR]Error: timeout: {"cmd":"read", "sid":"158d0001a1fc1e"}
[7/13/2018, 11:33:39 AM] [MiAqaraPlatform] [ERROR]Error: timeout: {"cmd":"read", "sid":"158d0001a1fc1e"}
at Timeout.setInterval (/usr/lib/node_modules/homebridge-mi-aqara/index.js:399:27)
at ontimeout (timers.js:386:11)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
[7/13/2018, 11:33:39 AM] [MiAqaraPlatform] [ERROR]Error: timeout: {"cmd":"read", "sid":"158d00016146c9"}
[7/13/2018, 11:33:39 AM] [MiAqaraPlatform] [ERROR]Error: timeout: {"cmd":"read", "sid":"158d00016146c9"}
at Timeout.setInterval (/usr/lib/node_modules/homebridge-mi-aqara/index.js:399:27)
at ontimeout (timers.js:386:11)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
你好,我遇到了很多问题,报告一下我测试过程中发现的问题吧,我是synology NAS(6.1.7)上安装的docker,homebridge(0.4.44)中只安装了homebridge-ac-partner包,空调是gree-preset-2,app控制正常,没有使用自定义空调码,在0.6.3版本除off mode外其他功能均正常(console无报错),在0.6.4和0.6.6版本均无法控制(任何按键无响应),console显示sync failed/send failed, call to device timeout...
迫于无奈我使用了0.6.6版本的自定义设置,但是在同步功能打开时,调节温度几次就会导致无响应,直至重启homebridge实例才能恢复。关闭同步功能后一切正常。console日志依稀记得是memory leak, please adjust memory limit。
如果需要的话我可以重新测试安装几次发送详细日志给你。
非常感谢你的插件,期待你的其他作品:)
安装mi-aqara及伴侣插件运行后mi-aqara报错[ERROR]Error:timeout:{“cmd”“write”,“model”:“ctrl_neutrall”,"sid":"xxxxxxxxx","date":"{"channel_0":"off"","key":"xxxxxxx"}"},编辑config去掉伴侣后mi-aqara正常
分桥运行2个插件,伴侣插件桥未启动时mi-aqara相应正常,伴侣桥启动后mi-aqara设备响应,但是无反馈,设备总菊花,用siri开灯,实际灯已经打开,但siri反馈无响应
安装好抓包工具和miio后
开始进行抓包
使用米家app遥控空调
空调响应
返回抓包软件查看
只有简单的握手操作,并没有抓到响应的空调码
我哪个步骤做错了?
我的空调是科龙,再调整温度时不知道为啥会响两下子,然后就关机,再调温度就开机,循环往复,会是什么原因呢?
夏普1号:
"minTemp": "18",
"customize": {
"off":"010001186201311a0100AA5ACF1001212200088000F011",
"heat":{
"30": "010001186210311e1100AA5ACF100D312100088000F0F1",
"29": "010001186210311d1100AA5ACF100C312100088000F0E1",
"28": "010001186210311c1100AA5ACF100B312100088000F091",
"27": "010001186210311b1100AA5ACF100A312100088000F081",
"26": "010001186210311a1100AA5ACF1009312100088000F0B1",
"25": "01000118621031191100AA5ACF1008312100088000F0A1",
"24": "01000118621031181100AA5ACF1007312100088000F051",
"23": "01000118621031171100AA5ACF1006312100088000F041",
"22": "01000118621031161100AA5ACF1005312100088000F071",
"21": "01000118621031151100AA5ACF1004312100088000F061",
"20": "01000118621031141100AA5ACF1003312100088000F011",
"19": "01000118621031131100AA5ACF1002312100088000F001",
"18": "01000118621031121100AA5ACF1001312100088000F031",
"17": ""
},
"cool":{
"30": "010001186211311e1100AA5ACF100D312200088000F0C1",
"29": "010001186211311d1100AA5ACF100C312200088000F0D1",
"28": "010001186211311c1100AA5ACF100B312200088000F0A1",
"27": "010001186211311b1100AA5ACF100A312200088000F0B1",
"26": "010001186211311a1100AA5ACF1009312200088000F081",
"25": "01000118621131191100AA5ACF1008312200088000F091",
"24": "01000118621131181100AA5ACF1007312200088000F061",
"23": "01000118621131171100AA5ACF1006312200088000F071",
"22": "01000118621131161100AA5ACF1005312200088000F041",
"21": "01000118621131151100AA5ACF1004312200088000F051",
"20": "01000118621131141100AA5ACF1003312200088000F021",
"19": "01000118621131131100AA5ACF1002312200088000F031",
"18": "01000118621131121100AA5ACF1001312200088000F001",
"17": ""
}
}
海信1号:
"cool":{
"30": "010001171711201e1100830601C20000000000000C0000CF00020000000002",
"29": "010001171711201d1100830601B20000000000000C0000BF00020000000002",
"28": "010001171711201c1100830601A20000000000000C0000AF00020000000002",
"27": "010001171711201b1100830601920000000000000C00009F00020000000002",
"26": "010001171711201a1100830601820000000000000C00008F00020000000002",
"25": "01000117171120191100830601720000000000000C00007F00020000000002",
"24": "01000117171120181100830601620000000000000C00006F00020000000002",
"23": "01000117171120171100830601520000000000000C00005F00020000000002",
"22": "01000117171120161100830601420000000000000C00004F00020000000002",
"21": "01000117171120151100830601320000000000000C00003F00020000000002",
"20": "01000117171120141100830601220000000000000C00002F00020000000002",
"19": "01000117171120131100830601120000000000000C00001F00020000000002",
"18": "01000117171120121100830601020000000000000C00000F00020000000002"
}
志高空调(不清楚型号)
"customize": {
"off":"010000480801301e010000000020000000048020A569",
"heat":{
"30": "010000480810301e11000000002000020016808EA5EB",
"29": "010000480810301d11000000002000030016808DA5EB",
"28": "010000480810301c11000000002000030016808CA5EA",
"27": "010000480810301b11000000002000030016808BA5E9",
"26": "010000480810301a11000000002000030016808AA5E8",
"25": "0100004808103019110000000020000300168089A5E7",
"24": "0100004808103018110000000020000300168088A5E6",
"23": "0100004808103017110000000020000300168087A5E5",
"22": "0100004808103016110000000020000300168086A5E4",
"21": "0100004808103015110000000020000300168085A5E3",
"20": "0100004808103014110000000020000300168084A5E2",
"19": "0100004808103013110000000020000300168083A5E1",
"18": "0100004808103012110000000020000300168082A5E0",
"17": "0100004808103011110000000020000300168081A5DF"
},
"cool":{
"30": "010000480811301e01000000002000000016802EA589",
"29": "010000480811301d11000000002000030016802DA58B",
"28": "010000480811301c11000000002000030016802CA58A",
"27": "010000480811301b11000000002000030016802BA589",
"26": "010000480811301a11000000002000030016802AA588",
"25": "0100004808113019110000000020000300168029A587",
"24": "0100004808113018110000000020000300168028A586",
"23": "0100004808113017110000000020000300168027A585",
"22": "0100004808113016110000000020000300168026A584",
"21": "0100004808113015110000000020000300168025A583",
"20": "0100004808113014110000000020000300168024A582",
"19": "0100004808113013110000000020000300168023A581",
"18": "0100004808113012110000000020000300168022A580",
"17": "0100004808113011110000000020000300168021A57F"
}
}
网关型号: acpartner.v2
空调:格力,已经在米家app选择预设2
米家app所有操作都是正常的。
配置文件如下:
{
"accessories": [
{
"autoStart": "heat",
"deviceIp": "192.168.10.56",
"maxTemp": 30,
"minTemp": 16,
"name": "ac_zhu",
"type": "climate"
}
],
"devices": {
"192.168.10.56": "b64a013b69186b7ef12e4575be23c40c"
},
"platform": "XiaoMiAcPartner"
},
空调伴侣操作无响应,日志如下:
[2018-7-1 04:29:03] [XiaoMiAcPartner] [INIT]Accessory ac_zhu -> type: climate
[2018-7-1 04:29:03] [XiaoMiAcPartner] [INIT]Register complete
[2018-7-1 04:29:03] [XiaoMiAcPartner] Initializing platform accessory 'ac_zhu'...
Load homebridge-mi-acpartner.XiaoMiAcPartner
[2018-7-1 04:29:03] [XiaoMiAcPartner] [INFO]Device 192.168.10.56 -> Connected
[2018-7-1 04:29:44] [XiaoMiAcPartner] [ac_zhu]Send code failed! Error: Call to device timed out
[2018-7-1 04:29:48] [XiaoMiAcPartner] [ac_zhu]Sync failed! Error: Call to device timed out
[2018-7-1 04:29:56] [XiaoMiAcPartner] [ac_zhu]Send code failed! Error: Call to device timed out
[2018-7-1 04:29:57] [XiaoMiAcPartner] [ac_zhu]Sync failed! Error: Call to device timed out
[2018-7-1 04:30:09] [XiaoMiAcPartner] [ac_zhu]Send code failed! Error: Call to device timed out
[2018-7-1 04:30:09] [XiaoMiAcPartner] [ac_zhu]Sync failed! Error: Call to device timed out
[2018-7-1 04:30:21] [XiaoMiAcPartner] [ac_zhu]Sync failed! Error: Call to device timed out
[2018-7-1 04:30:53] [XiaoMiAcPartner] [ac_zhu]Sync failed! Error: Call to device timed out
"off": "010000258701201c01000220E004000000060220E00400302080AF00000660000080000671",
"on": "010000258711201c01000220E004000000060220E004003138807F0000066000008000065A",
"auto": "010000258712301111000220E004000000060220E0040001E280A1000006600000800006F6",
"cool": {
"30": "010000258711201e11000220E004000000060220E00400313C807F0000066000008000065E",
"29": "010000258711201d11000220E004000000060220E00400313A807F0000066000008000065C",
"28": "010000258711201c01000220E004000000060220E004003138807F0000066000008000065A",
"27": "010000258711201b11000220E004000000060220E004003136807F00000660000080000658",
"26": "010000258711201a11000220E004000000060220E004003134807F00000660000080000656",
"25": "010000258711201911000220E004000000060220E004003132807F00000660000080000654",
"24": "010000258711201811000220E004000000060220E004003130807F00000660000080000652",
"23": "010000258711201711000220E004000000060220E00400312E807F00000660000080000650",
"22": "010000258711201611000220E004000000060220E00400312C807F0000066000008000064E",
"21": "010000258711201511000220E004000000060220E00400312A807F0000066000008000064C",
"20": "010000258711201411000220E004000000060220E004003128807F0000066000008000064A",
"19": "010000258711201311000220E004000000060220E004003126807F00000660000080000648",
"18": "010000258711201211000220E004000000060220E004003124807F00000660000080000646",
"17": "010000258711201111000220E004000000060220E004003122807F00000660000080000644"
Hello,
thanks for the plugin !
I just want to change my LED light IR color so I want the red color on ON and the white color on OFF.
It works in the Mi home app with customize button.
I have learn the On/Off with the learn button everything is OK, but in the Home app it doesn't look like it's sending the IR Code...
Here is my config part of ac partner :
{
"platform": "XiaoMiAcPartner",
"ip": "192.168.01.80",
"token": "0973d7770664d95e621318c9dbeec8e0",
"accessories":[{
"name": "LED",
"type": "switch",
"data": {
"on": "FE000000000000000000000000080024224C0035003F00AE00E901CB03890F56138854000100010101010102020202020202020101010202010201020202010102010206530745",
"off": "FE000000000000000000000000080026224E003900AB00E901C6038C0F51138825B24300000000000000000101010101010101000001000000010001010001010100010542074206DE"
}
}
]
climate 下操作一切正常,改成 heaterCooler 后任何操作都没有反馈
美的方案3
设备是lumi.acpartner.v3.,空调日立预设1。以下为错误信息:
[2018-7-12 22:17:14] [XiaoMiAcPartner] [DEBUG]Sending AC code: 010001123210001b00
[2018-7-12 22:17:14] [MiAqaraPlatform] [DEBUG][Revc]{"cmd":"report","model":"acpartner.v3","sid":"7811dcb2a10c","params":[{"ac_state":268442369},{"ac_power":1},{"illumination":35}]}
[2018-7-12 22:17:14] [XiaoMiAcPartner] [Ac Partner]Send code failed! Error: (null)
看readme中说可适配大多数预设1,鉴于v3太奇葩了,miio和类似mi-aqara-homebridge都有问题,附上错误信息求证是否需要自己抓包,另外问下mac下用什么模拟器比较好,试过genymotion,老是闪退,万分无奈。
用插件的默认设置,控制制冷制热模式错乱了,但是米家app中使用预设1却是正确的
"accessories": [
{
"name": "AC Partner",
"type": "climate",
"maxTemp": 28,
"minTemp": 18,
"autoStart": "heat",
"sensorSid": "lumi.158d0001635d82"
}
]
[2018-3-8 17:54:59] [XiaoMiAcPartner] Partner state----------------------
[2018-3-8 17:54:59] [XiaoMiAcPartner] Model -> 0100010727
[2018-3-8 17:54:59] [XiaoMiAcPartner] Active -> 0
[2018-3-8 17:54:59] [XiaoMiAcPartner] Mode -> 2
[2018-3-8 17:54:59] [XiaoMiAcPartner] Temperature -> 28
[2018-3-8 17:54:59] [XiaoMiAcPartner] RotationSpeed -> 3
[2018-3-8 17:54:59] [XiaoMiAcPartner] SwingMode -> 1
[2018-3-8 17:54:59] [XiaoMiAcPartner] LED -> 0
[2018-3-8 17:54:59] [XiaoMiAcPartner] -----------------------------------
还没有买小米空调伴侣,但因为这代空调伴侣没后开发局域网协议,早些时候无法接入Homekit,现在逛到这边发现已经能接入了,所有咨询下这里大神,目前接入后空调伴侣下挂着的其他子配件能否能被Homekit识别出来并且正常使用?特别是0.4.0修改为platform后感觉有戏。如果可以,就去买一个空调伴侣玩玩
hello!
In the section of adding IR commands instruction and an example of a configuration file, the values FE018254234ON and FE019205313OFF are indicated. Where can they be found?
如何能在homekit中定义扫风和风量呢?谢谢
关于自定义ir,能不能给一个已经配置好的config文件看看
格力空调自动模式下无法更改温度
在苹果的展示机上看空调控件,点击auto后,温度调节会变成调整温度区间,现在插件点击auto只是设置单一温度,可否增加此功能?
支持了不?应该如何定义呢?谢谢。
非常感谢你的插件,目前有个bug,自定义空调码(空调码很长)的情况下调节温度会导致无响应,关闭同步功能后正常,麻烦大神修改下子。
我按照Yinhang的代码配置了空调伴侣
但是始终无法发现其他设备
不知道Owner的空调伴侣可以作为网关可以正常使用吗
家中日立RA-08MF(本身是沒有搖控)未能匹配第一代空调伴侣,手機app有抓到空调伴侣,但沒有辦法匹配,請求指教怎樣自行匹配該冷氣?
謝謝!
我的 pi , 接过美的的空调(用的预设一), 最近换了地方现在要接海尔的空调(非预设一), 海尔的无法控制, 现象是米家会随着 home 的改变而改变, 但是空调不受到控制
请问3代(升级版)的token怎么获取?在米家App里找了很久都没找到
Hi,
thanks for your efforts. I'm using this plugin and really happy :)
But it has 2 issues, as for me:
Breaker
.Breaker
works in a strange way with Siri =>Hey, Siri. Switch on light
and Siri does it.Hey, Siri. Switch on light
and Siri switches off.格力空调,使用heaterCooler,homekit控制无效果。
在Home上打开制冷,空调伴侣并未发送红外指令给空调。Log如下:
Tue, 26 Jun 2018 13:33:21 GMT EventedHTTPServer [::ffff:192.168.31.78] HTTP request: /characteristics?id=2.10
Tue, 26 Jun 2018 13:33:21 GMT HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /characteristics?id=2.10
Tue, 26 Jun 2018 13:33:21 GMT Accessory [Homebridge] Getting value for Characteristic "Active"
Tue, 26 Jun 2018 13:33:21 GMT Accessory [Homebridge] Got Characteristic "Active" value: 0
Tue, 26 Jun 2018 13:33:21 GMT EventedHTTPServer [::ffff:192.168.31.78] HTTP Response is finished
Tue, 26 Jun 2018 13:33:21 GMT EventedHTTPServer [::ffff:192.168.31.78] HTTP request: /characteristics
Tue, 26 Jun 2018 13:33:21 GMT HAPServer [CC:22:3D:E3:CE:30] HAP Request: PUT /characteristics
Tue, 26 Jun 2018 13:33:21 GMT Accessory [Homebridge] Processing characteristic set: [{"aid":2,"iid":10,"value":1}]
Tue, 26 Jun 2018 13:33:21 GMT Accessory [Homebridge] Setting Characteristic "Active" to value 1
Tue, 26 Jun 2018 13:33:21 GMT miio.device.[192.168.31.70] -> Handshake
Tue, 26 Jun 2018 13:33:21 GMT miio.packet -> <Buffer 21 31 00 20 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff>
Tue, 26 Jun 2018 13:33:21 GMT miio.packet <- <Buffer 21 31 00 20 00 00 00 00 04 fe ed 77 00 00 1a 57 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>
Tue, 26 Jun 2018 13:33:21 GMT miio.device.[192.168.31.70] <- Handshake reply: <Buffer 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00>
Tue, 26 Jun 2018 13:33:21 GMT miio.device.[192.168.31.70] -> (5) {"id":1,"method":"send_cmd","params":["010000007711311800"]}
Tue, 26 Jun 2018 13:33:21 GMT miio.packet -> <Buffer 21 31 00 60 00 00 00 00 04 fe ed 77 00 00 1a 57 f8 63 33 40 9f d9 c5 16 19 20 e1 64 ac ac a5 d4>
Tue, 26 Jun 2018 13:33:22 GMT miio.packet <- <Buffer 21 31 00 50 00 00 00 00 04 fe ed 77 00 00 1a 57 09 ff d1 73 99 ce e8 32 36 2a 04 d7 ae 7a e0 af>
Tue, 26 Jun 2018 13:33:22 GMT miio.device.[192.168.31.70] <- Message: {"error":{"code":-1,"message":"(null)"},"id":1}
[6/26/2018, 1:33:22 PM] [XiaoMiAcPartner] [Air Conditioner]Send code failed! Error: (null)
Tue, 26 Jun 2018 13:33:22 GMT EventedHTTPServer [::ffff:192.168.31.78] Muting event '2.10' notification for this connection since it originated here.
Tue, 26 Jun 2018 13:33:22 GMT EventedHTTPServer [::ffff:192.168.31.78] HTTP Response is finished
之前配置了 climate 发现没有风速,还比较需要于是改成了 heaterCooler,然后用 Siri 想控制温度发现是 “找不到有关设备”,当然 Home app 是可以调整的于是猜测 heaterCooler 并不是注册的空调这种类型,不知道实际上是什么,有没有办法在 heaterCooler 下 Siri 控制温度?
改成 climate 发现果然可以用 Siri 调温度了,很不错的插件,作者辛苦
填入自定义空调码,用-D运行查看发现任何命令发出去码都是OFF状态的码.
"name": "客厅空调",
"type": "climate",
"syncInterval": 3000,
"sensorSid": "lumi.158d000208fb7e",
"deviceIp": "192.168.0.117",
"maxTemp": "30",
"minTemp": "17",
"customize": {
"off": "01000093770130190100C340E000A000200000000005A8",
"on": "",
"auto": "01000093771230191100C388E000A000000000200000EB",
"heat":{
"30": "",
"29": "",
"17": ""
},
"cool":{
"30": "010000937710001E1100C3B0E000A00000000020000013",
"29": "010000937711301D1100C3A8E000A0000000002000000B",
"28": "010000937711301C1100C3A0E000A00000000020000003",
"27": "010000937711301B1100C398E000A000000000200000FB",
"26": "010000937711301A1100C390E000A000000000200000F3",
"25": "01000093771130191100C388E000A000000000200000EB",
"24": "01000093771130181100C380E000A000000000200000E3",
"23": "01000093771130171100C378E000A000000000200000DB",
"22": "01000093771130161100C370E000A000000000200000D3",
"21": "01000093771130151100C368E000A000000000200000CB",
"20": "01000093771130141100C360E000A000000000200000C3",
"19": "01000093771130131100C358E000A000000000200000BB",
"18": "01000093771130121100C350E000A000200000200000D3",
"17": "01000093771130111100C348E000A000000000200001AC"
}
}
Is the ac partner2 possible to work like a smart power outlet that work same as the zigbee power outlet?
小米空调伴侣2 可以像zigbee電源插座一樣只控制電源開關嗎?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.