Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

now ac devices are detected, but don't work well #53

Closed
marcoahp opened this issue Apr 21, 2022 · 21 comments
Closed

now ac devices are detected, but don't work well #53

marcoahp opened this issue Apr 21, 2022 · 21 comments

Comments

@marcoahp
Copy link

marcoahp commented Apr 21, 2022

The ac devices now are detected perfectly, great work!!! but they don't work well, the dry and heat functions are inverted and the power on status is missing.
I managed to get logs, the problem was tha I didn't have logger in configuration.yaml, now I have this:

logger:
default: critical
logs:
custom_components.midea_dehumidifier_lan: DEBUG
midea_beautiful: DEBUG

I'm using the last version 0.8.1

I send you the log:
2022-04-21 16:44:47 DEBUG (SyncWorker_2) [midea_beautiful.lan] Sending to 192.168.*****:6445 b'ZZ\x01\x11H\x00\x92\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7fu\xbdk>O\x8bv.\x84\x9cnW\x8de\x90\x03n\x9dCB\xa5\x0f\x1fV\x9e\xb8\xec\x91\x8e\x92\xe5' 2022-04-21 16:44:47 DEBUG (SyncWorker_2) [midea_beautiful.lan] Received from 192.168.*****:6445 b'\x83p\x00\xb8 \x0f\x04[ZZ\x01\x11\xa8\x00z\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00;\x02\x00\x00\x00"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbd\xcb\xea\xf9\x04\xe6F\x92\xf2t\xbcR\xce\xdf\xa7\te\x8eH*W_\x9f\x14\x93\x08SN\xc9\x8a\xf6\xb0Zo_\xf9\x88\x82\xb7\x86\x19\xc6|\x82\r\x18a\xa8\'\xa6\xc8\x00v+\x80\x94\x95\xb0\x86)\xd7\xeeQ\x9e\xf7\x15\x98\xd9\xb8Jk\x9c\xbc\x02\x94o\xd7d\x1d:\x1f\xca\x94T\x13\x03\x88LR\xe8\x80\xdd\xef\xc01\x90\xf3\x14C\xd1|:\xac\x03\xa7ef\x14\xae\x1d\xcaD\x1b\xe6\xd7\xaeh\xe3\x13\xb7h\xaf\\\xf68.F\x0e\xbb\xa0\xfc\xda\xf6N\x80\xb7\xc0\xb8d\xd4\x7f\x9c~?' 2022-04-21 16:44:47 DEBUG (SyncWorker_2) [midea_beautiful.lan] From 192.168.***** decrypted reply=b'\x8f\x01\xa8\xc0,\x19\x00\x00000000P0000000Q1A8407D9C3BAD0000\x0bnet_ac_3BAD\x00\x00\x00\x00\x01\x00\x00\x00\x04\x00\x00\x00\x00\x00\xac\x00\x00\x00\x00\x00\x00\x00\xa8@}\x9c;\xad\x06\x9f\xcd\x03\x00\x08\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' 2022-04-21 16:44:47 DEBUG (SyncWorker_2) [midea_beautiful.appliance] Creating AirConditionerAppliance 3738339534**** 2022-04-21 16:44:47 DEBUG (SyncWorker_2) [midea_beautiful.lan] Descriptor data '{id=3738339534****, address=192.168.*****, port=6444, version=3, name=37383395344955, online=True, type=0xac, subtype=0, flags=0, extra=1, reserved=0, mac=a8407d9*****, ssid=net_ac_3BAD, udp_version=4000000, protocol=069fcd, version=3.0.8, sn=000000P0000000Q1A8407D9C********, state=[Air conditioner]{id=3738339534****, type=0xac mode=0, running=False, turbo=False, fan_speed=40, turbo_fan=False, purifier=False, dryer=False, target_temperature=0, indoor_temperature=2.2250738585072014e-308, outdoor_temperature=2.2250738585072014e-308, vertical_swing=False horizontal_swing=False comfort_sleep=False, error_code=0, prompt=False, supports={}}}' 2022-04-21 16:44:47 DEBUG (SyncWorker_2) [midea_beautiful.lan] Appliance sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3 2022-04-21 16:44:47 DEBUG (SyncWorker_2) [midea_beautiful.lan] Attempting new connection to sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3 2022-04-21 16:44:47 DEBUG (SyncWorker_2) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3, message=b'\x83p\x00@ \x00\x00\x00\xdf\xd8\xdf(\xdb\xbfNqN8\xad\x10X\xb0r(\xb4\xf9\x92\xd8\xf1s2\xa0\x82k\x02\r\xce\x1d\xb9\xd9\xa2\xd7>\x9e\xf6=\xc8\xfe\xf0\xaa\x01!uQ\x8d\x14\xf6/p\xb8"\xe2\xa2\x96\xe56p\x03?\x11\xfb\x92' 2022-04-21 16:44:48 DEBUG (SyncWorker_2) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3, message=b'\x83p\x00@ \x01\x00\x00v\xcc\x18\xac\xd3\x13\xe9Q \x95\x98a\xfe\x17\xf0\x0b\xa1.\xa5\x9d>\x11\xed\xd1\x00<\x1aG7(6W\x8e\xdb\xb7|\x80\xbbU\xe7C\xa7\x9b\x9a\rn\xaf\xc3\x91\x05\xfcW\x99\xcfB TK\xb5 \xa1T\xc9\xfc' 2022-04-21 16:44:48 DEBUG (SyncWorker_2) [midea_beautiful.lan] Got TCP key for: sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3 2022-04-21 16:44:48 DEBUG (SyncWorker_2) [midea_beautiful.lan] Getting more capabilities 2022-04-21 16:44:48 DEBUG (SyncWorker_2) [midea_beautiful.lan] Packet for: sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3 data=b'ZZ\x01\x11H\x00 \x00\x00\x00\x00\x000,\x10\x15\x04\x16\x14;\x02\x00\x00\x00"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00<\xe2i}\x05P\xa3\xd6d\xfb~\xe1\xb1\xd2\xffd9/\xddu\x17\xff\x0cT\xd1\x88\xddf\x88AR\x1f'
2022-04-21 16:44:49 DEBUG (SyncWorker_2) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3, message=b'\x83p\x00n fP\xe8\x86\xa7\xe8[\xd0\x1e\xb3C\x14j\x18T!\xd2\xb4\x19X\x19e\xea\x8a\xbf"+$\xc5Y\xcb3$&\x94\xa41\xc2\x9dk~\xd3Dl\xf0\xa8T\xeb\x9a\xea\xc8\x1d\x14u\xd9\xf1\xf2A\xfb\x7fS\xadw$'6\x81\xe0d\x7f\xfdL\xa9\x86\xc0p\xf2\x1a\xe7\x0c\xd1"R\x1b\x90\x9d\\\x03\x15\xcc5^\xa4mUu=\x90\xd3\xf7\xce\x83\xf1\x17\xd9\'\xc2uM\x96,\x00' 2022-04-21 16:44:49 DEBUG (SyncWorker_2) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3, message=b'\x83p\x00\x8e c\ty\xdc+\x0c\xce\xae<\xc3\xcff\xcf\x16e\xb7\xfc\xbe%g\x0c^+\xb0y9\xa0R\x08\x18Y\r\xc3\x93\xda\xaa\x1e\x0c\x81E\xff2N_\x8f;l\x98r,\xa0\x1b\xac*\xaa\x19\xed\x1c4|{\x02\x7f*\x169\x878\xc2\x96.h\xdf\xa4-J\x8b\xa5\xbd\xa3\x16Z\x97\xd7\xf1\xfd\x92N\x9d%\xa2Db\x18\xb0\x10_\x1d\xb9\r\xa5\xd9W\xec\xcf\xad\x08\x19\xddQ=\x8b\xd0\xfb\xd5\xd1\x17\x0f*\xcd\xae\xed\x15#a\x11\xa8\x94%t\xe2)\xb9\xc5\xcd\n7%\xa3A?C\xab\xc7'
2022-04-21 16:44:49 DEBUG (SyncWorker_2) [midea_beautiful.lan] Got 1 response(s) from: sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3
2022-04-21 16:44:49 DEBUG (SyncWorker_2) [midea_beautiful.appliance] Got capability b'\x12\x02'
2022-04-21 16:44:49 DEBUG (SyncWorker_2) [midea_beautiful.appliance] Got capability b'\x13\x02'
2022-04-21 16:44:49 DEBUG (SyncWorker_2) [midea_beautiful.appliance] Got capability b'\x14\x02'
2022-04-21 16:44:49 DEBUG (SyncWorker_2) [midea_beautiful.appliance] Got capability b'\x15\x02'
2022-04-21 16:44:49 DEBUG (SyncWorker_2) [midea_beautiful.appliance] Got capability b'\x16\x02'
2022-04-21 16:44:49 DEBUG (SyncWorker_2) [midea_beautiful.appliance] Got capability b'\x17\x02'
2022-04-21 16:44:49 WARNING (SyncWorker_2) [midea_beautiful.appliance] Midea B5 unknown property=b'\x1a\x02'
2022-04-21 16:44:49 DEBUG (SyncWorker_2) [midea_beautiful.lan] Getting more capabilities
2022-04-21 16:44:49 DEBUG (SyncWorker_2) [midea_beautiful.lan] Packet for: sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3 data=b'ZZ\x01\x11H\x00 \x00\x00\x00\x00\x00:1,\x10\x15\x04\x16\x14;\x02\x00\x00\x00"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xeb7\xbbe\xdalO\xff\x96!\xa6\xad\x11\x1d|\x04\x828\xde\x9d\xb9\x85^\x9d\x98\x13\xa2\x10\xd2\x8e\xac\x16'
2022-04-21 16:44:49 DEBUG (SyncWorker_2) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3, message=b'\x83p\x00n f\x1dT\xa7[A\xc2\x88\xdaW\xd8\xabbm\x00\tt\x03\xfac\xa2QQ\xb5:\xfc\x067j\xc2\x9c\xb3\n2=95\xb0v\xc60\x9e\x83\x91E\t\x8b&\xe0\x81\t\xce\xe2\x9f<\xf7\xc6 \x04c[D&\xf8\x9e\xc3e!)\x80U\x89Dm\xbb\n\xf4n3<\xcb+(R\x9dLe\x06?\!\xaf\xc6lQP\x0f\xb6s2M\xac\xcf\x99.F\xa3\rd\x96w\xeb'
2022-04-21 16:44:51 DEBUG (SyncWorker_2) [midea_beautiful.lan] Timeout receiving from sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3: timed out
2022-04-21 16:44:53 DEBUG (SyncWorker_2) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3, message=b'\x83p\x00n fy\xe5\xf4\xf5\x1a1FXGO\x86\x10U\x14\x9c\x7f\xb1\x95J\xb8\x98H{\x15\xa1\x1c;\x9c=o\x1aG\x1f<\x955\x1f.\x1e\xf8\xc13\xac\xfff\xce$\xfc&\xdaC\x82Wp\x7f\xf8+c-\x0e\xcf\xbc\x8d}\x8dE\xbaS\x11S\xda\xce\xa4\xf2\x06A\xfd\xda\xda{\x94p\xed-\xd7\x80.\xb9n\xacF\x0f~\xfe\xef\xec\xaa0\xb9z,H\xd7\x11\xd7\r\x9aR\x98\xac\xf1'
2022-04-21 16:44:54 DEBUG (SyncWorker_2) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D9C******** id=3738339534
*** address=192.168.***** version=3, message=b'\x83p\x00\x8e c\xf7\tF\xd6\xf8L\xd9B\xc7F\x85\xbck@\xc1\xa3-9c-\x8a,\xcfIH\x1e\x07\xec\xf9\xe2&\xe57\x9f\x12\xe55#\xb6tX\xe8\xfe\x96k\xd59\xd7\xcfpM\xbc\xe3P\xdf\x0cf\xf3\xde\xfc\xfa\x9a\xe5m\n\x8a\xfe\x95\x8bdl\x99N\xd4\xb6\xed\xb2\xf9.5\x00\xcb\\x9b\xe4\xa1t\x8c{\x82\xc9\xe2\xf9\x12\r\x1c\xe0v\x144\xd2\xa6\x89\xc9\n\x84\x02\xd4p\x81V-\x04\xc8\x01\x0e\x0e\x00\xd8\xe1\xc6^VV:\x1dd\xb0\x82
\xe6\xce\xbf\xa41\xed\x1b\xac\xc7\x87\x81l\xc4J'
2022-04-21 16:44:54 DEBUG (SyncWorker_2) [midea_beautiful.lan] Got 1 response(s) from: sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3
2022-04-21 16:44:54 DEBUG (SyncWorker_2) [midea_beautiful.appliance] Got capability b'\x12\x02'
2022-04-21 16:44:54 DEBUG (SyncWorker_2) [midea_beautiful.appliance] Got capability b'\x13\x02'
2022-04-21 16:44:54 DEBUG (SyncWorker_2) [midea_beautiful.appliance] Got capability b'\x14\x02'
2022-04-21 16:44:54 DEBUG (SyncWorker_2) [midea_beautiful.appliance] Got capability b'\x15\x02'
2022-04-21 16:44:54 DEBUG (SyncWorker_2) [midea_beautiful.appliance] Got capability b'\x16\x02'
2022-04-21 16:44:54 DEBUG (SyncWorker_2) [midea_beautiful.appliance] Got capability b'\x17\x02'
2022-04-21 16:44:54 WARNING (SyncWorker_2) [midea_beautiful.appliance] Midea B5 unknown property=b'\x1a\x02'
2022-04-21 16:44:54 DEBUG (SyncWorker_2) [midea_beautiful.lan] Packet for: sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3 data=b'ZZ\x01\x11h\x00 \x00\x00\x00\x00\x00/6,\x10\x15\x04\x16\x14;\x02\x00\x00\x00"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00k\x00\nv\xe2~\xed,6G\xe5}\x86\x02\xdf\x8b\xd7V\xdf\x085\xcdDV\x0e\xda4\xb9\x89-\x877N\xc3\x92\x13\xbaALKqE\xc8< \xf0\x7f\x8d\xc9o\x87\x8f5\x1a\x90\xd4G\x8cd\xef,\x19\xf4' 2022-04-21 16:44:54 DEBUG (SyncWorker_2) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3, message=b'\x83p\x00\x8e f\xd0\xabTh\xb9\x1e/d|\x80\x1e\xe5v\xf8\xf5\x8b\xb7c;\x89\xce/\xa6\xdeQ\xe8>\xe5\xba\xd7\xef\xa1#\xbe:!\x85MC5u\xb67\xa4$\xe5\x99\x1d\xd7\xe7\xf6\xae}b\x9e*\xa2\x07S\xae1by\x08c\xc0\xef\xff\xc7\xdb\r\xbcA\xdd\x12d\xe2<\x04"\x90~]8*\xce\xabDX6\xfc\xba\xa9\x87\xca\xb4u\x05\xb7\xcc\xaa\x9a\x12\xf0\xfc\xc8\xf5\x15|(\xe6\xff\x10\x81\xcf\xc1\xaa\x15\xa1\xcb'\xbe\x9cqd\x85\xc2\xbf?\x92\x9fW\x12D\xe8\xbdf+y=\x8d\xb4W'
2022-04-21 16:44:56 DEBUG (SyncWorker_2) [midea_beautiful.lan] Timeout receiving from sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3: timed out
2022-04-21 16:44:58 DEBUG (SyncWorker_2) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3, message=b'\x83p\x00\x8e f[fR\xa9\t\xa48=\x82\xd0\x88\x93\xe7F\xae\xe2\x1c\x19\xd3~\x88\x11\xbe\xdeP\xac1U\xb5\x9b\xfe\xbb\x92\xea\x85\xc1\x12l\xe0\x9a\xd9*Aac7j\'\x8a\xb0r7c\x17\xd5\xf5\x90\xf8\xf9\xc1\t\xf6_\xf5\x0b\xa0\x88\xc8y\xaa\x82L\\\x899*7\x8b?\xd0\x14\xfev#H\xda\xc9j\xa9\xc2x\xff\x97 Q\x86\x9dY\x1b\xc7\xde\x11.\xf7\xb5\xb7\xf0\x10\xb7\x1a\x87\xc0\xcbiW\x1c\x80\xf6|\xd4\xad=;U\xbdxXB\r\x02\x04,\xf3\x1a\xde\xc0",\x98q?\x8d\xa9' 2022-04-21 16:44:59 DEBUG (SyncWorker_2) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3, message=b'\x83p\x00\x8e c\xe3W\xaa\x9a\xebm\xb8\xb4@hr\xf9\xb5\xec\xa1\x12r\x14\xaa\x12\xa4\xf9^#Y\xa1\x893\x94\xf5\xc4\xd4\xdc\xba\x9f}\xfes\xe6\xea\x90(l\x84\x80\x93oe[a\xf3\x91\xa9\xc5\xaeT\x9f\x0c9?\xab\xa0\xcf$75\xb8b\xfeb\xd0\x08\x02\xc8v\xe4v_D\xac7\x97\x9dQ\xc5\xb9V"\xf5\x93\xdb\xa5\x08\x9a\xdd\xbe\x069\x8f\x06}\x0f\xb1\xc8\x85\x8b\xa08\xd0\x82*\x15jE\xb9\xb1~\xc8,\xea%\x04\xee\x1e\xb9\xc09\xb4\x07\xbe\x14\x9d!\xb8\x1b\xd7\xd2k\xc3\x91\xc7.\x17\xe0' 2022-04-21 16:44:59 DEBUG (SyncWorker_2) [midea_beautiful.lan] Got 1 response(s) from: sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3 2022-04-21 16:44:59 DEBUG (SyncWorker_2) [midea_beautiful.lan] refresh sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3 responses=[b'\xc0\x01\x86(\x7f\x7f\x000\x80\x00\x00^O\x00\x00\x00\x00\x00\x00\x00\x00\x00V\xd66'] 2022-04-21 16:44:59 DEBUG (SyncWorker_2) [midea_beautiful.appliance] AirConditionerResponse {'run_status': True, 'i_mode': False, 'timing_mode': False, 'quick_check': False, 'appliance_error': False, 'mode': 4, 'target_temperature': 22.0, 'fan_speed': 40, 'on_timer_set': False, 'on_timer_hours': 31, 'on_timer_minutes': 45, 'off_timer_set': False, 'off_timer_hours': 31, 'off_timer_minutes': 45, 'vertical_swing': 0, 'horizontal_swing': 0, 'comfort_sleep_value': 0, 'power_saving': False, 'low_frequency_fan': False, 'turbo_fan': False, 'feel_own': True, 'comfort_sleep': False, 'natural_wind': False, 'eco': False, 'purifier': False, 'dryer': False, 'ptc': 0, 'aux_heat': False, 'turbo': False, 'fahrenheit': False, 'prevent_freezing': False, 'pmv': -3.5, 'outdoor_temperature': 14.5, 'indoor_temperature': 22.0, 'err_code': 0, 'humidity': 0} 2022-04-21 16:44:59 DEBUG (SyncWorker_2) [midea_beautiful.lan] Identified appliance: {id=3738339534****, address=192.168.*****, port=6444, version=3, name=37383395344955, online=True, type=0xac, subtype=0, flags=0, extra=1, reserved=0, mac=a8407d9*****, ssid=net_ac_3BAD, udp_version=4000000, protocol=069fcd, version=3.0.8, sn=000000P0000000Q1A8407D9C********, state=[Air conditioner]{id=3738339534****, type=0xac mode=4, running=True, turbo=False, fan_speed=40, turbo_fan=False, purifier=False, dryer=False, target_temperature=22.0, indoor_temperature=22.0, outdoor_temperature=14.5, vertical_swing=False horizontal_swing=False comfort_sleep=False, error_code=0, prompt=False, supports={'eco': 1, 'heat_8': 1, 'mode': 1, 'fan_swing': 1, 'electricity': 1, 'filter_reminder': 0}}} 2022-04-21 16:44:59 DEBUG (MainThread) [custom_components.midea_dehumidifier_lan.hub] Created coordinator for {'api_version': 3, 'id': '3738339534****', 'ip_address': '192.168.1.143', 'name': 'Buhardilla', 'token_key': '****************************************************************', 'token': '********************************************************************************************************************************', 'type': '0xac', 'unique_id': '000000P0000000Q1A8407D9C********', 'discovery': 'LAN'} 2022-04-21 16:44:59 DEBUG (SyncWorker_0) [midea_beautiful.lan] Packet for: sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3 data=b'ZZ\x01\x11h\x00 \x00\x00\x00\x00\x00\t;,\x10\x15\x04\x16\x14;\x02\x00\x00\x00"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00k\x00\nv\xe2~\xed,6G\xe5}\x86\x02\xdf\x8b\x9d\xf1\xee\xf7"\xcf\x96\xc5\x19\xff\x0f,\xb2U\x12\x03\xfe\xb6=\x0c\x9f\xcb\xd0y\xdf"\t\x1f\x8e\x81a<\xeb\xcd\xf0O\xcc\xa6\xe4r:66\xe7\x03nbO' 2022-04-21 16:44:59 DEBUG (SyncWorker_0) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3, message=b'\x83p\x00\x8e f\x8d5g\x9e\xc2\xf0\x8a\xe1\xaeLJ\xcf\xaa\xf7\xb1GXNc\xf0\x03\x04$\xb3\x11\x9d\x8c\xb4\x85K\xe9W\xfc\xc2\x8d\x8e\xd4\x93\x970\xe6f#.\x8e\xb8C\xb5tp\x90\x08\xf4\xce\xb7\xfek~|,b\xc0\xa3\xe5\xc3I\xdb\x83\xe9\xe5\xfc\xf8k,+\x86C\xcb\xc0W \x91\xcc#A\xc8[\xc1\xf6\x04\x04\xed\x9a\xb8Y\x16\xcb\x9c\x1c\x9e\xe8\xd2N\xf6\xac_\x1c(\x86\x01\xf6SQ\xa4\x85=\\xe8m\x82AV\xb3\xb3\xe4DT\xba\xa5!\x08-\xa0|\n\xcbV\xe90\x93\x1c' 2022-04-21 16:45:01 DEBUG (SyncWorker_0) [midea_beautiful.lan] Timeout receiving from sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3: timed out 2022-04-21 16:45:03 DEBUG (SyncWorker_0) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3, message=b'\x83p\x00\x8e f\x04C\xf8\xf0,\xdfV\rv\x9b\x06\xc4\x9f\xec\xfb\r5\xe7\xf6e\x8c\x97Y\xe9\t\rt\xb4>\xae\x0e=\xa4\xe1\x14S\xc3\xc9v\xa1\xf3\xcfHl\xe5\x1c~Q\xadz\xef\xd6\x9dt\xc9\x0b\xfbO4\xe0x\xc2\xaf%\xba\x7f\x7f\xce\xa5\x0f\x1fa\x98\x15ad\xb4\xc5\x04\xc3\x1dS\x02S\xbf\x80\x99B\xb8(<\xe6\xf6\x87\x1b\x8eD\xc2\x7f\x03\xf1\x81Qt\x1e\xaa\x83>\x93\x10\x17\x06\x9dH\xaf3\xb0\xa3\x12W\xa9\xb8\x9c~\xfb\xf7\xde\xf1BR\x85\xd1\xe7\x80\xd9\xbflM\xd4\x9d\x04\xcc'
2022-04-21 16:45:03 DEBUG (SyncWorker_0) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3, message=b'\x83p\x00\x8e c\x97\x9b\x9c0$v\x84\xd4V"\xb3\x0fd\x9e\xa5\x02\xa0\xe3\x1ajJ\xfb\xe6\xfa\xad\x18\x9e\x00c\x0cD\xfd\x15\x1a\xc1\x19/]\xe0\xed\xcc#\xa8\r16'\x98\xdb\x06\x1c9\xeb\x9c\x9c\xd0\xd9\x15\xad\xea\xa5\xd1\x15WT\r \xc4\x12\x1e\xdc\x9fO\xd0\xe66E\xc5X(\x9a\xbcYc\\x06\x11\x8c\x17@\xe7\xd0\xcb~\x04\xed\xd6\x84\xe7n@\xca\x00'}j)-9\xcdV\xb6p\xa4\x04\xd9 P\xc5\xa80\x9d\x9d{\x16\x01g~\x85\xee\xd9\xbaj\xf4|\xda\xdd\xbf\xf7\x03\xbd[\x11\xf4'
2022-04-21 16:45:03 DEBUG (SyncWorker_0) [midea_beautiful.lan] Got 1 response(s) from: sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3
2022-04-21 16:45:03 DEBUG (SyncWorker_0) [midea_beautiful.lan] refresh sn=000000P0000000Q1A8407D9C******** id=3738339534**** address=192.168.***** version=3 responses=[b'\xc0\x01\x86(\x7f\x7f\x000\x80\x00\x00^O\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd7\x04\x87']
2022-04-21 16:45:03 DEBUG (SyncWorker_0) [midea_beautiful.appliance] AirConditionerResponse {'run_status': True, 'i_mode': False, 'timing_mode': False, 'quick_check': False, 'appliance_error': False, 'mode': 4, 'target_temperature': 22.0, 'fan_speed': 40, 'on_timer_set': False, 'on_timer_hours': 31, 'on_timer_minutes': 45, 'off_timer_set': False, 'off_timer_hours': 31, 'off_timer_minutes': 45, 'vertical_swing': 0, 'horizontal_swing': 0, 'comfort_sleep_value': 0, 'power_saving': False, 'low_frequency_fan': False, 'turbo_fan': False, 'feel_own': True, 'comfort_sleep': False, 'natural_wind': False, 'eco': False, 'purifier': False, 'dryer': False, 'ptc': 0, 'aux_heat': False, 'turbo': False, 'fahrenheit': False, 'prevent_freezing': False, 'pmv': -3.5, 'outdoor_temperature': 14.5, 'indoor_temperature': 22.0, 'err_code': 0, 'humidity': 0}
2022-04-21 16:45:03 DEBUG (MainThread) [custom_components.midea_dehumidifier_lan.appliance_coordinator] Finished fetching Buhardilla data in 4.775 seconds (success: True)
2022-04-21 16:45:03 DEBUG (SyncWorker_9) [midea_beautiful.lan] Sending to 192.168.:6445 b'ZZ\x01\x11H\x00\x92\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7fu\xbdk>O\x8bv.\x84\x9cnW\x8de\x90\x03n\x9dCB\xa5\x0f\x1fV\x9e\xb8\xec\x91\x8e\x92\xe5'
2022-04-21 16:45:03 DEBUG (SyncWorker_9) [midea_beautiful.lan] Received from 192.168.
:6445 b"\x83p\x00\xb8 \x0f\x04YZZ\x01\x11\xa8\x00z\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa6\r\x00\x00\x00'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa5lmB\xc6OF\x8bU/>y\xadJ\x1ch\x87\xeb\xb3\x86U\r\x89\xa3\xc2\x1a\xbc\xe6\xb5\x00\xaf\xc6?\xa8\xdc\xaa\xdc\xf6:$\xf9\x85D\xc7R\xd0\xa0\x19\xde\x97\x88\x14\xd8\xe9\xb6cn\x99\xcc\xc3\x8c\x1d\xd4\xd7\xd72\xc8\x05\xb4d\xd0D\x1e\xc4.\x9a2[8N\x1f\xca\x94T\x13\x03\x88LR\xe8\x80\xdd\xef\xc01\x90\xf3\x14C\xd1|:\xac\x03\xa7ef\x14\xae\x1d\xcaD\xbbzq\xbe\x05h8|\xf6f0\xe4A\xe3\xf9\xb6\x945p\x91d\xc4\x19\xfb\xb1fr\r\xf7\xb54\xd6"
2022-04-21 16:45:03 DEBUG (SyncWorker_9) [midea_beautiful.lan] From 192.168.***** decrypted reply=b'\x8e\x01\xa8\xc0,\x19\x00\x00000000P0000000Q1A8407D9EB8E10000\x0bnet_ac_B8E1\x00\x00\x00\x00\x01\x00\x00\x00\x04\x00\x00\x00\x00\x00\xac\x00\x00\x00\x00\x00\x00\x00\xa8@}\x9e\xb8\xe1\x06\x9f\xcd\x03\x00\x08\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2022-04-21 16:45:03 DEBUG (SyncWorker_9) [midea_beautiful.appliance] Creating AirConditionerAppliance 4288095348****
2022-04-21 16:45:03 DEBUG (SyncWorker_9) [midea_beautiful.lan] Descriptor data '{id=4288095348****, address=192.168., port=6444, version=3, name=42880953486758, online=True, type=0xac, subtype=0, flags=0, extra=1, reserved=0, mac=a8407d9, ssid=net_ac_B8E1, udp_version=4000000, protocol=069fcd, version=3.0.8, sn=000000P0000000Q1A8407D9E********, state=[Air conditioner]{id=4288095348****, type=0xac mode=0, running=False, turbo=False, fan_speed=40, turbo_fan=False, purifier=False, dryer=False, target_temperature=0, indoor_temperature=2.2250738585072014e-308, outdoor_temperature=2.2250738585072014e-308, vertical_swing=False horizontal_swing=False comfort_sleep=False, error_code=0, prompt=False, supports={}}}'
2022-04-21 16:45:03 DEBUG (SyncWorker_9) [midea_beautiful.lan] Appliance sn=000000P0000000Q1A8407D9E******** id=4288095348**** address=192.168.***** version=3
2022-04-21 16:45:03 DEBUG (SyncWorker_9) [midea_beautiful.lan] Attempting new connection to sn=000000P0000000Q1A8407D9E******** id=4288095348**** address=192.168.***** version=3
2022-04-21 16:45:03 DEBUG (SyncWorker_9) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D9E******** id=4288095348**** address=192.168.***** version=3, message=b'\x83p\x00@ \x00\x00\x007W\rv\x7f\xb5\xca\xfc\xaa\xefxE\x03(\xf3\xc4\x16\x84\xabV@\xf5\x08\x90\xe0\xaeR\xce\xf2V\x01\xd5aoi\x04;\t\x7fP\xc5<\tF\xc9b\xd3\xd5\x8e\xba\xfb\x86\xfe\xf0\x01\x83\xb5,\xff\x83| %\xd0'
2022-04-21 16:45:04 DEBUG (SyncWorker_9) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D9E******** id=4288095348**** address=192.168.***** version=3, message=b'\x83p\x00@ \x01\x00\x00\xfa\x03\xcas\x8a\x06<\xffZ;\xfa\n7\xd1\xae\x03\xfa\x11\xa9\xadB\xc6c\x0b\xb5\xdd2\xe4 \xfd\xf5W^\xf8\xe1\xfbH\xf0m\xb6\xf0\xaa\xe8\xb2\xf1\xfb\xc3\x88\xed\x1a\xe4x\xdf\x81\xbf\x0f\xb1\xd6\x95(\xc6t\xb5'
2022-04-21 16:45:04 DEBUG (SyncWorker_9) [midea_beautiful.lan] Got TCP key for: sn=000000P0000000Q1A8407D9E******** id=4288095348
*** address=192.168.***** version=3
2022-04-21 16:45:04 DEBUG (SyncWorker_9) [midea_beautiful.lan] Getting more capabilities
2022-04-21 16:45:04 DEBUG (SyncWorker_9) [midea_beautiful.lan] Packet for: sn=000000P0000000Q1A8407D9E******** id=4288095348**** address=192.168.***** version=3 data=b"ZZ\x01\x11H\x00 \x00\x00\x00\x00\x008\x04-\x10\x15\x04\x16\x14\xa6\r\x00\x00\x00'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00<\xe2i}\x05P\xa3\xd6d\xfb~\xe1\xb1\xd2\xffd\xca\x0cqWQi\xf9\x03\x13\xec\n\xb7\xa5.\x1d."
2022-04-21 16:45:04 DEBUG (SyncWorker_9) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D9E******** id=4288095348**** address=192.168.***** version=3, message=b'\x83p\x00n fJ\xbb\xb3n\x91\xe7]\xadt+B\xc9#"\xbaE\xf84M\xbe\x0e\x02\xdf\x0e\x04\x8a\xf9-N\xb8\x97\xe9i\x80.\xc6\x02\x19\x19\x18\x858\xe4\xe6\x1d\x1d\x94\xf7\x15"\xbb\xc4\xbe\xce\xe4\xede\xc6\x9c6\x02\x87\x1eo\x99\n\t&#\xbb/\x08\xf6\xac9\x0c\xf1b\xaaVF\xfd\xda\xfd\xfb\xe7\x99\xa3VO\xd5H\x14\xb0p\xd9\x04X\r\xfd\x80:\x90jd\x9d\x89f\xe4\xb8['
2022-04-21 16:45:05 DEBUG (SyncWorker_9) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D9E******** id=4288095348
*** address=192.168.***** version=3, message=b'\x83p\x00\x8e c\xe8\xb6.X\xde\x07(j\x03\x1b\xe9\xad\x14\xc0\xe8\xeda4\xa1\xda\x9djv\xad\xf3\x932\x9bi=\x90\x7f, \xa8\xa9\r@\x93\xea\xeb&0\x1d\x80\xec\xf0f\x19\xbf\xd9\xd7T#q=}\x8e\xe8\xe8\xc7\xf1\xdf\x1b\xf4\xf7\xd0\xed\xb0\xafF}\xeb\x19\xff\xae,h\x83\x86\xd7wR\x1eK\xd1\xc8\x9f\xc3\xcd)w\xd4\x8b\xe2\xb9\xbb\xe9\x95\xb0\x1fy\x1ax\xa3N\x86e pC\xf7\x01L\xa0\x1c \xe3\xfa\xb0\x18\x88\n+\xb8\xd9a\x88\x14\xef81X\xb6\xe7\xc1L\xf7:T\x8b\x8a\xd9\xe9'
2022-04-21 16:45:05 DEBUG (SyncWorker_9) [midea_beautiful.lan] Got 1 response(s) from: sn=000000P0000000Q1A8407D9E******** id=4288095348**** address=192.168.***** version=3
2022-04-21 16:45:05 DEBUG (SyncWorker_9) [midea_beautiful.appliance] Got capability b'\x12\x02'
2022-04-21 16:45:05 DEBUG (SyncWorker_9) [midea_beautiful.appliance] Got capability b'\x13\x02'
2022-04-21 16:45:05 DEBUG (SyncWorker_9) [midea_beautiful.appliance] Got capability b'\x14\x02'
2022-04-21 16:45:05 DEBUG (SyncWorker_9) [midea_beautiful.appliance] Got capability b'\x15\x02'
2022-04-21 16:45:05 DEBUG (SyncWorker_9) [midea_beautiful.appliance] Got capability b'\x16\x02'
2022-04-21 16:45:05 DEBUG (SyncWorker_9) [midea_beautiful.appliance] Got capability b'\x17\x02'
2022-04-21 16:45:05 WARNING (SyncWorker_9) [midea_beautiful.appliance] Midea B5 unknown property=b'\x1a\x02'`

As you can see I get this error continuously:
2022-04-21 16:44:49 WARNING (SyncWorker_2) [midea_beautiful.appliance] Midea B5 unknown property=b'\x1a\x02'

@kilrgt
Copy link

kilrgt commented Apr 23, 2022

Yes this does find the Units with ease , mine is almost perfect except one little fault .. no power on/off button, I’m getting no errors in the logs what so ever .

also big thanks to the dev , I can’t imagine the amount of work and time that has been put into this so far .. it’s come a long way

@marcoahp
Copy link
Author

marcoahp commented Apr 23, 2022 via email

@frankyboy69
Copy link

Also no on/off switch available

@nbogojevic
Copy link
Owner

@marcoahp @kilrgt @frankyboy69 can you check new version (0.8.2)?

@kilrgt
Copy link

kilrgt commented May 24, 2022

@nbogojevic OK so i did upgrade and played around with it, it seems the power button is there and does function, only thing im seeing as a issue is for example if i say switch to AC mode, it does actually change the function on the device, however soon after say with in 2 mins the entity becomes unavailable until i reload the integration. This could be a issue with my setup . attached

This error originated from a custom integration.

Logger: custom_components.midea_dehumidifier_lan.appliance_coordinator
Source: custom_components/midea_dehumidifier_lan/appliance_coordinator.py:130
Integration: Midea Air Appliances (LAN) (documentation, issues)
First occurred: May 23, 2022, 7:45:57 PM (14 occurrences)
Last logged: 9:50:21 AM

Unexpected error fetching Garage AC data: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 191, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data
return await self.update_method()
File "/config/custom_components/midea_dehumidifier_lan/appliance_coordinator.py", line 107, in _async_appliance_refresh
await self._async_do_update()
File "/config/custom_components/midea_dehumidifier_lan/appliance_coordinator.py", line 130, in _async_do_update
setattr(self.appliance.state, attr, self.updating[attr])
File "/usr/local/lib/python3.9/site-packages/midea_beautiful/appliance.py", line 657, in mode
mode = int(mode)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Hope that helps!

@marcoahp
Copy link
Author

Thanks, now power button is visible, but when y push, entity becomes unavailable and get this error
'Logger: custom_components.midea_dehumidifier_lan.appliance_coordinator
Source: custom_components/midea_dehumidifier_lan/appliance_coordinator.py:130
Integration: Midea Air Appliances (LAN) (documentation, issues)
First occurred: 16:53:33 (3 occurrences)
Last logged: 16:55:33

Unexpected error fetching Buhardilla data: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 191, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data
return await self.update_method()
File "/config/custom_components/midea_dehumidifier_lan/appliance_coordinator.py", line 107, in _async_appliance_refresh
await self._async_do_update()
File "/config/custom_components/midea_dehumidifier_lan/appliance_coordinator.py", line 130, in _async_do_update
setattr(self.appliance.state, attr, self.updating[attr])
File "/usr/local/lib/python3.9/site-packages/midea_beautiful/appliance.py", line 657, in mode
mode = int(mode)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType''

@toxic0n
Copy link

toxic0n commented May 26, 2022

Same issue here. Danby DPA120B9IBDB (rebranded Midea). Everything works well except turning the unit on or off with the this error in the logs

2022-05-26 11:49:38 ERROR (MainThread) [custom_components.midea_dehumidifier_lan.appliance_coordinator] Unexpected error fetching Living Room data: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
return await self.update_method()
File "/config/custom_components/midea_dehumidifier_lan/appliance_coordinator.py", line 107, in _async_appliance_refresh
await self._async_do_update()
File "/config/custom_components/midea_dehumidifier_lan/appliance_coordinator.py", line 130, in _async_do_update
setattr(self.appliance.state, attr, self.updating[attr])
File "/usr/local/lib/python3.9/site-packages/midea_beautiful/appliance.py", line 657, in mode
mode = int(mode)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

I have to restart HA to make the device available again.

@toxic0n
Copy link

toxic0n commented May 26, 2022

I am able to workaround it by editing set_hvac_mode in climate.py

    def set_hvac_mode(self, hvac_mode: str) -> None:
        """Set new target hvac mode."""
        midea_mode = next((i[0] for i in _MODES_MAPPING if i[1] == hvac_mode), None)
        if midea_mode is None:
            midea_mode=0
            if hvac_mode == HVAC_MODE_OFF:
                self.turn_off()
            else:
                _LOGGER.warning("Unsupported climate mode %s", hvac_mode)
                midea_mode = 1
                self.turn_on()
        self.apply("mode", midea_mode)

I also edited the modes to match the HVAC modes on my unit:

_MODES_MAPPING = [
    (1, HVAC_MODE_AUTO),
    (2, HVAC_MODE_COOL),
    (3, HVAC_MODE_DRY),
    (5, HVAC_MODE_FAN_ONLY),
]

This works and allows my to turn the unit of. However, it will not turn it on. It seems it just tries to turn it off when I click the power button again:

2022-05-26 16:29:26 DEBUG (SyncWorker_7) [midea_beautiful.appliance] AirConditionerResponse {'run_status': True, 'i_mode': False, 'timing_mode': False, 'quick_check': False, 'appliance_error': False, 'mode': 5, 'target_temperature': 18.0, 'fan_speed': 102, 'on_timer_set': False, 'on_timer_hours': 31, 'on_timer_minutes': 45, 'off_timer_set': False, 'off_timer_hours': 31, 'off_timer_minutes': 45, 'vertical_swing': 3, 'horizontal_swing': 0, 'comfort_sleep_value': 0, 'power_saving': False, 'low_frequency_fan': False, 'turbo_fan': False, 'feel_own': False, 'comfort_sleep': False, 'natural_wind': False, 'eco': False, 'purifier': False, 'dryer': False, 'ptc': 0, 'aux_heat': False, 'turbo': False, 'fahrenheit': False, 'prevent_freezing': False, 'pmv': -3.5, 'outdoor_temperature': 23.0, 'indoor_temperature': 22.0, 'err_code': 0, 'humidity': 0}
2022-05-26 16:29:26 DEBUG (MainThread) [custom_components.midea_dehumidifier_lan.appliance_coordinator] Finished fetching Living Room data in 0.113 seconds (success: True)
2022-05-26 16:29:26 DEBUG (MainThread) [custom_components.midea_dehumidifier_lan.appliance_discovery] Starting periodic discovery with interval 15 minute(s), broadcast ['255.255.255.255', '192.168.1.20'], configured ['192.168.1.20']
2022-05-26 16:29:40 DEBUG (SyncWorker_1) [custom_components.midea_dehumidifier_lan.climate] The mode is off
2022-05-26 16:29:40 DEBUG (SyncWorker_1) [custom_components.midea_dehumidifier_lan.climate] The parsed mode is None
2022-05-26 16:29:40 INFO (MainThread) [custom_components.midea_dehumidifier_lan.appliance_coordinator] Updating attributes for sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3: {'running': False}
2022-05-26 16:29:42 DEBUG (SyncWorker_0) [midea_beautiful.lan] Packet for sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 data: b'ZZ\x01\x11h\x00 \x00\x00\x00\x00\x00&\x1d\x10\x1a\x05\x16\x1423\x00\x00\x00\x86\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbf\xc9\rB~\x15FD\xe0\x0e\x91\x85rs+\xa0\xe7\xf5\x19\x90\x96\x8c(G\xc6\xc8\xc2D\xc2\xf8\xef\x17\xa2)\x968\xc9CZ,\r6I\x02\xe7\x1a\L\x04\xc2n\x92b<\xf9\x1cx\xb7\x0f\x01W\x13\xac\xaa'
2022-05-26 16:29:42 DEBUG (SyncWorker_0) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D99******** id=14733455813
*** address=192.168***** version=3, message=b'\x83p\x00\x8e fc\xc2\x83\x8e^\xab\xda\xefeS\xfd[\xfb\xddyxg\x93C,o\xb5\xe9\x10F\x8a*\x97\x0b@\x08-\xd0SRcC\xf1\t\xe8\\xb0\xfb\xd4\xff\xe7-M\x0ewn\x16\x18\xd7\xf7uE\x93\x88\x85\x91p\x95\xe9[W\x95<\x92\xe9jA\xbb\x8cT\x1b1P\xe8\xca\x9d\x185Sp\xc5\xef\xc4-\xe82\xbe\x94\xcf\xfc\x12\x9c\x9ac-\x1b|8\xff\xa5\xf0G\xeb\xa0\x84FW\x84JP\xdd\xb3N\xbe\xae_\x92\xe6\x18}rN\xb2p\x1c^\x10n-\xe6(!\x9aWm\xd0vs'
2022-05-26 16:29:42 DEBUG (SyncWorker_0) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D99******** id=14733455813
*** address=192.168***** version=3, message=b'\x83p\x00\x8e c\x82\x96L!\xd9 \xc0\x04\xad\x11\xa1>\xee\xf6\xb9(\xa6\xf4\xc4\xa9\xda.B\xef\xd0&\x8cT\x97\xfc\xc5\xe3X\x11\xf7\xdb\xcc\xfdQsZV\x98F\xf0P\xfd\x8e\x87\x19\x16\xd9[R*:\t\x97\xa5\xd1\x10\x99\xb7\r\xda\x88\xa2iR\x18r\x8a\xc8Qj\x1c\x06\x84\x82\xdbIP0\x17\x14Xis\x8dl\xb0\xdd.\x19\xe1\xf7\xc9*\x8f\x9c\xb3{R\xc4b\x84\xbeSE\xbcRIC\x0c_\xc2\x92n\xba\xbb\xba9\x8ei\xff\xfa%X\xc3\x1f\xa3\x88\x88\xf7q\x05\xfa\xd2\xa3\x7f\xd7\x96d' 2022-05-26 16:29:42 DEBUG (SyncWorker_0) [midea_beautiful.lan] Got response(s) from: sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 2022-05-26 16:29:42 DEBUG (SyncWorker_0) [midea_beautiful.appliance] AirConditionerResponse {'run_status': False, 'i_mode': False, 'timing_mode': False, 'quick_check': False, 'appliance_error': False, 'mode': 5, 'target_temperature': 18.0, 'fan_speed': 102, 'on_timer_set': False, 'on_timer_hours': 31, 'on_timer_minutes': 45, 'off_timer_set': False, 'off_timer_hours': 31, 'off_timer_minutes': 45, 'vertical_swing': 3, 'horizontal_swing': 0, 'comfort_sleep_value': 0, 'power_saving': False, 'low_frequency_fan': False, 'turbo_fan': False, 'feel_own': False, 'comfort_sleep': False, 'natural_wind': False, 'eco': False, 'purifier': False, 'dryer': False, 'ptc': 0, 'aux_heat': False, 'turbo': False, 'fahrenheit': False, 'prevent_freezing': False, 'pmv': -3.5, 'outdoor_temperature': 22.5, 'indoor_temperature': 22.0, 'err_code': 0, 'humidity': 0} 2022-05-26 16:29:42 DEBUG (SyncWorker_3) [midea_beautiful.lan] Packet for: sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 data=b'ZZ\x01\x11h\x00 \x00\x00\x00\x00\x001*\x1d\x10\x1a\x05\x16\x1423\x00\x00\x00\x86\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00k\x00\nv\xe2~\xed,6G\xe5}\x86\x02\xdf\x8b\n\x8bw8\xed\x91\xd6v)\x86\xfa\xb0~\xdb\xd0\x0e\xc2l\x0b\xfb\x02x\xa3Yx\xbcK\xe2ze\xaa9\xae*&\xb5\xac\x8coN[\x96V\xfc\x93{\x87\x90' 2022-05-26 16:29:42 DEBUG (SyncWorker_3) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b'\x83p\x00\x8e f\x88 Awd\xb56\x97\xb2\xef\xa4)\x14\xd5I$\x96m^\xa0\xb6\x03s\x80\xb9 \x93*_\xe9wBW\xf3\x82]7::\x0ff\x16\xce\xc7\xa8\x91\xa0\xddc\x9f\xf5\x06\x9a\xed\xc4+n.\x84\xad(\xbd\x13#\x12\xc55\xdeB\xfe\xd5d\xce\xda\xd6\x12C\x14\x99\x86\xf8\xe3\xab\x0f]Z\xf5\xa4L,\x8b\x96\xfc\x8d\xacOr\xccC\x8b\xacd\x11\x96\xf0B9\xa4k\xfe\xc7\xb7\xf0"s\xe8B\x95\xc3K\xf6\xd7\xd4LI\xb9\xb7\x95\x8f\xf8\x8e\xd22\x127q(\x9a\xaf\xe5E\x0b\x89y' 2022-05-26 16:29:42 DEBUG (SyncWorker_3) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b'\x83p\x00\x8e c\xe0S\xfcb\'@\x90e\x0f\x05\x9a\xf5\x83\xb8\x1b\x00\xb6(P\xa7+\x89\xcb5\x1f\xc7\xb8\xe6LB<\xd9\x8d\x91n\xc49x\x9c\x84O\xe6\xfe\xd0'\x06&\x18W\x02\x1e\xec:\x04\x05\xb3\xcd\xd4\xc3\x9d>\x9b!\xd4_\xed'\xed\x9c\x14\xc6\xdds\xe5\x82+\xb4\x93uC\xb7\xaa\xb2&\x8c\x86\xef\x81\xe6Ri\xc7\xea\x8f\xcc\xce\xc8p\xa9)\xce\x88-K\xfa\x0f\xfcW\x89\xdb\x1c4\x9e\xb0\x14(\xb2 \xba\xfe\xf1\x82\xed\x19\xbc\t\x05\xfbA\x82+\xa2\xb5\xad3\x82"\x9c\x8b\xd0\xb44'
2022-05-26 16:29:42 DEBUG (SyncWorker_3) [midea_beautiful.lan] Got 1 response(s) from: sn=000000P0000000Q1A8407D99******** id=14733455813
*** address=192.168***** version=3
2022-05-26 16:29:42 DEBUG (SyncWorker_3) [midea_beautiful.lan] refresh sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 responses=[b'\xc0\x00\xa2f\x7f\x7f\x00<\x00\x00\x00^\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04s\xf5']
2022-05-26 16:29:42 DEBUG (SyncWorker_3) [midea_beautiful.appliance] AirConditionerResponse {'run_status': False, 'i_mode': False, 'timing_mode': False, 'quick_check': False, 'appliance_error': False, 'mode': 5, 'target_temperature': 18.0, 'fan_speed': 102, 'on_timer_set': False, 'on_timer_hours': 31, 'on_timer_minutes': 45, 'off_timer_set': False, 'off_timer_hours': 31, 'off_timer_minutes': 45, 'vertical_swing': 3, 'horizontal_swing': 0, 'comfort_sleep_value': 0, 'power_saving': False, 'low_frequency_fan': False, 'turbo_fan': False, 'feel_own': False, 'comfort_sleep': False, 'natural_wind': False, 'eco': False, 'purifier': False, 'dryer': False, 'ptc': 0, 'aux_heat': False, 'turbo': False, 'fahrenheit': False, 'prevent_freezing': False, 'pmv': -3.5, 'outdoor_temperature': 22.5, 'indoor_temperature': 22.0, 'err_code': 0, 'humidity': 0}
2022-05-26 16:29:42 DEBUG (MainThread) [custom_components.midea_dehumidifier_lan.appliance_coordinator] Finished fetching Living Room data in 2.236 seconds (success: True)
2022-05-26 16:29:43 INFO (MainThread) [custom_components.midea_dehumidifier_lan.appliance_coordinator] Updating attributes for sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3: {'mode': 0}
2022-05-26 16:29:45 DEBUG (SyncWorker_5) [midea_beautiful.lan] Packet for sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 data: b'ZZ\x01\x11h\x00 \x00\x00\x00\x00\x00\x0c-\x1d\x10\x1a\x05\x16\x1423\x00\x00\x00\x86\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x003\xd7\xef\x8eW\xe2\x95\xe6\xaa\xb4\x81,\\xe6\xa9\xfe\xd8\r";\x96\xa53d\xafV\xd1\xbd\x05\xb3<\xc6A\xb3\xb0Q\x12p:\xfcy\xc0a\x07\xed\xa1\x81h\xdf\x9d\xb0\xe7\xfc\xd4\xce;\xb2h\xffo\x15$E' 2022-05-26 16:29:45 DEBUG (SyncWorker_5) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b'\x83p\x00\x8e f)\x91\t\x12.\xce\xa28Oz\xf5\xc7\xfb\x1b\xd2\xd9r\x0f\xabY\x14\x1a\xd8&a\x9eC\xac.?\x18\x84\xe1\xf8\x05\xcc\x91\xe1\xe0$bS|\x1e{\xf4\xf0l\xcd\xae\xf6\xd4\xa2h\xeeK,@{\x9f\x04\t\xba\xfa;)\xf3\xb9\xd4G9\x1fw-\x91\x04\xfbL\xb0q\xe1\xa68\xa0\xc7\xf2T8\x04\x01\xbb\x13\x06)\xe7\xc2u\xcfW\xadQ\x9eu\\\xa4\x03\x1b\xcf\x16[_8\xa1l\xffz3\xa4\x87\x9c\t\x9e\xbb\xc4N\x1cn\xda$\x855\x1c\xb9K+\xc9\xf1\xb7\xcb"\xd5\xaa\x8a\x17' 2022-05-26 16:29:45 DEBUG (SyncWorker_5) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b'\x83p\x00\x8e cn\xce\xbd\xed\xa1\x12\xae\xd7c\xfb\xbb\xc4\xce6\x0b\xcf=\xa0\x9d\x7fV/1\xda\xab\xd3\xb73\xc3\x7f\xd5\x19\xdf\x010\xd1\xf0\x89+\xa5Cd\x9f\xa0\xb2Aw \x16\x1f\x02\x8b\xfd\x82\xec\xef{&\xe4f\xaa\xb0\t\xa4\xd3\xfeZ\xd1\xc9,#\xae\xc8\xf6\x8bv\xd2\x06l\tj\xe7s\x0c\x9b\x98:\xd5\x81\x1c\xcb\xfb\\\xe6\xe4Es3c\xf2\x7f\xce\x1bS\n\xbd\xcf\xda\xc0\x8a\x1e\xcb\xf7p+^\xf1\x9f\xb0\\\x1cI\'5\x9b-@\x1d\x1e\xd4\x8b\xa1_\xa7s!j>"\xfd\xb1\x8b\x0c6' 2022-05-26 16:29:45 DEBUG (SyncWorker_5) [midea_beautiful.lan] Got response(s) from: sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 2022-05-26 16:29:45 DEBUG (SyncWorker_5) [midea_beautiful.appliance] AirConditionerResponse {'run_status': False, 'i_mode': False, 'timing_mode': False, 'quick_check': False, 'appliance_error': False, 'mode': 5, 'target_temperature': 18.0, 'fan_speed': 102, 'on_timer_set': False, 'on_timer_hours': 31, 'on_timer_minutes': 45, 'off_timer_set': False, 'off_timer_hours': 31, 'off_timer_minutes': 45, 'vertical_swing': 3, 'horizontal_swing': 0, 'comfort_sleep_value': 0, 'power_saving': False, 'low_frequency_fan': False, 'turbo_fan': False, 'feel_own': False, 'comfort_sleep': False, 'natural_wind': False, 'eco': False, 'purifier': False, 'dryer': False, 'ptc': 0, 'aux_heat': False, 'turbo': False, 'fahrenheit': False, 'prevent_freezing': False, 'pmv': -3.5, 'outdoor_temperature': 22.5, 'indoor_temperature': 22.0, 'err_code': 0, 'humidity': 0} 2022-05-26 16:29:45 DEBUG (SyncWorker_4) [midea_beautiful.lan] Packet for: sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 data=b'ZZ\x01\x11h\x00 \x00\x00\x00\x00\x00\x18-\x1d\x10\x1a\x05\x16\x1423\x00\x00\x00\x86\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00k\x00\nv\xe2~\xed,6G\xe5}\x86\x02\xdf\x8b\xf2\x95\xfc\xc1\xf4\xb9\xce\x80\xe5\x06\xab*\x87\x9f\xe3\xc5\xa8\xa59\xf3\xde\xd2\xb0B\x98\x06\x92\x92\xe4\xadfn\xd0\x0b\xe2\xb5y\x85A\xc9N\xa7\xe6G>\xb1\x88\xbe' 2022-05-26 16:29:45 DEBUG (SyncWorker_4) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b'\x83p\x00\x8e f>\xc8F\x95\x96\xe1\xd0y0\x8c\xf9\x1c\xf2[\xbd\x0e\x06Z~sE\t\xab\xb9F(\xdfS\xfd\xa1\xd3F\xb4zj\x14a\xfc\xa79\xcdA\x81\xb8\x90nO\xf2\xc1\xe3t>v\x83\x84\x1f{\x02\xbc[\x98\xa7S(Z\t\xe5\x86\xb2\xc5\xfe\xff\xe7"\xba\x97\x06\xec\xc8&\xa4\x0c\x05!9\x9b\x85\xfd2za\xed\x9a\x1cw!\xc2\xbd\x106\x15(q\x1b\xd9\x18\xce\xc9_:\t\x9cz\xb9:\x935\xc5\xa5e\xc8~\x94\xdb\x9d\xd6\x1e\xee>j\x04\x80]\xb8\xf8\x83\xef\xeb\x1b\x9e\xb6\xb1\xa3x' 2022-05-26 16:29:45 DEBUG (SyncWorker_4) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b"\x83p\x00\x8e cb\xa9\xce\x89\xf7EP\xf9A\xbbz4\xe7zX\xcd\xd7\xad\x14*\xee\xad\x95\xa1E'{\x81\x07\xf3\xde\x94\x12]\x98\xe4\xe8\x13\xf8\xb6\xb9:\xc1X=\xe7r\xfc\xd5\xf41\xb7\x02J\xaf\x9bT7\xf9\xd8\xc0\x03;\x19\x0c\xbd\xfe:\xd1\xabt\x84bi\xf4\x8e\x16\xacB\x1e\xcc5\x82\xb9\x81(\x160\x86\xb3\xbey(\xfc\xddN\xb7\x1f\x05\x8eE\xc4\xa0\xf2qL\xf5\xdf\x1d\x11\x86\xb7\xd1\xcbCR\xe4\xe5Og|\xff\xf9\xac\x8cE\x17\x12\xf2\xe7\xe1c\xec\xa7#g\x0e\xb9T.\x9e\x96\x95"
2022-05-26 16:29:45 DEBUG (SyncWorker_4) [midea_beautiful.lan] Got 1 response(s) from: sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3
2022-05-26 16:29:45 DEBUG (SyncWorker_4) [midea_beautiful.lan] refresh sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 responses=[b'\xc0\x00\xa2f\x7f\x7f\x00<\x00\x00\x00^
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\xcf\x97']
2022-05-26 16:29:45 DEBUG (SyncWorker_4) [midea_beautiful.appliance] AirConditionerResponse {'run_status': False, 'i_mode': False, 'timing_mode': False, 'quick_check': False, 'appliance_error': False, 'mode': 5, 'target_temperature': 18.0, 'fan_speed': 102, 'on_timer_set': False, 'on_timer_hours': 31, 'on_timer_minutes': 45, 'off_timer_set': False, 'off_timer_hours': 31, 'off_timer_minutes': 45, 'vertical_swing': 3, 'horizontal_swing': 0, 'comfort_sleep_value': 0, 'power_saving': False, 'low_frequency_fan': False, 'turbo_fan': False, 'feel_own': False, 'comfort_sleep': False, 'natural_wind': False, 'eco': False, 'purifier': False, 'dryer': False, 'ptc': 0, 'aux_heat': False, 'turbo': False, 'fahrenheit': False, 'prevent_freezing': False, 'pmv': -3.5, 'outdoor_temperature': 22.5, 'indoor_temperature': 22.0, 'err_code': 0, 'humidity': 0}
2022-05-26 16:29:45 DEBUG (MainThread) [custom_components.midea_dehumidifier_lan.appliance_coordinator] Finished fetching Living Room data in 2.223 seconds (success: True)

@toxic0n
Copy link

toxic0n commented May 26, 2022

I am now able to get the power on/off to work perfectly by making the following changes in climate.py

def set_hvac_mode(self, hvac_mode: str) -> None:
        """Set new target hvac mode."""
        midea_mode = next((i[0] for i in _MODES_MAPPING if i[1] == hvac_mode), None)
        if midea_mode is None:
            midea_mode=0
            if not self.is_on:
                self.turn_on()
            else:
                _LOGGER.warning("Unsupported climate mode %s", hvac_mode)
                self.turn_off()
        self.apply("mode", midea_mode)

@marcoahp
Copy link
Author

I am now able to get the power on/off to work perfectly by making the following changes in climate.py

def set_hvac_mode(self, hvac_mode: str) -> None:
        """Set new target hvac mode."""
        midea_mode = next((i[0] for i in _MODES_MAPPING if i[1] == hvac_mode), None)
        if midea_mode is None:
            midea_mode=0
            if not self.is_on:
                self.turn_on()
            else:
                _LOGGER.warning("Unsupported climate mode %s", hvac_mode)
                self.turn_off()
        self.apply("mode", midea_mode)

Worked for me too, but the integration do not detect that AC is powered off, and I can't power on again with power button, I have to change hvac mode from properties.

@marcoahp
Copy link
Author

marcoahp commented May 27, 2022

@marcoahp @kilrgt @frankyboy69 can you check new version (0.8.2)?
I think the problem is that integration thinks that AC is ON while is OFF, and when push a button to change mode, It should power on AC with this mode, and now only change hvac mode but do no power on.
But great job, now modes are correct, each mode in his place.

@nbogojevic
Copy link
Owner

@marcoahp @toxic0n I'm preparing new release with hopefully better support for On/Off - actually Off will become a mode as that is how home assistant expects it and AC should now switch to on when another mode has been set.

As I try to figure out how to detect all available modes, would it be possible to get information about device data from developer page (/developer-tools/state). It should something like this:

image

@marcoahp
Copy link
Author

marcoahp commented May 31, 2022

@marcoahp @toxic0n I'm preparing new release with hopefully better support for On/Off - actually Off will become a mode as that is how home assistant expects it and AC should now switch to on when another mode has been set.

As I try to figure out how to detect all available modes, would it be possible to get information about device data from developer page (/developer-tools/state). It should something like this:

image

Of course:
`

climate.dormitorioDormitorio heat hvac_modes: off, auto, cool, heat, dry, fan_only min_temp: 16 max_temp: 32 fan_modes: Silent, low, medium, high, Full, auto preset_modes: none, eco, boost, sleep swing_modes: off, horizontal, vertical, both current_temperature: 24.5 temperature: 24 fan_mode: auto preset_mode: none swing_mode: off last_error_code: 0 last_error_time: 2022-05-27T08:58:53.635018 friendly_name: Dormitorio supported_features: 57
sensor.dormitorio_outdoor_temperatureDormitorio Outdoor Temperature 22.5 state_class: measurement unit_of_measurement: °C device_class: temperature friendly_name: Dormitorio Outdoor Temperature

`

@toxic0n
Copy link

toxic0n commented May 31, 2022

Sure thing:
`
Entity | State | Attributes

climate.ac | cool | hvac_modes: off, auto, cool, dry, fan_only min_temp: 16 max_temp: 32 fan_modes: Silent, low, medium, high, Full, auto preset_modes: sleep swing_modes: off, horizontal, vertical, both current_temperature: 23 temperature: 21 fan_mode: auto preset_mode: none swing_mode: vertical last_error_code: 0 last_error_time: 2022-05-31T04:26:21.157551 friendly_name: AC supported_features: 57

sensor.ac_outdoor_temperatureAC Outdoor Temperature | 21.5 | state_class: measurement unit_of_measurement: °C device_class: temperature friendly_name: AC Outdoor Temperature

switch.ac_show_screenAC Show Screen | on | icon: mdi:clock-digital friendly_name: AC Show Screen

`

@kilrgt
Copy link

kilrgt commented May 31, 2022

@nbogojevic @toxic0n @marcoahp
Here ya go, thanks for the work!

hvac_modes: off, auto, cool, heat, dry, fan_only
min_temp: 61
max_temp: 89.5
fan_modes: Silent, low, medium, high, Full, auto
preset_modes: none, eco, boost, sleep
swing_modes: off, horizontal, vertical, both
current_temperature: 75
temperature: 62.5
fan_mode: auto
preset_mode: none
swing_mode: vertical
last_error_code: 0
last_error_time: 2022-05-30T20:29:35.140893
friendly_name: Garage AC
supported_features: 57

@nbogojevic
Copy link
Owner

@toxic0n @marcoahp @kilrgt thanks for data, I discovered another bug - there's no information about capabilities.

I've published a pre-release version - it should now handle off as a separate mode (official HomeAssistant way) and should switch AC on when changing modes. It should also show some more information in development tools page

Can you give it a try?

@kilrgt
Copy link

kilrgt commented Jun 1, 2022

@toxic0n @marcoahp @kilrgt thanks for data, I discovered another bug - there's no information about capabilities.

I've published a pre-release version - it should now handle off as a separate mode (official HomeAssistant way) and should switch AC on when changing modes. It should also show some more information in development tools page

Can you give it a try?

Will do, Ill post back
Thanks

@toxic0n
Copy link

toxic0n commented Jun 2, 2022

Hmm, I tried with the pre-release version and it turns the AC off but not back on. Here is the log of me clicking the power button while it's off.

2022-06-02 11:07:52 DEBUG (MainThread) [custom_components.midea_dehumidifier_lan.appliance_coordinator] Updating attributes for sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3: {'running': False} 2022-06-02 11:07:52 DEBUG (SyncWorker_5) [midea_beautiful.lan] Packet for sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 data: b"ZZ\x01\x11h\x00 \x00\x00\x00\x00\x00\x184\x07\x0b\x02\x06\x16\x1423\x00\x00\x00\x86\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00k\xf6\xb0\x106\x8fQ\xd3\x9f^\x06\x99\x8a\x07\x98d\xfeC\xfd\xbd\x0f?z\x80\xb24\r\xccRza\xe5\xf14\xf4D\xa1\x83\xdc7\xc3\xe6\x0cb7|qG\xccvR6\xacWj\xdd7\xc2|'\xff\xba\xad\xbd" 2022-06-02 11:07:52 DEBUG (SyncWorker_5) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b'\x83p\x00\x8e fB\x04\xa3\x80\xc4zaY\x9b\xd4P\x05\xbb\x13\x86\xcf\xaa\x91\x9a2\xbfw\x01\xf9lw>\xdf\x9a\xc4*w\x0cE\x15fl\xbf\xd6\x08\xbf\xa60\xc9\x8e\x19\r,D\x7f\xca\xb3N\x95\xcb\x8a\xdc\xa8\x96\xdb\xf0\xf2|U\x16mh#-\x11\r\xa15\xd5\x1d@\x99\x06\x17Q\xa2\x9b\xeff=\xb5\x9ap\xb0\xd3\xe2N\xc6\xffF\xa2\xe3\x880\xc7\x00\x7f\x81\xe7c\xb6\xc3(\xa9\xa6\x1d\xb5q\x103\xa7\x02\xda\x07\xa0\x08\x0b\xe8\xf8\x07~\x9e\x9d\xb0\x8eb\xe4\xd67 ~\t/}+H\xe1\x9d\xda' 2022-06-02 11:07:52 DEBUG (SyncWorker_5) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b"\x83p\x00\x8e c=\xdf\x8eohL4a\\\x14\xeb7.\xf2\x805)w\xc4\xc0y\xf5\xa3\x15p\tJQ\x10$\x83\xe21p\xc6\xd7>\xf9\xddX}\xdb\x15\xa6\xb5\x8a\xb7t\x9cn7\xfb\xa5\xa2/#\x15:\xe7\x11c\xb0\xc2\xa6L\x923\xb6\xc3\x13\xf1 (\xed\xad\xc5B\x7f\x9c\xb1h\x1f\x02wY\xb0\xe4#v\xca\xd6\xcf\xf3\x98\x0b\xb6Gx\x08\x82h)\x84%\xd5+d\xc5\xefN\xb9\x9c\xcc\xed\xfa\xe0\xb2\x83R\x98Z\xc2qX\x1a}\x11\xb9\xa1\xcd\x07y\x98Q\x84[\xc4F\xd9\x9a\xea\xba\xfb\x9c\x83p\x00\x8e cN\x9eso\r\xe0\xac,\xb9o\\\xc9\xec\xf3I\xff\xdb\xca\xf88\xa1\xa1\xac\xa4\xa3M\xe0(\xfc^\x15\x0b\xb8\xea\xe8\x9ff\xc6:\x8e\x16\x1dqMp\x9b~\x84A8$\xdc\x03\tC\x06\xa42\x14\xd0\xc2b\xb2\xb1\xce)|q\x8c\xad\x96\x81\xaf\xc1\x9d\x9e\xb7G<QU\x19O\xa4\xc7aq\x1a\x8b\x0b\xc4\x99\x84\x10\x84\xd9\xbdp2{\xdf\x00\x16\x8b\xbc\xccW(\x81\x82\xdb\x9e\xd5\x89\xecl\xaei\xbeb\x9a\x84\xb6\xde\x94\xd1N>*Z6%\x8b\xcd\x0cQ\x9f\xae\xdf\x10L\xd9\xf50\x83p\x00\x8e c\xa0\x81A*,j\x18\xa8=U\xe7\xf1\xde\x80\xf6 \xe1Z\x0c\x80\xb1\xf1\x83\x1dZ\x9aiX\x0e\xff3\x08l%i\xfce\xa4\xae;\x1f\x08\x07\xbd\xaa\xdam\x83\xf2\x8d\x93\x88?o<\x83C\xfe\xa8%\xc0\xc7\xe8\xc7\x02}\xcb\xc5\xd7;-7\xf3\xe4V\xdc'C\xfbN=c\xb4?\xf6Mu\xe4\x98\xda\x80\x9c\xbf !@\xed\x89P\xa9\x9d\xf9\xf8\xd6\xf6\x1cg\xeaM\xaeyK\xa3(\xbb\xaf\x11Q\xdfD\x18\x8f\x8e\xab.\xfe\r0O\xf5\x19\xe5\x9d\xf98\xc3p\x81\x18\x95\x90\xb4\x05\xd8\x83p\x00\x8e c.I\xd7^\x9b-d\x91l\xb7\xd1\xe5-\x97Hn\x0e\x0b\xf7\xe7\x1e\xfe\x9d\xcd\x0f\x8chDI\xc5;\x9b\xc2y\x07d\x96\x9b\x80\xb2\xf2\xa5=h\xe2\xbf\xa4]B1[\xc2\xd5Kz\xa8\xb5\xfe-<\xeaHd\x13|:VD9wH*\t\xf2@n<\x02\xf5\x7f+\x8d\x16LG\x91;\xa4\x01\xe7\x80\x03\n\x94>\xb4\xe1\xd7\x90\xbfM\xe5\x8c\x7f3\xcb\xf0\x90\xde\xcf\x0b\x08W\xfaM/\xde\xb5$m6b\xc7\x92\x1c6\xbfi\x08\x81\xd5\xdad\x18\x0e\x9doi\xa8u\x92" 2022-06-02 11:07:52 DEBUG (SyncWorker_5) [midea_beautiful.lan] Got response(s) from: sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 2022-06-02 11:07:52 DEBUG (SyncWorker_5) [midea_beautiful.lan] Got several responses on apply from: sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, 4 2022-06-02 11:07:52 DEBUG (SyncWorker_5) [midea_beautiful.appliance] AirConditionerResponse {'run_status': False, 'i_mode': False, 'timing_mode': False, 'quick_check': False, 'appliance_error': False, 'mode': 0, 'target_temperature': 16.0, 'fan_speed': 0, 'on_timer_set': False, 'on_timer_hours': 0, 'on_timer_minutes': 0, 'off_timer_set': False, 'off_timer_hours': 0, 'off_timer_minutes': 0, 'vertical_swing': 0, 'horizontal_swing': 0, 'comfort_sleep_value': 0, 'power_saving': False, 'low_frequency_fan': False, 'turbo_fan': False, 'feel_own': False, 'comfort_sleep': False, 'natural_wind': False, 'eco': False, 'purifier': False, 'dryer': False, 'ptc': 0, 'aux_heat': False, 'turbo': False, 'fahrenheit': False, 'prevent_freezing': False, 'pmv': -3.5, 'outdoor_temperature': None, 'indoor_temperature': None, 'err_code': 0, 'humidity': 0} 2022-06-02 11:07:52 DEBUG (SyncWorker_6) [midea_beautiful.lan] Packet for: sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 data=b'ZZ\x01\x11h\x00 \x00\x00\x00\x00\x00\x194\x07\x0b\x02\x06\x16\x1423\x00\x00\x00\x86\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00k\x00\nv\xe2~\xed,6G\xe5}\x86\x02\xdf\x8bVJJ\xe9\xd7\x91\xb5\x17\xb2\xf9\xaa\xfa\xaa\xfe\xe9\xf5\xc4\xcf:\x8c7\x9aV9]\x16\xdb\xd9h\xa35\x06\xd3\xedE\xe1\x93Qs\xfe\xe1\x9c\x97\xb6e\xbb\r\x82' 2022-06-02 11:07:52 DEBUG (SyncWorker_6) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b'\x83p\x00\x8e f\xfe,\x1d\x04jRd\xddK\xce\xe6j\xdf\xdf\xac\x1c\x9d\xab\xb4\x82a#\x81-I\x04\xcc\xe1\x1a\x86\x9c\x19b\x855xp0<\xe4\x16\xbe_\xe8\x0f\xd8\x81k\xb7\x00c\x12\xe0\x9fq\x9a\xbddN\x1aE\x1e\x14b\xf5Z\xe1\xf3\xda[0\xbdL\xec^\x13\xc0G\xb2\x11$!\xd0\xfb\x0cz\xec&g\xfd\xd5\n,\xa7\x1aY}\x84k\xee\xf58\xd3\xae\x8cL\xda.\x8bv\xa5Y\xed\x14^\x00\xff\x9a~^\xad\xb1\x81\xbe6\xd2v\xd6\xe6\x04;(3\x0e\x98\x96%\xda_\x83\xeaU.'
2022-06-02 11:07:52 DEBUG (SyncWorker_6) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b'\x83p\x00\x8e c&\x83TH(|\xafN\xda%\x12\x96B\x8f\xf0L\x04i\x0e\xc8\xe3~\x8dy+\xf2H\xa7\xd1\x81Y\xdd\xcd\xa0!\xda\x97\xc2<[\xd9=\xfd\x84P~\xf02R_\xc4k\xf8\x8b\xed^\xaf[\xb3\x17\x14\x00\xad\xe8\x19hW>\xc1\x98k\x83\xb9\x90\xa3\xe2q\x92\x7f=f\xb5X*\xf0\x82P\x1bV\x1a\x1f\xa1\x15V\x9f\xff\x90\xd9\x1e\x10>0\xb1n\xd5\xbe\x93<\xd95\xc5e:e\x1cU\x12fxv9\x07\x14\xde(\xda\x13\x80JU\xbb\xe3\xa2\xc6\xb4\xa7^\xb4>\x8b\x930*<'
2022-06-02 11:07:52 DEBUG (SyncWorker_6) [midea_beautiful.lan] Got 1 response(s) from: sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3
2022-06-02 11:07:52 DEBUG (SyncWorker_6) [midea_beautiful.lan] refresh sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 responses=[b'\xc0\x00F<\x7f\x7f\x00<\x00\x00\x00_r\x00\x00\x00\x00\x00\x00\x00\x00\x00\x002ZS']
2022-06-02 11:07:52 DEBUG (SyncWorker_6) [midea_beautiful.appliance] AirConditionerResponse {'run_status': False, 'i_mode': False, 'timing_mode': False, 'quick_check': False, 'appliance_error': False, 'mode': 2, 'target_temperature': 22.0, 'fan_speed': 60, 'on_timer_set': False, 'on_timer_hours': 31, 'on_timer_minutes': 45, 'off_timer_set': False, 'off_timer_hours': 31, 'off_timer_minutes': 45, 'vertical_swing': 3, 'horizontal_swing': 0, 'comfort_sleep_value': 0, 'power_saving': False, 'low_frequency_fan': False, 'turbo_fan': False, 'feel_own': False, 'comfort_sleep': False, 'natural_wind': False, 'eco': False, 'purifier': False, 'dryer': False, 'ptc': 0, 'aux_heat': False, 'turbo': False, 'fahrenheit': False, 'prevent_freezing': False, 'pmv': -3.5, 'outdoor_temperature': 32.0, 'indoor_temperature': 22.5, 'err_code': 0, 'humidity': 0}
2022-06-02 11:07:52 DEBUG (MainThread) [custom_components.midea_dehumidifier_lan.appliance_coordinator] Finished fetching Living Room data in 0.116 seconds (success: True)

`

@nbogojevic
Copy link
Owner

@toxic0n is there any difference when using new version 0.8.10?

@toxic0n
Copy link

toxic0n commented Jul 26, 2022

It still won't turn ON with the power button, however I can just click the Cooling mode button and it fires right up. Good enough for me.

Here is the code if you are curious:

2022-07-26 15:09:39 DEBUG (MainThread) [custom_components.midea_dehumidifier_lan.appliance_coordinator] Updating attributes for sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3: {'running': False} 2022-07-26 15:09:39 DEBUG (SyncWorker_1) [midea_beautiful.lan] Packet for sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 data: b"ZZ\x01\x11h\x00 \x00\x00\x00\x00\x00\x14'\t\x0f\x1a\x07\x16\x1423\x00\x00\x00\x86\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00o\xb4\x92u\xaf\x05V\x1e\xabl\x98\xc2\xf0\x13\x98\xd0\x16\xed9\xf7\x9d\xcd\x1e\x12\x83\x82In\xe1L\xca^\x19\xc7\x1b\x15F\xfdnM^\xefW\xa3O8\xcd\xf4/q&\x10\xee\nD\x15N\xf1\x8a\xa2\x89+\xea\xa0" 2022-07-26 15:09:39 DEBUG (SyncWorker_1) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b'\x83p\x00\x8e f\x02\xe2Hp/\xb4\xc89\r\\\x9bb\xb3K\xca\xab\xe4\xaa\x80\xae0U\x81"\x86p(\xa3\xa1\x0c\xa0\\+x\xe5KR\x97\xce\xa2\x87\xd0\xc1+%@\x12.\xd9\xd2\x04\xcbl[\xe5\x87\xd1>\x8c\x17L\x06\xd1\x8a\x8f.j4\xf7\xd5\x8c\x1b\xe3\xeav\xe2u\xa1\xd4\xb6\xb5z\x1d\xc3\xe2\xb2\x12=\xb9\r\x93\xe6I\xc38\x05?\x08\x0c^\xf4\xab\x08P\x12|\x00\xd3-\xc2\x11\x04<[\xb5DKs\xa1nL\x7f\x02\xb7\xe1Cw\xeb\xb6\xc2\x80pQ]\x88\xe2\x90\xc1\xd6\xe2\t\x021'
2022-07-26 15:09:39 DEBUG (SyncWorker_1) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b'\x83p\x00\x8e c\x17\xffb\x1a~\xb8F^\x88\xa47<e\xf6\xbde$9\x87\x96\xb0\xa9\xc2\xcc\xbf\x08\x16\x9dO\xf7\x1f\x92B}\xc1\x1b\x1f\x10#p\x98\x95]}\x9f\x95\x94irb\x03S\xe2KrG6\x17lA\x89\xb4\xc6\x18\x82\xa5\x96u(H\xf4z\xe66f\xec/\xf5\xf3i\xb9-\xf3k\xf0(\xb8\x88\x9b\xa5\xa2\'+u[\x14\x0bhL\x9c%n\xbc\xc9\'F\x19\xc0\xc2!p\xad\xb3OU\x1a\x19%\xde\xb6\xdaP\xb6\x92q\xe4\xb8\xe1\xae\x99O\x9c\x10C\xb9\x9f\xb7\x8e\x9bc\x84h0\x83p\x00\x8e cr\xcc\xf1Ts\x03\xda\x00\xd3t\xcd\xb5\x1a\x9dm\xad\x8b\xb7\xad\x15pP\xf8\x9f\xb9\x7f\xb9\xaf\xfa\xebY7\x00V\xff\xc5\x1a\xa5Y\xda\xad\xafi%?\xbe\xcb\xd8\xa5\xec\xab&\xc5\xfa\xa1m\xb4[VD{\xb57;\x17\x1a\xcd\x9f*\x90\xe7\xe8=\x14\xc8\xed\x11)\x81i\x8br\x92\x928\x1e\x0fg\xb8.\xfd\xff\xf5y\x7f\x8a\xca=\x8c-(w\xbc\xe5\xb4\xaf\xf4\xb3\xfd\xd0J\xff\xbd\x9d\xb3m\x80"\xfd\xb5\x95{z\x0cv\xf0\xcc\xc0W\x8a\x1e\x01\xe14.\x9a\xeb\xf7\x1e\xa3\xee\xe2\xbf"\x83p\x00\x8e c\x1d"Z\x7f\xb2\xe9\xc1\t\x90L}G!\xa9\x99\xdb*\xa7s\xf8\xd5A\xce\x10\xe0T\x9b\x12r\xb2\xee\xa6\x89\xc4\xcc\xdb%sw\x1b\xfec\xb3\xcd\x94s\nG\xa7\x8f&@p\x90V!\xd3\xd1\xcb%\xe3\x7f{-\xcf\xcc\xa7\x1b\xe7\xdaOh\xe6\xc1\x8d\xb5\xe8s_\x86\x04A\xf5r\x9c\xb6r\x97n\rY*;\xb0\xb8\'\x88C@\x1b\x95\x1bn\xf6\xb1\x10*\x97u\xbe"\x18\x930\x915\x842\x92bRB\xa3\xa7\xde\xba\r\xe0P\xc9\x08\xacS\x7f\xe43\x95\xca\xa67#X\x89\xf0\x83p\x00\x8e c\x17\xf8^k\x17\x84P\x06CB\xc6yEc\x17\xf0&\xd8[\x85s\xcf\xaa,5\xfaWx\xcb_\x97z\xa6\xb9\xaaw"\xaa\x1bD\xe6\x81\xf5\xd7\xba\xc3Y$\xa8l\xfe\x89S\xd6\xe4\xdb\x1dC\xc7[uX\x9d\x07\xd8\x06\x14\xb7F\x1f3u_\x06\x9b\xc3(w\x0c\xea\'\xb7\x12<\xadM\x12\x9d\xea4\xcb\x03\x98\xc0rIR\xc0\xc9\x13\xc5\xeb\xaa\xd4\xe8K;q\x8cGA\x1a9\x06\t\x89\xd0\xd3\xb8\xdca\x92="\xdd\x1b\xc0S\xca<\'\xa4\xc9\xebV\xedI\xa7\'\xfa\x07J\xf3#\x83p\x00\x8e ct\xf2\x15\xcd\x13]\x9a\x95\xd61\xd6\x0f\x9b\xa5\xcf\x1d\x17\xca\xfat\xabq\xbb\xd7\x1f\xfd/\xf5\xc7\x8a\x04*w\xd8r\xd7Hg\x14J(V\x8c-\xd3\xacV!#\xb2\xae:\x15\xd4\x01\x99\xae\xeb0\t\xf7),\x03\x8fb\xf8\xb2 \xdf\x812\xda\x06h,\xf4\x97\xe9o\xb1\n{\xcf\xe9\xb7\x98\xf7\xc6\xf9|\xc9\xfa\xa1s\xd5\x92\xd6\t\x0e\x8b\xadO\xe3I\xee\x93\x07\xf7\xc4\xe1\xc3\xcd\x80\xccV\x8d\x97\x1c,"d+;\x0fP\xcen\xeb\xcaN3M\x0boN\xd6\xcaZz]\x83p\x00\x8e ce\x1c\x8d\x94\xb5G]\x9f\xfd\xbc\xb0\x9cw\xb2\x98*\xfeIe |\x03r\xf3\xc7\xa0\xfc\xf9\xa5\xe66\x8e\\\xf77\xeei\x9f\x91\n\x1f\x9e\x13/>\x95\xdd\xd7!\xe4\x1a\xd6\x85\xc768N\xd5\xa6|=\x04\x80\xdd\x91\x8b\tT\xac\xeeRd\xb1\x12Cg\xae\xb7\xb6IpcZ\xea<u\x13\xf4g\x18?\x7f:Ck\t\x9f\xd8\xc8M\xa3\xd5grU A=\xf0\x93\x9b\x04\x96\xb4\xbb\xe2i\xc4\xbdg\xd7\xea\x80A\xab$+\xc5l\xf4\x91&\xa5\x1fN\xa8\r\x96W\x1f\x8eA6' 2022-07-26 15:09:39 DEBUG (SyncWorker_1) [midea_beautiful.lan] Got response(s) from: sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 2022-07-26 15:09:39 DEBUG (SyncWorker_1) [midea_beautiful.lan] Got several responses on apply from: sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, 6 2022-07-26 15:09:39 DEBUG (SyncWorker_1) [midea_beautiful.appliance] AirConditionerResponse {'run_status': False, 'i_mode': False, 'timing_mode': False, 'quick_check': False, 'appliance_error': False, 'mode': 0, 'target_temperature': 16.0, 'fan_speed': 0, 'on_timer_set': False, 'on_timer_hours': 0, 'on_timer_minutes': 0, 'off_timer_set': False, 'off_timer_hours': 0, 'off_timer_minutes': 0, 'vertical_swing': 0, 'horizontal_swing': 0, 'comfort_sleep_value': 0, 'power_saving': False, 'low_frequency_fan': False, 'turbo_fan': False, 'feel_own': False, 'comfort_sleep': False, 'natural_wind': False, 'eco': False, 'purifier': False, 'dryer': False, 'ptc': 0, 'aux_heat': False, 'turbo': False, 'fahrenheit': False, 'prevent_freezing': False, 'pmv': -3.5, 'outdoor_temperature': None, 'indoor_temperature': None, 'err_code': 0, 'humidity': 0} 2022-07-26 15:09:39 DEBUG (SyncWorker_0) [midea_beautiful.lan] Packet for: sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 data=b"ZZ\x01\x11h\x00 \x00\x00\x00\x00\x00\x14'\t\x0f\x1a\x07\x16\x1423\x00\x00\x00\x86\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00k\x00\nv\xe2~\xed,6G\xe5}\x86\x02\xdf\x8b\x83\x8dL\xb0\xb8\xc0\xb5\x1c\n\xffq\xbf\xce\xd63s\xcb\xb1}\xba\xf5\xb3\x04W\xdc\x17O\xb2k#};\x1fN\xeb\x1dd\xf00#\x18\x89f\xe9w|\xbb\xab" 2022-07-26 15:09:39 DEBUG (SyncWorker_0) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b'\x83p\x00\x8e f\xc2]\x86qnTou~\x94\x16\xd5\xe9-\x17aU\xc0\x18\xbb*\xae\xfc\x05\xee7\x83\x86K\xba\x8a\x852\xe2\xa4\xa4U\xb8&\xba\xcd:\x04\x0e\x96HP\xa3\x84A\xf4\x9b\x10\x1d\xff%x\xf1\xb4\xf3\x0e]J\xfc&ub\xc91>\xe59\xf9\x19\xee!\xbei\xee\xf0v\x94D3\x8f\xdc\xc16oV\xf2\x7f\xf0\xd5{\xb8\x13\xbe\xf6z\xedG\x15\xc7){\xa8s\x84\xec:0\xc9z\xe7\xb6\x9c\xd2PGNZ\xc7\x1a\xe8\xb8\n\xe1$/\xe4\x1fP\x9a\xa2\xba!\t\xf3\x17G\x99\xb6'
2022-07-26 15:09:39 DEBUG (SyncWorker_0) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b''
2022-07-26 15:09:39 DEBUG (SyncWorker_0) [midea_beautiful.lan] Socket sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 closed, creating new socket
2022-07-26 15:09:39 DEBUG (SyncWorker_0) [midea_beautiful.lan] Attempting new connection to sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3
2022-07-26 15:09:39 DEBUG (SyncWorker_0) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b'\x83p\x00@ \x00\x00\x17:\xe3\xc3\x85"\xc9\xa0G[\x9f\x05\xaa\xccFc\xae\xe3\n4\x80\x85.\x86Az\xfa8m\xcd\x01\xeb\xces\x0b^\xbbx\xb1\x1a\x1c\x95\xfd+PE\x169!\x191\t\xdd#\x85\x1c\x16\xa7\x9d\xff\x80\xbc\xed\x07\xd2'
2022-07-26 15:09:39 DEBUG (SyncWorker_0) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b"\x83p\x00@ \x01\x00\x00k\x85.\x85t\xed\xeb\xa5\xc1\x9d\xd0\x8e\xf9\xedr\x046\xe4{\nu\xc3\xcd\x0c'(\x1dc O\xc4\xa7[x!\xb5m\xb6\xd8\x0f=\xe36a\x91\x94\xdd]\xd7\xc7\xf7\x1ak\t\xc09\xc8\x92\xea\xdb\x90\xc9\x0f"
2022-07-26 15:09:39 DEBUG (SyncWorker_0) [midea_beautiful.lan] Got TCP key for: sn=000000P0000000Q1A8407D99******** id=14733455813
*** address=192.168***** version=3
2022-07-26 15:09:40 DEBUG (SyncWorker_0) [midea_beautiful.lan] Sending to sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b'\x83p\x00\x8e f\xfb"\xabp\xe4~\x85\x9b\xe4\xcc\xe2\xb1.\x9bu\xb6K\xb7\'\xc2,\xff\x91kl"\x84\xb3h\xae\xb0\x1a\x1e\x8b\x07r\xcb\x1bj">\xdd\xbb\xae\x0c\xc9\x0eH\x88\xfc\x80~\xf0\x12\xc8F\xdf\xba\xc8\xf3\x18f\xce\xb6\x13t\xa1\xc9\xf6\xbf\xab\x11\x12psY^\xcb#_\r\xdc\x9d\xf7\x06\xbd\xd0\xf3\xf5\x86~\x19\xfc\xbd\xa8\xd9\xe3\xb0\x1a\xa5\xe5\xe6\xe3\xa9\xc0X\x1b9\xc52\xbeT>\x04\xf7e8\xe7ky}7\x16\x1b\x8e_\x82\x1b\xe9\xc7\xcb+\xe9\x1f\x86\x05\xbdzW\x12\xb8\xb0\x1a' 2022-07-26 15:09:40 DEBUG (SyncWorker_0) [midea_beautiful.lan] From sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3, message=b'\x83p\x00\x8e c\x90\x13D]\x94\xfe"\xcc\xf5Yl<\x84M\x91|P\xbb\xbc6?W\xd8\r\x8a\xdb\xe4\x0f}Z\x0e\xb3\xfa\x15O\x14\x99-\xa2I\xc6\x89\x03\xff\xa46\xc9\xb3\xad\xcc\xeb=\x8a\xf5\xfe\xba\xf7B\x1a\x1f8d\xe9\xf7\\\x83\x18!\xa31zL\x08\xc3\xfa\x05\x07\'\xd3\xc3\x99!\xc5\xf9{\xab\x7f\xdb\xfeA\xe0\xb5\xcbuH\xa9w\\\x9f\x0f7\xc7)\x18\x8e}\xf1\xcb\'\x18\xb5\x9d\xa1s\xe6\xe9\xd6k\x1d\xfb\xbb\x9f\x96\xd6\x01G\xd3\xa5C\xaf\xe8\xad\xcah\xbb\xc8\xa7l\x9c\xe2\x07\xbf\xb2 ' 2022-07-26 15:09:40 DEBUG (SyncWorker_0) [midea_beautiful.lan] Got 1 response(s) from: sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 2022-07-26 15:09:40 DEBUG (SyncWorker_0) [midea_beautiful.lan] refresh sn=000000P0000000Q1A8407D99******** id=14733455813**** address=192.168***** version=3 responses=[b'\xaa#\xac\x00\x00\x00\x00\x00\x03\x03\xc0\x00Hf\x7f\x7f\x00<\x00\x00\x00ar\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00=\xb1\xc2'] 2022-07-26 15:09:40 DEBUG (SyncWorker_0) [midea_beautiful.appliance] AirConditionerResponse {'run_status': False, 'i_mode': False, 'timing_mode': False, 'quick_check': False, 'appliance_error': False, 'mode': 2, 'target_temperature': 24.0, 'fan_speed': 102, 'on_timer_set': False, 'on_timer_hours': 31, 'on_timer_minutes': 45, 'off_timer_set': False, 'off_timer_hours': 31, 'off_timer_minutes': 45, 'vertical_swing': 3, 'horizontal_swing': 0, 'comfort_sleep_value': 0, 'power_saving': False, 'low_frequency_fan': False, 'turbo_fan': False, 'feel_own': False, 'comfort_sleep': False, 'natural_wind': False, 'eco': False, 'purifier': False, 'dryer': False, 'ptc': 0, 'aux_heat': False, 'turbo': False, 'fahrenheit': False, 'prevent_freezing': False, 'pmv': -3.5, 'outdoor_temperature': 32.0, 'indoor_temperature': 23.5, 'err_code': 0, 'humidity': 0} 2022-07-26 15:09:40 DEBUG (MainThread) [custom_components.midea_dehumidifier_lan.appliance_coordinator] Finished fetching Living Room data in 1.072 seconds (success: True)

@nbogojevic
Copy link
Owner

nbogojevic commented Aug 24, 2022

Closing as further investigation is ongoing in #72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants