LASER-Yi / homebridge-mi-acpartner

XiaoMi AC Partner plugins for HomeBridge(https://github.com/nfarina/homebridge).
MIT License
263 stars 36 forks source link

米家 App 中使用格力预设2,米家可以操控空调,但 acpartner 不能 #24

Open leavez opened 6 years ago

leavez commented 6 years ago
            "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] -----------------------------------
LASER-Yi commented 6 years ago

可以使用关机和自动模式功能吗,如果可以使用,就尝试多次发送温度调整命令,如果还是不行就临时降级一下。

changbinwang commented 6 years ago

同样问题,只能开机,其他无响应

leavez commented 6 years ago

自己抓了一份, 基本可用。

但单纯调节温度的时候,看 homebridge 的 log,并没有发出控制信号。

"customize": {
                        "off": "010001072701011901004000205002112000D04000207002000000A0",
                        "on": "010001072711011901001909205002102000F01909207002000010D0",
                        "auto": "010001072712311111000809205002102000E00809207002000000B0",
                        "heat":{
                            "30": "010001072710311e11000C0E205002102000700C0E20700200000040",
                            "29": "010001072710311d11000C0D205002102000600C0D20700200000030",
                            "28": "010001072710311c11000C0C205002102000500C0C20700200000020",
                            "27": "010001072710311b11000C0B205002102000400C0B20700200000010",
                            "26": "010001072710311a11000C0A205002102000300C0A20700200000000",
                            "25": "010001072710311911000C09205002102000200C09207002000000F0",
                            "24": "010001072710311811000C08205002102000100C08207002000000E0",
                            "23": "010001072710311711000C07205002102000000C07207002000000D0",
                            "22": "010001072710311611000C06205002102000F00C06207002000000C0",
                            "21": "010001072710311511000C05205002102000E00C05207002000000B0",
                            "20": "010001072710311411000C04205002102000D00C04207002000000A0",
                            "19": "010001072710311311000C03205002102000C00C0320700200000090",
                            "18": "010001072710311211000C02205002102000B00C0220700200000080",
                            "17": "010001072710311111000C01205002102000A00C0120700200000070"
                        },
                        "cool":{
                            "30": "010001072711311e1100090E20500210200040090E20700200000010",
                            "29": "010001072711311d1100090D20500210200030090D20700200000000",
                            "28": "010001072711311c1100090C20500210200020090C207002000000F0",
                            "27": "010001072711311b1100090B20500210200010090B207002000000E0",
                            "26": "010001072711311a1100090A20500210200000090A207002000000D0",
                            "25": "010001072711311911000909205002102000F00909207002000000C0",
                            "24": "010001072711311811000908205002102000E00908207002000000B0",
                            "23": "010001072711311711000907205002102000D00907207002000000A0",
                            "22": "010001072711311611000906205002102000C0090620700200000090",
                            "21": "010001072711311511000905205002102000B0090520700200000080",
                            "20": "010001072711311411000904205002102000A0090420700200000070",
                            "19": "01000107271131131100090320500210200090090320700200000060",
                            "18": "01000107271131121100090220500210200080090220700200000050",
                            "17": "01000107271131111100090120500210200070090120700200000040"
                        }