midea-ac-py icon indicating copy to clipboard operation
midea-ac-py copied to clipboard

An error when change mode.

Open djlukas7 opened this issue 3 years ago • 4 comments

Describe the bug (描述一下问题) The error occurs when changing the state from off to heating / cooling. The only visible mode of operation is off. The other modes are invisible but I can select it and then I get the error visible on sreenshot. The air conditioner is Hyundai.

Screenshots / Logs / Pcap File(屏幕截图/日志/抓包文件) obraz

obraz

Versions (版本信息)

  • Home Assistant version: 2022.7.6
  • Midea msmart version: v0.2.3

djlukas7 avatar Jul 30 '22 20:07 djlukas7

This is due to mac-zhou/midea-msmart#90

You can manually downgrade the dependency before the breaking commit. Be sure to run this in the container and/or virtual-env that HA runs in.

pip install git+https://github.com/mac-zhou/midea-msmart@29522b209d9dcd1775d0d57f9d27214d65e339c9

mill1000 avatar Jul 30 '22 22:07 mill1000

The same error, version 0.2.4 was uploaded

obraz

djlukas7 avatar Jul 30 '22 23:07 djlukas7

Did you install the commit I recommended or the 0.2.4 tag?

Look at line 332 and 336 in appliance.py. They should read

return IntEnumHelper.names(self._supported_op_modes)

and

return IntEnumHelper.names(self._supported_swing_modes)

mill1000 avatar Jul 31 '22 00:07 mill1000

I edited this file manually and changed these lines. Everything works now. Thank you very much for help.

djlukas7 avatar Jul 31 '22 09:07 djlukas7