syssi / xiaomi_airconditioningcompanion

Xiaomi Mi and Aqara Air Conditioning Companion integration for Home Assistant
Apache License 2.0
394 stars 93 forks source link

Not working!! it can only to turn off #127

Open mcapmari opened 3 years ago

mcapmari commented 3 years ago

Can you explain how to get it to work? How to setup Air conditioner model? or to set custom IR code for every commands?

I see here a lot of issues without answer...

fendyz commented 3 years ago

same here. been using for almost a year. since febuary i get the same problem. other than turn off, nothing else work. power meter still work without problem, i tried reusing mi home app, and it works, and because of that i need new token. input new token in configuration.yaml and the problem still there. fyi using custom receive and transmit call services works. now i used dosens of buttons to call services, to transmit codes temperatur+fan, 1 by 1 for every temparature and fan speed (ex.: 22c+LowFan, 22c+MidFan, 22c+HighFan, etc. for every temperature set), which is ridiculous.

system: core-2021.4.5 os 5.12 hacs 1.11.3 integration 0.2.2

syssi commented 3 years ago

The problem is this custom components supports 3 different devices. Each device provides 3 different ways to control a big number of different AC remote controls. Please provide as much details about your setup as possible.

  1. Which AC partner model do you own?
  2. Which Air Condition do you try to control?
  3. It's possible to control the AC via the Mi Home App?
  4. How did you select at the Mi Home app the correct remote control? Which of the 3 different ways to setup the AC did you use?
  5. Did you enable the debug mode of the custom component? Please provide logs.
  6. If you control the AC via the Mi Home app. Does the custom component update some attributes/values properly?
imwyh commented 3 years ago

我也遇到此问题,只能关闭,不能进行其他操作。 The same problem here, only turn off, the other doesn't work. 1.型号:aqara空调伴侣升级版(应该是acpartner.v3) 1.Model: acpartner.v3, not sure. 2.我有两个空调,海尔的可以正常工作,小米的不能。 2.I used it control two AC and two companions. It works with haier AC but not can't work with xiaomi AC. 3.米家工作正常 3.It could be controled in Mi Home App, and also works in Xiaomi MIoT ( @https://github.com/ha0y/xiaomi_miot_raw) logs: 2021-07-09 22:27:05 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.5.163:54321 >>: {'id': 13, 'method': 'send_cmd', 'params': ['010000798814301DA1']} 2021-07-09 22:27:06 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.5.163:54321 (ts: 1970-01-01 16:11:12, id: 13) << {'result': ['ok'], 'id': 13} 2021-07-09 22:27:06 DEBUG (MainThread) [custom_components.xiaomi_miio_airconditioningcompanion.climate] Response received: ['ok'] 2021-07-09 22:27:06 DEBUG (SyncWorker_2) [miio.miioprotocol] 192.168.5.163:54321 >>: {'id': 14, 'method': 'get_model_and_state', 'params': []} 2021-07-09 22:27:06 DEBUG (SyncWorker_2) [miio.miioprotocol] 192.168.5.163:54321 (ts: 1970-01-01 16:11:12, id: 14) << {'result': ['010502570000798801', '0114301DA100007988', '2'], 'id': 14} 2021-07-09 22:27:06 DEBUG (MainThread) [custom_components.xiaomi_miio_airconditioningcompanion.climate] Got new state: <AirConditioningCompanionStatus air_condition_brand=599 air_condition_configuration=14301DA1 air_condition_model=b'\x01\x05\x02W\x00\x00y\x88\x01' air_condition_remote=31112 device_type=5 fan_speed=FanSpeed.Auto is_on=True led=False load_power=2 mode=OperationMode.Ventilate model_format=1 power=on power_socket=None state_format=1 swing_mode=SwingMode.On target_temperature=29> 2021-07-09 22:27:07 DEBUG (SyncWorker_3) [miio.miioprotocol] 192.168.5.163:54321 >>: {'id': 15, 'method': 'set_power', 'params': ['off']} 2021-07-09 22:27:07 DEBUG (SyncWorker_3) [miio.miioprotocol] 192.168.5.163:54321 (ts: 1970-01-01 16:11:14, id: 15) << {'result': ['ok'], 'id': 15} 2021-07-09 22:27:07 DEBUG (MainThread) [custom_components.xiaomi_miio_airconditioningcompanion.climate] Response received: ['ok'] 2021-07-09 22:27:07 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.5.163:54321 >>: {'id': 16, 'method': 'send_cmd', 'params': ['010000798804301DA1']} 2021-07-09 22:27:07 DEBUG (SyncWorker_5) [miio.miioprotocol] 192.168.5.163:54321 (ts: 1970-01-01 16:11:14, id: 16) << {'result': ['ok'], 'id': 16} 2021-07-09 22:27:07 DEBUG (MainThread) [custom_components.xiaomi_miio_airconditioningcompanion.climate] Response received: ['ok'] 2021-07-09 22:27:07 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.5.163:54321 >>: {'id': 17, 'method': 'get_model_and_state', 'params': []} 2021-07-09 22:27:08 DEBUG (SyncWorker_6) [miio.miioprotocol] 192.168.5.163:54321 (ts: 1970-01-01 16:11:14, id: 17) << {'result': ['010502570000798801', '0104301DA100007988', '2'], 'id': 17} 2021-07-09 22:27:08 DEBUG (MainThread) [custom_components.xiaomi_miio_airconditioningcompanion.climate] Got new state: <AirConditioningCompanionStatus air_condition_brand=599 air_condition_configuration=04301DA1 air_condition_model=b'\x01\x05\x02W\x00\x00y\x88\x01' air_condition_remote=31112 device_type=5 fan_speed=FanSpeed.Auto is_on=False led=False load_power=2 mode=OperationMode.Ventilate model_format=1 power=off power_socket=None state_format=1 swing_mode=SwingMode.On target_temperature=29>