Closed Fetiz closed 7 years ago
Current only supports acpartner.v1, I don't have v2 device to test... You can follow this document to get token.
I tried as the doc. But it only show ??? in the bash. I get the token from mijia app. Doesn't work.
Sent from my Google Pixel using FastHub
@Fetiz I'm not sure if the acpartner.v2 is compatible with miio.
I have Ac Partner v2 and i got token from miso, but have issues after i have try to "on" conditioner
/usr/lib/node_modules/homebridge-mi-ac-partner/index.js:188 this.device.call('send_cmd', [code]); ^
TypeError: Cannot read property 'call' of undefined
at MiAcPartner.SendCmd (/usr/lib/node_modules/homebridge-mi-ac-partner/index.js:188:14)
at MiAcPartner.setTargetHeatingCoolingState (/usr/lib/node_modules/homebridge-mi-ac-partner/index.js:146:13)
at emitMany (events.js:127:13)
at Characteristic.TargetHeatingCoolingState.emit (events.js:204:7)
at Characteristic.TargetHeatingCoolingState.Characteristic.setValue (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:164:10)
at Bridge.
This is information from miio
Device ID: 55620188 Model info: Unknown Address: 10.0.1.206 Token: f6b1d1901c4832893bd481f7e06d3dac via auto-token Support: Unknown
miio --inspect 55620188 INFO Attempting to inspect 55620188
Device ID: 55620188 Model info: lumi.acpartner.v2 (generic) Address: 10.0.1.206 Token: f6b1d1901c4832893bd481f7e06d3dac via auto-token Support: At least basic
Firmware version: 1.4.1_139 Hardware version: MW300 MCU firmware version: 0143
Remote access (Mi Home App): UDP
It is posiible to make AC Partner work in homekit?
@takatos but the miio show the device up and i see the message "part support " in home app.
@Dengor1984 try sudo npm update -g homebridge-mi-ac-partner
to add acpartner.v2 support.
@takatost Ihave apdete to 1.1.2 but it not help...(
@Dengor1984 I received acpartner.v2 just now. I'm trying to compatible with it soon.
@takatost A HUGE thank you for a trying and a great work! If you need a betatester - i'm ready to help!)
@Dengor1984 My acpartner.v2 worked very fine.
Update to 1.1.3 and make a try. If some error showed up, please post here. I think you got a wrong token..
@takatost hello! I have update to v 1.1.3 and have no errors in homebridge and in homekit, but homekit don't on/off my conditioner in really! In home app it shows as on/off...
I will try to fresh install from backup before yours plugin and will you know!
@Dengor1984 Maybe your air conditioner cmd code is not compatible with mine.😕
@takatost i have a Cooper&Hunter air conditioner. How can i remoove stored token, with which command?
Because different air conditioner has different cmd code, it's hard work...
@Dengor1984 If you want to update the token of a device use the --update flag:
miio --update device-id --token token-as-hex
or reset your ac partner
https://github.com/aholstenson/miio/blob/master/docs/management.md#setting-the-token-of-a-device
@takatost I have reset my ac partner v2 and got new token, in homekit air conditioner shows and i can change themperature and mode, BUT in real, home app don't on/off my conditioner...( Maybe problem is in cmd code...
@takatost which manufacturer name of air conditioner you have?
@Dengor1984 Only two media air conditioner
@Dengor1984 Currently, Only Thermostat Service has "set target temperature" characteristic, but the Thermostat Service has no on/off characteristic
This is Thermostat characteristics: https://github.com/KhaosT/HAP-NodeJS/blob/master/lib/gen/HomeKitTypes.js#L3223
@takatost which brand of iar conditioner you have choose in settings of AC Companion?
@Dengor1984 I tested my Panasonic AC.
Unfortunately, It seems different AC has different control command.
My Midea AC's power on cmd is 018011111111301402
But Panasonic AC's power on cmd is 010000258701301801000220E004000000060220E00400302080AF00000660000080000671
It's a little harder for many people.
If I open the permission of custom cmd code in configs.
You must install the android simulator
and Mi Home App
.
Then use the wireshark
to create a capture of your AC partner cmd code and fill in config...
Sorry, but i don't have any android devices... Only Apple and MacOS
@takatost if i choose a Midea air conditioner in MiHome app the cmd command will be the same with yours?
@Dengor1984 Yes, but your AC maybe not working with the midea cmd.
@takatost my AC working with Midea settings in MiHome, but which number of preset do you set? It is from 1 to 28, when you do manual setting
@Dengor1984 I use the No.2 preset.
I'm using the Bluestacks
android simulator on Mac to create the capture.
@takatost My AC working on No 10 preset
And follow this doc to get your code: https://github.com/aholstenson/miio/blob/master/docs/protocol.md
Commands you should get: power on/off temp 16-30
Ok, i will try, thanks
I have the same problem
error logs:
Aug 07 02:50:54 raspberrypi homebridge[1352]: [8/7/2017, 2:50:54 AM] [Ac Partner] Device not exists. Aug 07 02:50:56 raspberrypi homebridge[1352]: [8/7/2017, 2:50:56 AM] [Ac Partner] Device not exists.
can't get the token.