mill1000 / midea-ac-py

Home Assistant custom integration to control Midea (and associated brands) air conditioners via LAN.
MIT License
106 stars 9 forks source link

Add functionality for Midea Breezeless E #60

Open e1ace opened 6 months ago

e1ace commented 6 months ago

There are some missing functions for the Breezeless E Air conditioner.

Screenshot_2023-12-11-17-14-33-97.jpg

Let me know what I can do to help out.

mill1000 commented 6 months ago

Thanks for screenshot. Can you use msmart-ng to query your device's capabilities and post them here?

I have the following questions about how these functions work.

How do the "Breezeless" and "Breeze Mild" modes interact with fan speed?

How does Active Clean work as a user? According to some Midea info it automatically shuts off after some time. Can you cancel it once active? image

How does Gear mode interact with ECO mode?

lpispek commented 6 months ago

Hi to all.

msmsart-ng returns this:

INFO:msmart.cli:Querying device capabilities.
WARNING:msmart.device.AC.command:Unknown capability. ID: 0x  40, Size: 1.
INFO:msmart.cli:{'supported_modes': [<OperationalMode.FAN_ONLY: 5>, <OperationalMode.DRY: 3>, <OperationalMode.COOL: 2>, <OperationalMode.HEAT: 4>, <OperationalMode.AUTO: 1>], 'supported_swing_modes': [<SwingMode.OFF: 0>, <SwingMode.HORIZONTAL: 3>, <SwingMode.VERTICAL: 12>, <SwingMode.BOTH: 15>], 'supported_fan_speeds': [<FanSpeed.SILENT: 20>, <FanSpeed.LOW: 40>, <FanSpeed.MEDIUM: 60>, <FanSpeed.HIGH: 100>, <FanSpeed.AUTO: 102>], 'supports_custom_fan_speed': True, 'supports_eco_mode': True, 'supports_turbo_mode': True, 'supports_freeze_protection_mode': False, 'supports_display_control': False, 'supports_filter_reminder': False, 'max_target_temperature': 30.0, 'min_target_temperature': 16.0}

"Breezeless" and "Breeze Mild" this 2 modes are not available in heating mode only cooling. And when you activate this 2 modes Fan Speed goes to auto.

image

lpispek commented 6 months ago

If the unit is on Active Clean you get a message in the app "that you don't operate the device". If you change any settings during active clean it cancels the program.

And one option that can be active only in heating mode is "Freeze Protection".

If I can help on any other way please tell me. Thank you in advance.

image

mill1000 commented 6 months ago

Thanks for the descriptions.

Can query the capabilities again but this time with the -debug flag?

Upon reviewing the Lua reference code, here's some notes

Active Clean This is called self_clean in the Lua. It appears to be controlled via the "new protocol" which I have yet to implement.

Gear Called rate_select in the Lua. Also part of the "new protocol".

Custom Dry Possibly called smart_dry in the Lua. Good news, this appears to use the existing protocol and I can probably implement it if you're able to perform tests.

Breezeless / Breeze Mild Possible names in the Lua are no_wind_sense, fa_no_wind_sense or gentle_wind_sense. These are part of the new protocol.

mill1000 commented 6 months ago

And one option that can be active only in heating mode is "Freeze Protection".

Freeze protection is implemented as the "away" preset in HA, but your device's capabilities indicate it's not supported. You can force all presets to be displayed using the "Show All Presets" configuration option.

lpispek commented 6 months ago

And one option that can be active only in heating mode is "Freeze Protection".

Freeze protection is implemented as the "away" preset in HA, but your device's capabilities indicate it's not supported. You can force all presets to be displayed using the "Show All Presets" configuration option.

As I see in the application on my unit this is supported. image

lpispek commented 6 months ago

Thanks for the descriptions.

Can query the capabilities again but this time with the -debug flag?

Upon reviewing the Lua reference code, here's some notes

Active Clean This is called self_clean in the Lua. It appears to be controlled via the "new protocol" which I have yet to implement.

Gear Called rate_select in the Lua. Also part of the "new protocol".

Custom Dry Possibly called smart_dry in the Lua. Good news, this appears to use the existing protocol and I can probably implement it if you're able to perform tests.

Breezeless / Breeze Mild Possible names in the Lua are no_wind_sense, fa_no_wind_sense or gentle_wind_sense. These are part of the new protocol.

this is with --debug option:

msmart-ng query 192.168.254.13 --capabilities --auto --debug
DEBUG:asyncio:Using selector: EpollSelector
INFO:msmart.cli:Discovering 192.168.254.13 on local network.
DEBUG:msmart.discover:Discovery sent to 192.168.254.13:6445.
DEBUG:msmart.discover:Discovery sent to 192.168.254.13:20086.
DEBUG:msmart.discover:Waiting 5 seconds for responses...
DEBUG:msmart.discover:Discovery response from 192.168.254.13: 837000c8200f00005a5a0111b8007a80000000001161220c130c1714472a000000820000000000000000018000000000cb947c37ce381dc68a6cefdc9d8a39531792efa2d6ad33fba2e7a715120fe2e6db5f1f5733490f35b808fb9a808c04effa075189dd34f10de751caabf2a1e91c2c9329e81450db7d5fb20eed90403e3af3d28b52bb5704abcbab9af7db794cca4bdfb3e16e33d88768cc4c3d0658937d0bb19369bf0317b24d3a4de9e6a131066a3fcc1ffe1ab703a0b5bc6f80fe8ba3a200e49796b3e8dadca0c79bf3d6338b
DEBUG:msmart.discover:Decrypted data from 192.168.254.13: 0dfea8c02c19000030303030303050303030303030305131303444364634333738333934303030300b6e65745f61635f383339340000870002000000000000000000ac00acac0000000004d6f4378394150029102237000301000000000000000000000000000000000000000000000000000000000000000000
INFO:msmart.cloud:Using Midea cloud server: https://mp-prod.appsmb.com (China: False).
INFO:httpx:HTTP Request: POST https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=%2Fv1%2Fuser%2Flogin%2Fid%2Fget "HTTP/1.1 200 "
DEBUG:msmart.cloud:API response: {"code":"0","msg":"ok","data":{"loginId":"3d98c224-16cc-4519-908b-596b93c5"}}
DEBUG:msmart.cloud:Received loginId: 3d98c224-16cc-4519-908b-596b93c5
DEBUG:msmart.discover:Discovered 1 devices.
INFO:httpx:HTTP Request: POST https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=%2Fmj%2Fuser%2Flogin "HTTP/1.1 200 OK"
DEBUG:msmart.cloud:API response: {"code":0,"msg":"\u6210\u529f","data":{"randomData":"d18e0878237454abd29653b9aac817c8b97d9f0c4ecd9792032105db74e3a312","uid":"83947250d2448ffdf02e111c74bad51e","accountId":"1023665078","nickname":"midea","mdata":{"tokenPwdInfo":{"tokenPwd":"44ae5f5e153d4864aff19d9963a4296c","expiredDate":1705581280926,"createDate":1702989280926},"userInfo":{"sourceId":"mj_12345","empId":"5456771537545216","address":"","gender":"0","mobile":"midea@mailinator.com","userDeptInfoList":null,"extras":null,"nameEn":null,"employeeNumber":null,"headPhoto":null,"uid":"83947250d2448ffdf02e111c74bad51e","name":"midea@mailinator.com","email":null},"doDeviceBind":null,"accessToken":"T1j1rvfnmyo05v97x","signUnlockEnabled":null},"accessToken":"527fa1b26fa7c362656aa04b2298a571949e640045603290161c596da1b6f6b5","userId":"89056511576065","email":"midea@mailinator.com"}}
DEBUG:msmart.cloud:Received accessToken: T1j1rvfnmyo05v97x
DEBUG:msmart.discover:Fetching token and key for udpid '5e49fb4c0a30778ca6e1095777cf817a' (little).
INFO:httpx:HTTP Request: POST https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=%2Fv1%2Fiot%2Fsecure%2FgetToken "HTTP/1.1 200 OK"
DEBUG:msmart.cloud:API response: {"code":"0","msg":"ok","data":{"tokenlist":[{"udpId":"5e49fb4c0a30778ca6e1095777cf817a","key":"4a88969f2f4b4b878781abac16f8fbb9850504c779964b258ba266779cdcb6e1","token":"17871055EE37787E46F436A062B97811A4FADBBC58A8CEEF790405D09371F463CF094D9F9DE5E51987E98C7C83D84F88EC727B1EF3F5062D20DE3C7F70FA5672"}]}}
INFO:msmart.lan:Creating new connection to 192.168.254.13:6444.
DEBUG:msmart.lan:Connected to 192.168.254.13:6444.
INFO:msmart.lan:Authenticating with 192.168.254.13:6444.
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 837000402000000017871055ee37787e46f436a062b97811a4fadbbc58a8ceef790405d09371f463cf094d9f9de5e51987e98c7c83d84f88ec727b1ef3f5062d20de3c7f70fa5672
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 83700005200f00204552524f52
DEBUG:msmart.discover:Fetching token and key for udpid 'a200e49796b3e8dadca0c79bf3d6338b' (big).
INFO:httpx:HTTP Request: POST https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=%2Fv1%2Fiot%2Fsecure%2FgetToken "HTTP/1.1 200 OK"
DEBUG:msmart.cloud:API response: {"code":"0","msg":"ok","data":{"tokenlist":[{"udpId":"a200e49796b3e8dadca0c79bf3d6338b","key":"cb376e60539440f9be54ad9bc57f47c51770da04de514dc5a515f365baed8760","token":"A915FFC1FDF401591A59214DC2C15B76F61E846C14408D07480C98C3A5DE025162F3900C36173295E4FB2BC351D06C81EBD898B781707349F6B83F154825A76F"}]}}
INFO:msmart.lan:Authenticating with 192.168.254.13:6444.
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370004020000001a915ffc1fdf401591a59214dc2c15b76f61e846c14408d07480c98c3a5de025162f3900c36173295e4fb2bc351d06c81ebd898b781707349f6b83f154825a76f
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 837000402001f9401751699aac61052cea74c088f33a97cc95087cda92895a84e5120def2f1ad1f5b6f044842c34772c0788c1dfe9f04c0d72ada36c82ac08002e4d35bae6b2e55d
INFO:msmart.lan:Authentication successful. Expiration: 2023-12-20T00:34:42, Local key: e5e4e8bf5eecc40d983d226e7203493535c451f4b42f463705cffa97be528e93
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa21ac8d000000000003418100ff03ff000200000000000000000000000003016971
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a01116800200000000000412b220c130c1714472a000000820000000000000000000000000000b8436dd15e84d5a4fc6fbf77d2b12486e10c552981b23022cb71ea0fc54dc25ecfa0ce55888ac57fc42a7eacc3285d3773e11c0fd83eae013f89c5f751e673b2
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370008e2066ccf9290ba3eb99d3d5f1d46c6477729842ddd6623621c5fdb7ec88c564c3e6e27f3d41a326693d635e0434a121a95e33d602e96b58526dd6823ec85b1d0aff6b7db482d56300f2d9028c175dd10cf2df838f01a7537732f6f13ba08d360bf83f66ea9175e0840cc8eddc99fe1eeaf09e0b2ea57cefc33a39d7d2b704d4f2205665ed7af9b64efa901d618e999c4f2d00
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370008e206350ccef13fa079cacb439ec63fb4ccaff6d81a29e9cbb94f7505a3193d099d7ba42e6406908ba613ed66cbb2c032d72412e6ccedbe4a28eeea37d840fead31a60d5fed91da4f880ad0b7692dca11415560bf9cb1b8da7c24a7a6acb0aff1e2d63dd47c021ba45864adac97cea788ec9da7c151e682e0532ead80f83800d6266014468d207f92e4a088326144efd0db7c7
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a011168002080000000000deb220c130c1714472a000000820000000000000000018000000000121b0e6771bb1f2d8014df2ca7d4eb5c8a170cf78c0307dafc52cbb0438be5a4f9ada4fd4d3e69e9adff52ff12d9ffab3a977ece5179b11d84b1e831143e2bf6
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa23ac00000000000303c00087667f7f00000000005dff0b00060000000000000001a46e
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.140000 seconds.
DEBUG:msmart.device.AC.command:State response payload: c00087667f7f00000000005dff0b00060000000000000001
INFO:msmart.cli:Querying device capabilities.
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa0faca3000000000003b50111022fa7
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a01115800200000000000502b220c130c1714472a00000082000000000000000000000000000008863383a51f6d4436ea7dd0f0c64916915c618b02ed2747fad73f2ffa0db1d34ca21ffed62adc0b9b9c19c40cae9f95
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370007e20660b6013de56c9c8f9b0d27b36f09edd7819b51de581d8b6ab18d9c6e3f892c8f8fa58602a7ca48d82683bd032c17f310c6396f084bf3aad0e37715ff5290bf577d8f97e4a1a4ab6cc42fbc4a4059f9f61f11b1bd5a458b88a4cc6652529bf408ef001a5ef0f9ac03aeb62e8d2a17e7fc072a3f1e792ccf7a39e8e7035fc109253
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370009e2063419cfe298019eb1d5796aeb295456ccbc970a21e8f8c483ce951eee8a37421b9d2452b9342c8668d18c340f4e81c630bbbe314a4744e186ec4f501e1c5c728bfb4076307fcd65758164d7afb2d2a326e3eae0a15d26cbbb4ffb88925973bea8fb3ac6bb6937544ac1e259e0a01444a2bb8a7500e4da2415fc8301a74a7bc3bb54e065cc45c7958339fa0c2b492210a2b08dc204a7f6dd73e617ea115521dec3b
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a01117800208000000000a0eb220c130c1714472a0000008200000000000000000180000000004acf54e08f29f1c519db8dde2ba4816f440131abceaa46605f969c604d7a63ec04cce07ec260ce3a50d3005c21213b219c3ed6165ed186f7073ffc77ca16b14808d5be6cf6c815bd8bab15f4d30db844
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa3dac00000000000303b50a12020101430001011402010115020101160201001a020101100201011f020103250207203c203c203c05400001000100c805
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.150000 seconds.
DEBUG:msmart.device.AC.command:Capabilities response payload: b50a12020101430001011402010115020101160201001a020101100201011f020103250207203c203c203c05400001000100
WARNING:msmart.device.AC.command:Unknown capability. ID: 0x  40, Size: 1.
DEBUG:msmart.device.AC.command:Supported capabilities: {'eco_mode': True, 'eco_mode_2': False, 'breeze_control': True, 'heat_mode': True, 'cool_mode': True, 'dry_mode': True, 'auto_mode': True, 'swing_horizontal': True, 'swing_vertical': True, 'power_stats': False, 'power_setting': False, 'power_bcd': False, 'turbo_heat': True, 'turbo_cool': True, 'fan_silent': False, 'fan_low': False, 'fan_medium': False, 'fan_high': False, 'fan_auto': False, 'fan_custom': True, 'humidity_auto_set': False, 'humidity_manual_set': True, 'cool_min_temperature': 16.0, 'cool_max_temperature': 30.0, 'auto_min_temperature': 16.0, 'auto_max_temperature': 30.0, 'heat_min_temperature': 16.0, 'heat_max_temperature': 30.0, 'decimals': True}
INFO:msmart.cli:{'supported_modes': [<OperationalMode.FAN_ONLY: 5>, <OperationalMode.DRY: 3>, <OperationalMode.COOL: 2>, <OperationalMode.HEAT: 4>, <OperationalMode.AUTO: 1>], 'supported_swing_modes': [<SwingMode.OFF: 0>, <SwingMode.HORIZONTAL: 3>, <SwingMode.VERTICAL: 12>, <SwingMode.BOTH: 15>], 'supported_fan_speeds': [<FanSpeed.SILENT: 20>, <FanSpeed.LOW: 40>, <FanSpeed.MEDIUM: 60>, <FanSpeed.HIGH: 100>, <FanSpeed.AUTO: 102>], 'supports_custom_fan_speed': True, 'supports_eco_mode': True, 'supports_turbo_mode': True, 'supports_freeze_protection_mode': False, 'supports_display_control': False, 'supports_filter_reminder': False, 'max_target_temperature': 30.0, 'min_target_temperature': 16.0}
lpispek commented 6 months ago

And one option that can be active only in heating mode is "Freeze Protection".

Freeze protection is implemented as the "away" preset in HA, but your device's capabilities indicate it's not supported. You can force all presets to be displayed using the "Show All Presets" configuration option.

And just to confirm "away" option is activating "Freeze Protection" - Unit has on LCD "FP" indication. So this is working but only in Heating mode. This is the configuration. image

mill1000 commented 6 months ago

Thanks. It's become apparent to me that I'm not reading all the device capabilities (mill1000/midea-msmart/issues/98) which may be why msmart-ng thinks your device can't do freeze protection.

Otherwise, my units are away for the season so I can't easily test the protocol changes. Custom dry will be the easiest to implement so if I get around to anything that would be the first on the list.

mill1000 commented 6 months ago

I've got a PR in progress to resolve the capabilities issue (https://github.com/mill1000/midea-msmart/issues/99). @lpispek Would you be able to test?

Docker

docker run --network=host ghcr.io/mill1000/msmart-ng:pr-99 query --capabilities --debug <device_ip>

Pip

  1. Install experimental branch

    pip install git+https://github.com/mill1000/midea-msmart@issue/more_capabilities
  2. Query compatibilities with --debug enabled. i.e.

    msmart-ng query --capabilities --debug <device_ip>
lpispek commented 6 months ago

msmart-ng query 192.168.254.13 --capabilities --auto --debug like this is working.


DEBUG:asyncio:Using selector: EpollSelector
INFO:msmart.cli:Discovering 192.168.254.13 on local network.
DEBUG:msmart.discover:Discovery sent to 192.168.254.13:6445.
DEBUG:msmart.discover:Discovery sent to 192.168.254.13:20086.
DEBUG:msmart.discover:Waiting 5 seconds for responses...
DEBUG:msmart.discover:Discovery response from 192.168.254.13: 837000c8200f00005a5a0111b8007a800000000035ad090a160c1714472a000000820000000000000000018000000000cb947c37ce381dc68a6cefdc9d8a39531792efa2d6ad33fba2e7a715120fe2e6db5f1f5733490f35b808fb9a808c04effa075189dd34f10de751caabf2a1e91c2c9329e81450db7d5fb20eed90403e3af3d28b52bb5704abcbab9af7db794cca4bdfb3e16e33d88768cc4c3d0658937d0bb19369bf0317b24d3a4de9e6a13106f6fdfadb4f1da729f7f369d52cd7eeb4a200e49796b3e8dadca0c79bf3d6338b
DEBUG:msmart.discover:Decrypted data from 192.168.254.13: 0dfea8c02c19000030303030303050303030303030305131303444364634333738333934303030300b6e65745f61635f383339340000870002000000000000000000ac00acac0000000004d6f4378394150029102237000301000000000000000000000000000000000000000000000000000000000000000000
INFO:msmart.cloud:Using Midea cloud server: https://mp-prod.appsmb.com (China: False).
INFO:httpx:HTTP Request: POST https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=%2Fv1%2Fuser%2Flogin%2Fid%2Fget "HTTP/1.1 200 "
DEBUG:msmart.cloud:API response: {"code":"0","msg":"ok","data":{"loginId":"4db0ef51-ef35-4efb-b739-5d7bf4c2"}}
DEBUG:msmart.cloud:Received loginId: 4db0ef51-ef35-4efb-b739-5d7bf4c2
DEBUG:msmart.discover:Discovered 1 devices.
INFO:httpx:HTTP Request: POST https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=%2Fmj%2Fuser%2Flogin "HTTP/1.1 200 OK"
DEBUG:msmart.cloud:API response: {"code":0,"msg":"\u6210\u529f","data":{"randomData":"dc7aef96e04919620987d653fad60efba05e1870b60c811199ba9e0b91cf6273","uid":"83947250d2448ffdf02e111c74bad51e","accountId":"1023665078","nickname":"midea","mdata":{"tokenPwdInfo":{"tokenPwd":"466a07281b5b4b2f8705b8a448dd46d7","expiredDate":1705831792278,"createDate":1703239792278},"userInfo":{"sourceId":"mj_12345","empId":"5456771537545216","address":"","gender":"0","mobile":"midea@mailinator.com","userDeptInfoList":null,"extras":null,"nameEn":null,"employeeNumber":null,"headPhoto":null,"uid":"83947250d2448ffdf02e111c74bad51e","name":"midea@mailinator.com","email":null},"doDeviceBind":null,"accessToken":"T1j388ykhwqoi9km","signUnlockEnabled":null},"accessToken":"699fbbbe15cf63cf2a6295c7b06c7ae78a18aaa59cc2325b6ada7dabfbe46adc","userId":"89056511576065","email":"midea@mailinator.com"}}
DEBUG:msmart.cloud:Received accessToken: T1j388ykhwqoi9km
DEBUG:msmart.discover:Fetching token and key for udpid '5e49fb4c0a30778ca6e1095777cf817a' (little).
INFO:httpx:HTTP Request: POST https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=%2Fv1%2Fiot%2Fsecure%2FgetToken "HTTP/1.1 200 OK"
DEBUG:msmart.cloud:API response: {"code":"0","msg":"ok","data":{"tokenlist":[{"udpId":"5e49fb4c0a30778ca6e1095777cf817a","key":"b6b592cbf5074f9c90a6f5e806e52bc1326750293f284cb6a92070886e08ca93","token":"F826269CFBD274568F3293BE2B37ECFD3391BF165E657EFB8B5FA1DFC7D0C4AD4C76D9D3250CF6FFE771FE62066F6BE9BD119D00D306D95CACAAA558EA334D2E"}]}}
INFO:msmart.lan:Creating new connection to 192.168.254.13:6444.
DEBUG:msmart.lan:Connected to 192.168.254.13:6444.
INFO:msmart.lan:Authenticating with 192.168.254.13:6444.
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370004020000000f826269cfbd274568f3293be2b37ecfd3391bf165e657efb8b5fa1dfc7d0c4ad4c76d9d3250cf6ffe771fe62066f6be9bd119d00d306d95cacaaa558ea334d2e
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 83700005200f00204552524f52
DEBUG:msmart.discover:Fetching token and key for udpid 'a200e49796b3e8dadca0c79bf3d6338b' (big).
INFO:httpx:HTTP Request: POST https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=%2Fv1%2Fiot%2Fsecure%2FgetToken "HTTP/1.1 200 OK"
DEBUG:msmart.cloud:API response: {"code":"0","msg":"ok","data":{"tokenlist":[{"udpId":"a200e49796b3e8dadca0c79bf3d6338b","key":"64c214a057834dc18e99c096f2fa3a3135af8dee040a4a1ab42ebc4302c72dcd","token":"5C961400B8E9EFC124F2BC58F85B61C47846D2C719BF0DC65826CCA2F3D3E2E9224706080ECBE9E2B573462B610A050C78ACB286849DF594F18D4757D417E806"}]}}
INFO:msmart.lan:Authenticating with 192.168.254.13:6444.
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 83700040200000015c961400b8e9efc124f2bc58f85b61c47846d2c719bf0dc65826cca2f3d3e2e9224706080ecbe9e2b573462b610a050c78acb286849df594f18d4757d417e806
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 837000402001c14d769883bfb8941b0df8c215afd01e1cfc9645d57747781769c27c258fd5ddad0cf3b1d36a1490cabcde003caddbc04f6df6ecd2268865b59f9afcf870c6bddd2a
INFO:msmart.lan:Authentication successful. Expiration: 2023-12-22T22:09:54, Local key: cfe10940ee515109c642545e33d9aefd8cc81d22f951dad475572e8de1a0bf02
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa21ac8d000000000003418100ff03ff000200000000000000000000000003016971
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a011168002000000000000037090a160c1714472a000000820000000000000000000000000000b8436dd15e84d5a4fc6fbf77d2b12486e10c552981b23022cb71ea0fc54dc25ecfa0ce55888ac57fc42a7eacc3285d37e7d485eaef2d498dc9cc952c63131a0b
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370008e20661e523496b6c36a3fa0ba15050cc8a460895351cc0c67b69dbbcc49d2af1f6b946d2a331f8f11e670f07aa7e86f550cc26219df6d7f37115c49eee4710663b3191c1532fea9b5ddba88fbfafc3d0a0c402607933b7d5df8e5a50c22c734b77d01d1bd76bc8310094ab5a42696153e7da35daabf3d25a60dffc5683010b6d9bf0ee24eb49a9294b0cb592895fd3644d241
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370008e20630824f6ec14d24754c91cd30f658c4ed1c29d95d7533461a773f7fb64428b72a827d0bc2a105bed6290359a128ecc842ed0aa65a1b9e8ce4c488f372e6a35f4f9a3baecc84995d4315028530a0512d2b15ff793c393125c1211b33f14ae59f31c7cb88f6c1a1675d3042e0d0fa575f2181111fb6ce8c507416ee8423f655cdfb682cdd9dbe9bc95c9e747a8fe7589a6ac
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a011168002080000000008837090a160c1714472a000000820000000000000000018000000000121b0e6771bb1f2d8014df2ca7d4eb5c0a86cfb1025cff6e39b2d6a75b853275f8903212e5a62c32be2414816758e5b1dc4d09f72d4e1a88748ad3dd4007c0d0
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa23ac00000000000303c00087667f7f00000000005cff0b000300000000000000010511
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.150000 seconds.
DEBUG:msmart.device.AC.command:State response payload: c00087667f7f00000000005cff0b00030000000000000001
INFO:msmart.cli:Querying device capabilities.
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa0faca3000000000003b501000207e0
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a011158002000000000001037090a160c1714472a0000008200000000000000000000000000004daedb8f221107912b6b88a740f90d86915c618b02ed2747fad73f2ffa0db1d339dd8b26d894ce32abd70a4717b3cb44
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370007e2066f1f60e4ddaf716141cf6dede7e317a6c9e2786f7912e50804412de4afcc8dbf7c32f7e970ba906148891ac8f823794b294e228a7b26fd960414152e82fb977d76d219f58e83214ee82e92cc09052791438479a874eb922a7be88ad37cef28c13470b237e0ae22c0edd146f9e23411adcd397375517db3f116cc614a596c2fb9b
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370009e20632898701a23521204ded512ec49ba1c6a80baaac841846f81430b9d57e1db3230787cf7ab32e733376021c1f32a6c17f45e22f9f43673bb6d236848c77ef5bda60e1f613c8b4fd70390bfb9a0190e4454b3477ab51877085ac4f298760bdac2fbf13512856088bd0db56dc204a5a7bc443709e5b6e697db0009cdba22d583e6710dde13d84840909904fb89c4b55007018da5142a85e8bfbdfb7b46b1f2aec6ea
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a011178002080000000001b77090a160c1714472a0000008200000000000000000180000000004acf54e08f29f1c519db8dde2ba4816f440131abceaa46605f969c604d7a63ec04cce07ec260ce3a50d3005c21213b219c3ed6165ed186f7073ffc77ca16b14880901231a772c392c5da9e759f353f80
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa3dac00000000000303b50a12020101430001011402010115020101160201001a020101100201011f020103250207203c203c203c05400001000100c805
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.140000 seconds.
DEBUG:msmart.device.AC.command:Capabilities response payload: b50a12020101430001011402010115020101160201001a020101100201011f020103250207203c203c203c05400001000100
WARNING:msmart.device.AC.command:Unknown capability. ID: 0x  40, Size: 1.
DEBUG:msmart.device.AC.command:Supported capabilities: {'eco_mode': True, 'eco_mode_2': False, 'breeze_control': True, 'heat_mode': True, 'cool_mode': True, 'dry_mode': True, 'auto_mode': True, 'swing_horizontal': True, 'swing_vertical': True, 'power_stats': False, 'power_setting': False, 'power_bcd': False, 'turbo_heat': True, 'turbo_cool': True, 'fan_silent': False, 'fan_low': False, 'fan_medium': False, 'fan_high': False, 'fan_auto': False, 'fan_custom': True, 'humidity_auto_set': False, 'humidity_manual_set': True, 'cool_min_temperature': 16.0, 'cool_max_temperature': 30.0, 'auto_min_temperature': 16.0, 'auto_max_temperature': 30.0, 'heat_min_temperature': 16.0, 'heat_max_temperature': 30.0, 'decimals': True}
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa10acbc000000000003b5010101039f2b
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a011158002000000000001e37090a160c1714472a0000008200000000000000000000000000007ae79fb4491b251daec618bdbe643572b114417e36b7c549cf5267a48c09f709456db3f13fc0d7e231a4d48ab23386b7
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370007e20664494a7b6337346bfab2657d4eb06e68ac5d30181bcfd446d9ff63926a5040281b58ce36e705cf9f5fef96bf8b6e22ec8dd000f9ca595f50e2bd1f47bd67699a0af0b334eb91e884030253d59ffa23439b2387aa7e869f4aedbcf803dfcddc13f676ae9bc8a4e96b9438f979f49258e3aea1b740a6d8013b7b8be21a5251fd4ac
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370008e206302f3633613286bd02d35790ea1c0ffb58aaba1ff6169663f13ef754bd303e4b2f1bc42e54a75fd1e86930a59e74cade06094be085abc2825ca4b84b3ebd1b7f98521117e448382b83de24b2c4241fd507dc91a085a5b4703ee1467cddc3036968689fcf63544ba77a3896d66b7910b02d696db11c98eb60a8f816fad04431947aec5fb1b7a9be3fb874d59da24e92d42
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a011168002080000000009677090a160c1714472a000000820000000000000000018000000000fb1a2b24ec0a7d48a018dd75c07336805eab2881baca7cf77395a43aa7e53eab53e0cb551f7282c20afd76b68f00701254099d87bdf610a0ddbb31a10673bd78
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa23ac00000000000303b5051e020101130201012202010019020100390001010000febe
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.120000 seconds.
DEBUG:msmart.device.AC.command:Capabilities response payload: b5051e020101130201012202010019020100390001010000
WARNING:msmart.device.AC.command:Unsupported capability. ID: 0x021E, Size: 1.
DEBUG:msmart.device.AC.command:Supported capabilities: {'freeze_protection': True, 'fahrenheit': True, 'aux_electric_heat': False, 'self_clean': True}
DEBUG:msmart.device.AC.command:Merged capabilities: {'eco_mode': True, 'eco_mode_2': False, 'breeze_control': True, 'heat_mode': True, 'cool_mode': True, 'dry_mode': True, 'auto_mode': True, 'swing_horizontal': True, 'swing_vertical': True, 'power_stats': False, 'power_setting': False, 'power_bcd': False, 'turbo_heat': True, 'turbo_cool': True, 'fan_silent': False, 'fan_low': False, 'fan_medium': False, 'fan_high': False, 'fan_auto': False, 'fan_custom': True, 'humidity_auto_set': False, 'humidity_manual_set': True, 'cool_min_temperature': 16.0, 'cool_max_temperature': 30.0, 'auto_min_temperature': 16.0, 'auto_max_temperature': 30.0, 'heat_min_temperature': 16.0, 'heat_max_temperature': 30.0, 'decimals': True, 'freeze_protection': True, 'fahrenheit': True, 'aux_electric_heat': False, 'self_clean': True}
INFO:msmart.cli:{'supported_modes': [<OperationalMode.FAN_ONLY: 5>, <OperationalMode.DRY: 3>, <OperationalMode.COOL: 2>, <OperationalMode.HEAT: 4>, <OperationalMode.AUTO: 1>], 'supported_swing_modes': [<SwingMode.OFF: 0>, <SwingMode.HORIZONTAL: 3>, <SwingMode.VERTICAL: 12>, <SwingMode.BOTH: 15>], 'supported_fan_speeds': [<FanSpeed.SILENT: 20>, <FanSpeed.LOW: 40>, <FanSpeed.MEDIUM: 60>, <FanSpeed.HIGH: 100>, <FanSpeed.AUTO: 102>], 'supports_custom_fan_speed': True, 'supports_eco_mode': True, 'supports_turbo_mode': True, 'supports_freeze_protection_mode': True, 'supports_display_control': False, 'supports_filter_reminder': False, 'max_target_temperature': 30.0, 'min_target_temperature': 16.0}```
mill1000 commented 6 months ago

Thanks your earlier messages highlighted an issue in the code. It's resolved now.

Can you test again?

Install the latest version

pip install git+https://github.com/mill1000/midea-msmart@issue/more_capabilities

Query capabilities again

msmart-ng query 192.168.254.13 --capabilities --auto --debug

And also query state

 msmart-ng query 192.168.254.13 --auto --debug
lpispek commented 6 months ago

msmart-ng query 192.168.254.13 --capabilities --auto --debug

DEBUG:asyncio:Using selector: EpollSelector
INFO:msmart.cli:Discovering 192.168.254.13 on local network.
DEBUG:msmart.discover:Discovery sent to 192.168.254.13:6445.
DEBUG:msmart.discover:Discovery sent to 192.168.254.13:20086.
DEBUG:msmart.discover:Waiting 5 seconds for responses...
DEBUG:msmart.discover:Discovery response from 192.168.254.13: 837000c8200f00005a5a0111b8007a8000000000abab3014160c1714472a000000820000000000000000018000000000cb947c37ce381dc68a6cefdc9d8a39531792efa2d6ad33fba2e7a715120fe2e6db5f1f5733490f35b808fb9a808c04effa075189dd34f10de751caabf2a1e91c2c9329e81450db7d5fb20eed90403e3af3d28b52bb5704abcbab9af7db794cca4bdfb3e16e33d88768cc4c3d0658937d0bb19369bf0317b24d3a4de9e6a131062ac622dc68ca787191212afb125927fea200e49796b3e8dadca0c79bf3d6338b
DEBUG:msmart.discover:Decrypted data from 192.168.254.13: 0dfea8c02c19000030303030303050303030303030305131303444364634333738333934303030300b6e65745f61635f383339340000870002000000000000000000ac00acac0000000004d6f4378394150029102237000301000000000000000000000000000000000000000000000000000000000000000000
INFO:msmart.cloud:Using Midea cloud server: https://mp-prod.appsmb.com (China: False).
INFO:httpx:HTTP Request: POST https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=%2Fv1%2Fuser%2Flogin%2Fid%2Fget "HTTP/1.1 200 "
DEBUG:msmart.cloud:API response: {"code":"0","msg":"ok","data":{"loginId":"3af00417-31b7-45da-a94d-2f0014df"}}
DEBUG:msmart.cloud:Received loginId: 3af00417-31b7-45da-a94d-2f0014df
DEBUG:msmart.discover:Discovered 1 devices.
INFO:httpx:HTTP Request: POST https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=%2Fmj%2Fuser%2Flogin "HTTP/1.1 200 OK"
DEBUG:msmart.cloud:API response: {"code":0,"msg":"\u6210\u529f","data":{"randomData":"ddbed08a9e54985c544c6b2c73fca5f67f0a40e999c9c8c262afc681731d8dbb","uid":"83947250d2448ffdf02e111c74bad51e","accountId":"1023665078","nickname":"midea","mdata":{"tokenPwdInfo":{"tokenPwd":"d5d12d5a004f4961b5ebf241f2324208","expiredDate":1705870130723,"createDate":1703278130723},"userInfo":{"sourceId":"mj_12345","empId":"5456771537545216","address":"","gender":"0","mobile":"midea@mailinator.com","userDeptInfoList":null,"extras":null,"nameEn":null,"employeeNumber":null,"headPhoto":null,"uid":"83947250d2448ffdf02e111c74bad51e","name":"midea@mailinator.com","email":null},"doDeviceBind":null,"accessToken":"T1j3g9iqigw030pow","signUnlockEnabled":null},"accessToken":"46f1c51113b1f9d945a197d33a60ed792c68bc1e74fb88b0a029ae1988f9c38c","userId":"89056511576065","email":"midea@mailinator.com"}}
DEBUG:msmart.cloud:Received accessToken: T1j3g9iqigw030pow
DEBUG:msmart.discover:Fetching token and key for udpid '5e49fb4c0a30778ca6e1095777cf817a' (little).
INFO:httpx:HTTP Request: POST https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=%2Fv1%2Fiot%2Fsecure%2FgetToken "HTTP/1.1 200 OK"
DEBUG:msmart.cloud:API response: {"code":"0","msg":"ok","data":{"tokenlist":[{"udpId":"5e49fb4c0a30778ca6e1095777cf817a","key":"88f8c128b2124ae5be80300cfa7ad4519dae80082a104d8eb4404d5ff9390e57","token":"2B76A7C1609C89A26EA1D3121A856F3D0EB59F96B84D82053586702D18217F8FCE53212BB9F1B5513D10BBABD38ABD62524857865360F93BD6577153166AA629"}]}}
INFO:msmart.lan:Creating new connection to 192.168.254.13:6444.
DEBUG:msmart.lan:Connected to 192.168.254.13:6444.
INFO:msmart.lan:Authenticating with 192.168.254.13:6444.
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 83700040200000002b76a7c1609c89a26ea1d3121a856f3d0eb59f96b84d82053586702d18217f8fce53212bb9f1b5513d10bbabd38abd62524857865360f93bd6577153166aa629
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 83700005200f00204552524f52
DEBUG:msmart.discover:Fetching token and key for udpid 'a200e49796b3e8dadca0c79bf3d6338b' (big).
INFO:httpx:HTTP Request: POST https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=%2Fv1%2Fiot%2Fsecure%2FgetToken "HTTP/1.1 200 OK"
DEBUG:msmart.cloud:API response: {"code":"0","msg":"ok","data":{"tokenlist":[{"udpId":"a200e49796b3e8dadca0c79bf3d6338b","key":"a0eff70c4e044dbba20fd145fb5df964264cff6aa5e64650977f7336a5a40b13","token":"67AE3605D169020359CE677C3D58EE783FC46CCFB7E3FA714A9C5381FA4BA89D9E433B6B8EF3347D7FC8AC548489B6500E23FD19006D5400D8E154A7F073CD2A"}]}}
INFO:msmart.lan:Authenticating with 192.168.254.13:6444.
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 837000402000000167ae3605d169020359ce677c3d58ee783fc46ccfb7e3fa714a9c5381fa4ba89d9e433b6b8ef3347d7fc8ac548489b6500e23fd19006d5400d8e154a7f073cd2a
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 837000402001bb4d34982c8f75e205475edfa9a1b0be2485b1379bd951a1c7811bd2ec343f44253f0c90e80882a4f0e9c48ded0cda4717c3206060ff2b0b65c0fd5451ad16dd4418
INFO:msmart.lan:Authentication successful. Expiration: 2023-12-23T08:48:52, Local key: 634b27f3f3ae1575111a888ff74f24aead8122a27168999880deacff1d64d5da
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa21ac8d000000000003418100ff03ff000200000000000000000000000003016971
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a011168002000000000002e353014160c1714472a000000820000000000000000000000000000b8436dd15e84d5a4fc6fbf77d2b12486e10c552981b23022cb71ea0fc54dc25ecfa0ce55888ac57fc42a7eacc3285d373c97412283d6517e15a95e87bfaa9754
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370008e206645e0a6c7ab6531d83ef3d8bfdcc342121659a68cf9cc4df263125da89050a52316bcd02c56fe641165c50b625d2a81167215ec3408ba76df2e91ee9df956a40615ac5d3f30aaa2d59330431b53e5d5f6522fc13accb1253e7786e1ff74e82b0ebec893cedf90276fc10650875641fee40dc5969214a79752924bd6c65a004bd43fae019e3198e00cd078e101d92bb142
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370008e2063360d04e8a4de63742ffee2ade1895b55e807f84e54909c0ce499e807a2b07e4c9287542d8788557244cce3275a6d288515b940a6f4544260a4c55b0655b493f02e85758a3049d210f890103ad9123729fc3ae5387cda657bd8b94d8c150a9a68df5d3ebed0d21c80d6a0b8e42be10a587f9f30accc6ce65721d993ba575ce70183eaed4b9d16d88281dcc8f2c254142c
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a0111680020800000000051b53014160c1714472a000000820000000000000000018000000000121b0e6771bb1f2d8014df2ca7d4eb5c9bde19c9bee9df378afa9c3d88e04bce6485d9a4fd697d1fef8a43c894eb0bd2a925d0a23c44019ad0afb362ae2c0ce5
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa23ac00000000000303c00087667f7f00000000005aff0b000000000000000000010912
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.140000 seconds.
DEBUG:msmart.device.AC.command:State response payload: c00087667f7f00000000005aff0b00000000000000000001
INFO:msmart.cli:Querying device capabilities.
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa0faca3000000000003b501000207e0
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a011158002000000000003c353014160c1714472a0000008200000000000000000000000000004daedb8f221107912b6b88a740f90d86915c618b02ed2747fad73f2ffa0db1d3bc86ed03d052caac5805c63141b6dd67
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370007e20660028471554e1dcf176334001f571d292be9ea24d9089d851e1366a13311e0b07e826e6012f5c79323f5957ba61535f79ff1764ce8975da2c253e68176abc69b4f42f387e4b84e19816c87d04a4a1c147dc6bc738cb75444723cbecf7fb2818e3bed0df2488d8c58477855d201b29df03062cca27238cc0f054a1a124b1cac711
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370009e2063245599592224fb273c0f8a2baa0e53e429d575aa91f68f894a841f0041a27fd5825dcf5801c7b893109daa31976517723d5004fc629ae0dac114ce525fdfa476e4f23ab2358e189221b86de68271c9bea634880b1ace15ee1d66a48dbe13782b360ee92b5bf9b50f3cead083d57d3795a40f1a7059e874733df11ffbe3e2520f190b11827dbb5c095a427efbc0bf13114fbc788dbc4053b3acdd2d268d31f82d
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a01117800208000000000e4b53014160c1714472a0000008200000000000000000180000000004acf54e08f29f1c519db8dde2ba4816f440131abceaa46605f969c604d7a63ec04cce07ec260ce3a50d3005c21213b219c3ed6165ed186f7073ffc77ca16b14839260a0acaedc087b5d0ff1a8e9b4323
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa3dac00000000000303b50a12020101430001011402010115020101160201001a020101100201011f020103250207203c203c203c05400001000100c805
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.150000 seconds.
DEBUG:msmart.device.AC.command:Capabilities response payload: b50a12020101430001011402010115020101160201001a020101100201011f020103250207203c203c203c05400001000100
WARNING:msmart.device.AC.command:Unknown capability. ID: 0x  40, Size: 1.
DEBUG:msmart.device.AC.command:Raw capabilities: {'eco_mode': True, 'eco_mode_2': False, 'breeze_control': True, 'heat_mode': True, 'cool_mode': True, 'dry_mode': True, 'auto_mode': True, 'swing_horizontal': True, 'swing_vertical': True, 'power_stats': False, 'power_setting': False, 'power_bcd': False, 'turbo_heat': True, 'turbo_cool': True, 'fan_silent': False, 'fan_low': False, 'fan_medium': False, 'fan_high': False, 'fan_auto': False, 'fan_custom': True, 'humidity_auto_set': False, 'humidity_manual_set': True, 'cool_min_temperature': 16.0, 'cool_max_temperature': 30.0, 'auto_min_temperature': 16.0, 'auto_max_temperature': 30.0, 'heat_min_temperature': 16.0, 'heat_max_temperature': 30.0, 'decimals': True}
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa10acbc000000000003b5010101039f2b
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a011158002000000000004b353014160c1714472a0000008200000000000000000000000000007ae79fb4491b251daec618bdbe643572b114417e36b7c549cf5267a48c09f7095d3fa3d29f52df251f93dfd1c277d71f
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370007e2066ae9822ec44d9c50cfe485e342a756412da27db5ceeb0a7673154a587125e871ce7ce110707e3c5c89c0d4e1d210e2ca17a3f3d886469270733c4411a7b3980e45f57670ecebc7b54b31fe2e1420901e4c36bfa004a73551dcf402f0b337204be826ee3e5f1553c7a71aff5842ccd05406911288f2ec0c6730f82cfc4a50f15a7
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370008e206395ae5ed8849c79f266499f5c820d671c06cf87dbb43a54165e770a63d20ff2dc9eec702eef517b59a865a258400a61f4939ca68bb508dbd42014e65fca30321854fc2e3f609e1161a7cdf991f1fc2a50ac9d495e5df11077ff9d68209516bf2d8980f58b500f22481666d855df263e99d2485ed0289453ca0195ac47f598d2e961b5f8616a736ded6b574ad23979bc9c
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a011168002080000000005ff53014160c1714472a000000820000000000000000018000000000fb1a2b24ec0a7d48a018dd75c07336805eab2881baca7cf77395a43aa7e53eab53e0cb551f7282c20afd76b68f007012e15d0b551658e009adcd0c6e6e29e287
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa23ac00000000000303b5051e020101130201012202010019020100390001010000febe
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.120000 seconds.
DEBUG:msmart.device.AC.command:Capabilities response payload: b5051e020101130201012202010019020100390001010000
DEBUG:msmart.device.AC.command:Raw capabilities: {'anion': True, 'freeze_protection': True, 'fahrenheit': True, 'aux_electric_heat': False, 'self_clean': True}
DEBUG:msmart.device.AC.command:Merged raw capabilities: {'eco_mode': True, 'eco_mode_2': False, 'breeze_control': True, 'heat_mode': True, 'cool_mode': True, 'dry_mode': True, 'auto_mode': True, 'swing_horizontal': True, 'swing_vertical': True, 'power_stats': False, 'power_setting': False, 'power_bcd': False, 'turbo_heat': True, 'turbo_cool': True, 'fan_silent': False, 'fan_low': False, 'fan_medium': False, 'fan_high': False, 'fan_auto': False, 'fan_custom': True, 'humidity_auto_set': False, 'humidity_manual_set': True, 'cool_min_temperature': 16.0, 'cool_max_temperature': 30.0, 'auto_min_temperature': 16.0, 'auto_max_temperature': 30.0, 'heat_min_temperature': 16.0, 'heat_max_temperature': 30.0, 'decimals': True, 'anion': True, 'freeze_protection': True, 'fahrenheit': True, 'aux_electric_heat': False, 'self_clean': True}
INFO:msmart.cli:{'supported_modes': [<OperationalMode.FAN_ONLY: 5>, <OperationalMode.DRY: 3>, <OperationalMode.COOL: 2>, <OperationalMode.HEAT: 4>, <OperationalMode.AUTO: 1>], 'supported_swing_modes': [<SwingMode.OFF: 0>, <SwingMode.HORIZONTAL: 3>, <SwingMode.VERTICAL: 12>, <SwingMode.BOTH: 15>], 'supported_fan_speeds': [<FanSpeed.SILENT: 20>, <FanSpeed.LOW: 40>, <FanSpeed.MEDIUM: 60>, <FanSpeed.HIGH: 100>, <FanSpeed.AUTO: 102>], 'supports_custom_fan_speed': True, 'supports_eco_mode': True, 'supports_turbo_mode': True, 'supports_freeze_protection_mode': True, 'supports_display_control': False, 'supports_filter_reminder': False, 'max_target_temperature': 30.0, 'min_target_temperature': 16.0}
lpispek commented 6 months ago

msmart-ng query 192.168.254.13 --auto --debug

DEBUG:asyncio:Using selector: EpollSelector
INFO:msmart.cli:Discovering 192.168.254.13 on local network.
DEBUG:msmart.discover:Discovery sent to 192.168.254.13:6445.
DEBUG:msmart.discover:Discovery sent to 192.168.254.13:20086.
DEBUG:msmart.discover:Waiting 5 seconds for responses...
DEBUG:msmart.discover:Discovery response from 192.168.254.13: 837000c8200f00005a5a0111b8007a800000000078ee3114160c1714472a000000820000000000000000018000000000cb947c37ce381dc68a6cefdc9d8a39531792efa2d6ad33fba2e7a715120fe2e6db5f1f5733490f35b808fb9a808c04effa075189dd34f10de751caabf2a1e91c2c9329e81450db7d5fb20eed90403e3af3d28b52bb5704abcbab9af7db794cca4bdfb3e16e33d88768cc4c3d0658937d0bb19369bf0317b24d3a4de9e6a131066a13bebcad06dec68ba4bd8dec8e9208a200e49796b3e8dadca0c79bf3d6338b
DEBUG:msmart.discover:Decrypted data from 192.168.254.13: 0dfea8c02c19000030303030303050303030303030305131303444364634333738333934303030300b6e65745f61635f383339340000870002000000000000000000ac00acac0000000004d6f4378394150029102237000301000000000000000000000000000000000000000000000000000000000000000000
INFO:msmart.cloud:Using Midea cloud server: https://mp-prod.appsmb.com (China: False).
INFO:httpx:HTTP Request: POST https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=%2Fv1%2Fuser%2Flogin%2Fid%2Fget "HTTP/1.1 200 "
DEBUG:msmart.cloud:API response: {"code":"0","msg":"ok","data":{"loginId":"3540f432-4658-4feb-b509-04f72a4c"}}
DEBUG:msmart.cloud:Received loginId: 3540f432-4658-4feb-b509-04f72a4c
DEBUG:msmart.discover:Discovered 1 devices.
INFO:httpx:HTTP Request: POST https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=%2Fmj%2Fuser%2Flogin "HTTP/1.1 200 OK"
DEBUG:msmart.cloud:API response: {"code":0,"msg":"\u6210\u529f","data":{"randomData":"b5e4ea03317654ba9f04edc4f9e13ddf818e6df59efd63f5477fa082e5b795f8","uid":"83947250d2448ffdf02e111c74bad51e","accountId":"1023665078","nickname":"midea","mdata":{"tokenPwdInfo":{"tokenPwd":"3eea7b7063c94fe6b2cf38080455faf8","expiredDate":1705870193213,"createDate":1703278193213},"userInfo":{"sourceId":"mj_12345","empId":"5456771537545216","address":"","gender":"0","mobile":"midea@mailinator.com","userDeptInfoList":null,"extras":null,"nameEn":null,"employeeNumber":null,"headPhoto":null,"uid":"83947250d2448ffdf02e111c74bad51e","name":"midea@mailinator.com","email":null},"doDeviceBind":null,"accessToken":"T1j3g9zpq77k4lyqf","signUnlockEnabled":null},"accessToken":"6cb94b4bce01b5cf1dae78dfc6f1f019c4050f657255b888d1fe3022370dcf0c","userId":"89056511576065","email":"midea@mailinator.com"}}
DEBUG:msmart.cloud:Received accessToken: T1j3g9zpq77k4lyqf
DEBUG:msmart.discover:Fetching token and key for udpid '5e49fb4c0a30778ca6e1095777cf817a' (little).
INFO:httpx:HTTP Request: POST https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=%2Fv1%2Fiot%2Fsecure%2FgetToken "HTTP/1.1 200 OK"
DEBUG:msmart.cloud:API response: {"code":"0","msg":"ok","data":{"tokenlist":[{"udpId":"5e49fb4c0a30778ca6e1095777cf817a","key":"40052338dab04d599f7cb4f9e8ef9c617f43b4ec6aac4ab8a97180c99a3bb15b","token":"AF64827BD355026E7C294DB1196DFC41DF10E9EAC7997591800B32A3EFE023FA57C915DC407F48F2F21CEBCC108FAF4CB5B52A40D545DA150AB753131062189A"}]}}
INFO:msmart.lan:Creating new connection to 192.168.254.13:6444.
DEBUG:msmart.lan:Connected to 192.168.254.13:6444.
INFO:msmart.lan:Authenticating with 192.168.254.13:6444.
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370004020000000af64827bd355026e7c294db1196dfc41df10e9eac7997591800b32a3efe023fa57c915dc407f48f2f21cebcc108faf4cb5b52a40d545da150ab753131062189a
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 83700005200f00204552524f52
DEBUG:msmart.discover:Fetching token and key for udpid 'a200e49796b3e8dadca0c79bf3d6338b' (big).
INFO:httpx:HTTP Request: POST https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=%2Fv1%2Fiot%2Fsecure%2FgetToken "HTTP/1.1 200 OK"
DEBUG:msmart.cloud:API response: {"code":"0","msg":"ok","data":{"tokenlist":[{"udpId":"a200e49796b3e8dadca0c79bf3d6338b","key":"5fb615e287904e0cba7c2f33f80aba4ae286494fad1e4c3fb405063c4b941274","token":"9E198138CBC023F429D275D4F304A38FB968485BDCDA564D3F8E3474E44F6F22A59C60304BD484B930C1834837CA5A5A48CDC37A6DFA90F1E3792FFA9F08F487"}]}}
INFO:msmart.lan:Authenticating with 192.168.254.13:6444.
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 83700040200000019e198138cbc023f429d275d4f304a38fb968485bdcda564d3f8e3474e44f6f22a59c60304bd484b930c1834837ca5a5a48cdc37a6dfa90f1e3792ffa9f08f487
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370004020010c4ec7730d50df8b1a18e50238e91e069ccbf24922c63894f9c23a1f7e81699be32dcf9fb57aea3939792efeccff81ffeaecb47f1c107f1e90bfe40f63b51076ad33
INFO:msmart.lan:Authentication successful. Expiration: 2023-12-23T08:49:54, Local key: e2a0dfee0262852ddb92691285167c6d6d148968acf58c1bcca9c518f4045151
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa21ac8d000000000003418100ff03ff000200000000000000000000000003016971
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a011168002000000000004f373114160c1714472a000000820000000000000000000000000000b8436dd15e84d5a4fc6fbf77d2b12486e10c552981b23022cb71ea0fc54dc25ecfa0ce55888ac57fc42a7eacc3285d3719eeb184c23dd28e466650203c9819d4
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370008e2066714e0e5e1e9525d6363f42752af2fc91adc0930c0d6b604b31551157fcbf36ab8d9014a77b1069011008b93a2295f8b2077bb4fc688ee825940507fa29640e950af7c8ba6a61f7e5ac4b33d34a3d60d28e17803ed2171339cae8860fef8685026e226b4f00b89c460526e2c3781cf483d4e8b5863c3f931d07fa1cd110b4fa0ac90c0e3d52705790eb65bebbec305428
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370008e206304280d33c1c88f42731383f92df0aed081d7ecbc0a86fd33411de72da8aa12b3853be980afb42028b912b140a36032842a99b1eca594234ea94ad5893a924a9d5be79c427aa3f9b9a7362a2970e98340cee13feccb105c5b49959ff5bf6d1e90e1fce3e482039709b03870c666d7306ed932d38311a2ebd1a9139d5ab6898334d8adc5646ac97f81fef11f4916dc19f1
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a011168002080000000009cf73114160c1714472a000000820000000000000000018000000000121b0e6771bb1f2d8014df2ca7d4eb5c9bde19c9bee9df378afa9c3d88e04bce6485d9a4fd697d1fef8a43c894eb0bd25324fa8aceff41b15bf3b8cdf78928ac
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa23ac00000000000303c00087667f7f00000000005aff0b000000000000000000010912
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.140000 seconds.
DEBUG:msmart.device.AC.command:State response payload: c00087667f7f00000000005aff0b00000000000000000001
INFO:msmart.cli:Querying device state.
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa21ac8d000000000003418100ff03ff000200000000000000000000000003028b4e
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a011168002000000000005d373114160c1714472a000000820000000000000000000000000000b8436dd15e84d5a4fc6fbf77d2b1248672946460bceafc6eae86e4200896522a734e1faa37ce959a047497632b36c8a8c74b618954d444171b8c599b86733dfb
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370008e20663f840eff91df1e99df344d0596e4e88a6eb6f727775c8e9bd099d133b4eeb96aa62e053980a9f40a2293b3ce135b23c4bcd144afd47597090ca16f0236623484ed5ed86831322103fc87dea49b537874acf6b72281f1eef2a25903fd72a151d0fe146731d7f0882e8e0934a8f0a358c57784427aa4bbfd6125144c7d697b120f6648d4d5c5059338cae3f525c0e357b4
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370008e20630c33ac4e2f372b847940047d568d6235e890761e6cae2432debf0f504ccf3b0f05cb1c05a3aa132cd74a7f86c93ccb873fa5b94e1cb9aac066b58e85c10cf70a8a8eb4ad44b42cbb8aabad244ef840e1f04bd0ed4647676a923e2bdae99feb32554f60b76c90377e8a3c7e616051e2b1da7675a68045e7de6bb76c8868aa4c5d7435ced64b3e2ebc4795890a7ce356d1
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a0111680020800000000040383114160c1714472a000000820000000000000000018000000000121b0e6771bb1f2d8014df2ca7d4eb5c9bde19c9bee9df378afa9c3d88e04bcec9f45b5c1c7a9f0626ed90c10bb2defe3b945d57de0fc47a3c92dad447180799
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa23ac00000000000303c00087667f7f00000000005aff0b00000000000000000002eb2f
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.140000 seconds.
DEBUG:msmart.device.AC.command:State response payload: c00087667f7f00000000005aff0b00000000000000000002
INFO:msmart.cli:{'ip': '192.168.254.13', 'port': 6444, 'id': 142936511621703, 'online': True, 'supported': True, 'type': <DeviceType.AIR_CONDITIONER: 172>, 'name': 'net_ac_8394', 'sn': '000000P0000000Q104D6F43783940000', 'key': '5fb615e287904e0cba7c2f33f80aba4ae286494fad1e4c3fb405063c4b941274', 'token': '9e198138cbc023f429d275d4f304a38fb968485bdcda564d3f8e3474e44f6f22a59c60304bd484b930c1834837ca5a5a48cdc37a6dfa90f1e3792ffa9f08f487', 'power': False, 'mode': <OperationalMode.HEAT: 4>, 'fan_speed': <FanSpeed.AUTO: 102>, 'swing_mode': <SwingMode.OFF: 0>, 'target_temperature': 23.0, 'indoor_temperature': 20.0, 'outdoor_temperature': None, 'eco': False, 'turbo': False, 'freeze_protection': False, 'sleep': False, 'follow_me': False, 'display_on': True, 'beep': False, 'fahrenheit': False}
mill1000 commented 6 months ago

Thanks. That's all I'll need for now.

lpispek commented 6 months ago

Ok, no problem. If I can help with any tests, please ask it is not a problem.

mill1000 commented 4 months ago

@lpispek I've begun some work on supporting the new protocol which would enable some of these functions.

Would you be available and willing to test? It would require installing an experimental branch and running some Python test scripts.

lpispek commented 4 months ago

Hi, no problem. Just send me info and I will try to grab any info that I can. I will setup linux test VM for this or HA if it is needed?

mill1000 commented 4 months ago

Thanks. I've put some instructions here: https://github.com/mill1000/midea-msmart/issues/97#issuecomment-1936432229

A Linux VM, a Python virtual env, or a docker container would be good ways to go. No need to install HA at this point.

lpispek commented 4 months ago

DEBUG:asyncio:Using selector: EpollSelector
INFO:msmart.lan:Creating new connection to 192.168.254.15:6444.
DEBUG:msmart.lan:Connected to 192.168.254.15:6444.
INFO:msmart.lan:Authenticating with 192.168.254.15:6444.
DEBUG:msmart.lan:Sending data to 192.168.254.15:6444: 8370004020000000b93985a50103bd3d53e7ea304cdf3cf3fd26cb862218cc7ad5cf05d44f0874267c8c54ce7e7f8c5c3053bdc2fba19efb68ac73ffa1c625e924c82445028abcc9
DEBUG:msmart.lan:Received data from 192.168.254.15:6444: 83700040200126463d3dc2cfa2f62a611061bf9c88e03f4a29edb934303b16038795f07fdf6b73bb783caf9f65ca0fd2d670a1dab7adaf2782348248c0880d86338daa7c2b7e1f3f
INFO:msmart.lan:Authentication successful. Expiration: 2024-02-10T23:10:16, Local key: bc2db03bee988723cfa5013e879f2c1853e8fdea602a0f2a306fe9f2f8697507
Fetching all known properties
DEBUG:msmart.base_device:Sending command to 192.168.254.15:6444: aa16acba000000000303b10409000a0015001e02013a46
DEBUG:msmart.lan:Sending packet to 192.168.254.15:6444: 5a5a011158002000000000001c110a0b0a0218145f540000008400000000000000000000000000009215d613971135e1620b9c4c945af9d20cf0c8b4a20300aa5dbf3f458524d08bbfac13bec41186d966dc9a06de45a1fe
DEBUG:msmart.lan:Sending data to 192.168.254.15:6444: 8370007e206656c550e06b51595ca6a3ad76ba905b13be3118c6702396f5f896ac3d4754219abe237969234a79641bca13c404b7d9585864de6c13fa1b1cbaa1e0697b7391749358f7f35a88a8adff247a3f74e223b91ff2ea431bb4d381bdc0f63c2c64df78a4605bc94c53800f1d996aa474b3d2744f511eb3af196297f1490db6a72c8b08
DEBUG:msmart.lan:Received data from 192.168.254.15:6444: 8370008e20632f0bab3a6bbfded87336e97f883bbf83105690aa4666e48d3a19ec6a288fd2c163d6bc1ad5d4c4498d9576052286e2cf133308ddc79b601bcc656a6f669fb24b484a3aba8f106e0903059c734dc57610702d112074f5f15d0c42311eeff2b7a270eb6b2dee37540e1a1b59df649fe3afd639b1209f6571c05522a73aaefd06795083f38a74753771e15794dc057c48bf
DEBUG:msmart.lan:Received packet from 192.168.254.15:6444: 5a5a011168002080000000009b510a0b0a0218145f540000008400000000000000000180000000008a84aff5c753acd1090f987b5b749a3319ab13d71bb89646694acbb0592077122b00fdfa9c1e7e266515fa4f5518a2c45617f8b7b42e122e04152533b8a47a1c
DEBUG:msmart.lan:Received response from 192.168.254.15:6444: aa21ac00000000000303b10409000001000a00000100150000012b1e020000005fa3
DEBUG:msmart.base_device:Response from 192.168.254.15:6444 in 0.130000 seconds.
<msmart.device.AC.command.Response object at 0x7f98b55de690>
Fetching individual property SWING_UD_ANGLE
DEBUG:msmart.base_device:Sending command to 192.168.254.15:6444: aa10acbc000000000303b1010900023f86
DEBUG:msmart.lan:Sending packet to 192.168.254.15:6444: 5a5a0111580020000000000029110a0b0a0218145f540000008400000000000000000000000000000709fcae7d5146fd424e424960b8280bfd56fe8b675229c44a30f456f9bb7506a954229d5c43d34e00185b2ce81ef84a
DEBUG:msmart.lan:Sending data to 192.168.254.15:6444: 8370007e206640f9e25981544d43dfa383adadcb0ea373db2e82df72d4dc5de20c8d2c480ca89a53b67f32ea2a3caaeb77d4f0cf3a67ef035bf6b130290082a26ad592532ccce046de3f14eeaa16933104dc4cd2e0f003350448e0ac2d3462c5c676f02743e3bfdd8923d1d4522c6082449f67245a14d7114872d499f743568f10b74662053e
DEBUG:msmart.lan:Received data from 192.168.254.15:6444: 8370007e2063fa8e3696b2f6974044eec2dc5f7ed6828fb6b51344779823e52767f7f7b1d55ab04fc8e37d1985f7607051047f13160f1b2d476bed10304288662c812534ca3a60fd5da4e762c0b78b570d6ebda43497637809b55b2d8bde15e1772cffe9c361c1afd1822eb18f2132885858b8b1e68dd51917750f2afd6ff21fd30d6e1fd53b
DEBUG:msmart.lan:Received packet from 192.168.254.15:6444: 5a5a0111580020800000000004910a0b0a0218145f5400000084000000000000000001800000000017eae78ae6042c3ba2e0ada40c7040a934749adfedc48b1d0d955bb7c9e0e6697dfd7ffcae9be3d9a2fb6ef7f03a3f81
DEBUG:msmart.lan:Received response from 192.168.254.15:6444: aa13ac00000000000303b1010900000100002d52
DEBUG:msmart.base_device:Response from 192.168.254.15:6444 in 0.100000 seconds.
<msmart.device.AC.command.Response object at 0x7f98b55df390>
Fetching individual property SWING_LR_ANGLE
DEBUG:msmart.base_device:Sending command to 192.168.254.15:6444: aa10acbc000000000303b1010a0003853e
DEBUG:msmart.lan:Sending packet to 192.168.254.15:6444: 5a5a0111580020000000000034110a0b0a0218145f5400000084000000000000000000000000000037a9b8c5f4d61d967d063dd44fd283d3aeebdf73551db4dd6cd23ce754a5d85f82bc7a756edff47bdc601f77f8df5e07
DEBUG:msmart.lan:Sending data to 192.168.254.15:6444: 8370007e2066f08d64c9b2217697f78b786f8bf0c147bc28559c964fd4a8a95d6d7b85671cbb45e0924fb3b37cecfe4691dea6e988f526dbe21cd9daadaae7caaee2add7072e1863f3d588fec1b9a21f3d776680202fd86976350d85f3f0602783ee7039e18eb26a461a03fd5a969862c52eae2ea8930937afe72601341775ec8f9d3e74c4a5
DEBUG:msmart.lan:Received data from 192.168.254.15:6444: 8370007e2063fb5cdf78e6668f6ee379020c8f6a28397b4cfa92d0332b0259bbe977db6a8e19a0101ccbf0e5ff4a88f63c17de3a3c3ebfba105526696aca95a6d5207d2d6c09d0a7892153fe77b65399c1f3d161e9f316b3fa01f57aec1401afb7c3b22678abd564cf7a843686167031b7aa52af19dc481217fc456c0bccb3be8e4d62f296c8
DEBUG:msmart.lan:Received packet from 192.168.254.15:6444: 5a5a0111580020800000000071910a0b0a0218145f5400000084000000000000000001800000000037ac6bcb06bf5523695e0d57b24da36a132e48e8c25c1df8c05454b4a18fc3a49ea3e794849c1547073c709000aadaed
DEBUG:msmart.lan:Received response from 192.168.254.15:6444: aa13ac00000000000303b1010a0000010000740a
DEBUG:msmart.base_device:Response from 192.168.254.15:6444 in 0.110000 seconds.
<msmart.device.AC.command.Response object at 0x7f98b55df5d0>
Fetching individual property INDOOR_HUMIDITY
DEBUG:msmart.base_device:Sending command to 192.168.254.15:6444: aa10acbc000000000303b10115000413a4
DEBUG:msmart.lan:Sending packet to 192.168.254.15:6444: 5a5a011158002000000000003f110a0b0a0218145f540000008400000000000000000000000000002272bfa1cc0f53731f0ddb97f6c6e82cc1fe12de6010464b3b15f4e64067109d68eb96b881db1c3b2542391e79d137db
DEBUG:msmart.lan:Sending data to 192.168.254.15:6444: 8370007e20668525c8d1460d5c09f9b7873b8caafb30ca99ca3ab09e89c9151d159b984a4877ca9d46775bd87758442a53cce073d3b3ffddb6df9e386f5994efbd9fbb198a4bfd6a7b9546abdb50a65fda4b6863acca7497feb47250d80fca70504cd2200549833e247f296757b2d0fdec3056f024d610f1cd5895a72ae31937686b7b954c13
DEBUG:msmart.lan:Received data from 192.168.254.15:6444: 8370007e206325fff6e41a271f017473daa55edb3b01a28f8ed191ffe14db61963de595ed052290b135da7f72bc53f15a7be5ef5177f10d8a4ab35a32dd4551b404ed3d11a204371b5cfdc31419ee61fc1a343f5fe29628caff5dd137e52d3aa6de133873865979f7708e9c9ac18cea9b16a47d8fb47610c66c8967d14a0b67359a0fafedf7c
DEBUG:msmart.lan:Received packet from 192.168.254.15:6444: 5a5a01115800208000000000de910a0b0a0218145f54000000840000000000000000018000000000b0d1c576a119abfb2eec48920c70ea0b2002a6e02f0862072ba8a949362f2de9cdc337c5f0aa5ccc3e9d16d39f878441
DEBUG:msmart.lan:Received response from 192.168.254.15:6444: aa13ac00000000000303b101150000012b00e95f
DEBUG:msmart.base_device:Response from 192.168.254.15:6444 in 0.110000 seconds.
<msmart.device.AC.command.Response object at 0x7f98b55df750>
Fetching individual property ANION
DEBUG:msmart.base_device:Sending command to 192.168.254.15:6444: aa10acbc000000000303b1011e02051d8e
DEBUG:msmart.lan:Sending packet to 192.168.254.15:6444: 5a5a0111580020000000000049110a0b0a0218145f54000000840000000000000000000000000000e55529e933e94ad8a7bb8f85d5a46d7e53511cf75b3c83f5779cd260abd307ee2f653f9368959969b7407d1820bb86f4
DEBUG:msmart.lan:Sending data to 192.168.254.15:6444: 8370007e2066586e80699e952e0793859a3b36d5c1192f9de289609c16a6c8e9e19e36dd0d3c52136b646da2b3ba48cf750452e347a1e51c5d87ca63488f2c1234048763a7e9ba9a25e24aab053f9c41178402f1f06f817a53159c9d068b3f090cb7b8c1da2d266cfb5e4203854ca78339a0a24705655d978060c8d2bd11940697617f84662f
DEBUG:msmart.lan:Received data from 192.168.254.15:6444: 8370007e2063a9f43c528ce6488cf30286f8056c93f2db71941b713aaf071d09644ff005161ce7250c0c3be70537b1739cc244ea8f2d7a48793aef5d577361a283bc758419303f2872c3e49913122930051d59dfbde3babf83eac635c01b27151d5054ad4d66182f6d31d1235c360d28210a5c2becf1a2dd7ff61a167a369757126c2218bc6f
DEBUG:msmart.lan:Received packet from 192.168.254.15:6444: 5a5a0111580020800000000049d10a0b0a0218145f54000000840000000000000000018000000000e1f894a5538646c68863996097f32fd2dc3c9b1f99d4d02444db1f0398c5730ed30f59a45c5cfc1c4d8e9e2943f7e9ca
DEBUG:msmart.lan:Received response from 192.168.254.15:6444: aa12ac00000000000303b1011e02000000501a
DEBUG:msmart.base_device:Response from 192.168.254.15:6444 in 0.110000 seconds.
<msmart.device.AC.command.Response object at 0x7f98b55df850>```

Finde attacheh response, is this ok ? 
lpispek commented 4 months ago

This is the device with Breezeless, first one is another model:


INFO:msmart.lan:Creating new connection to 192.168.254.13:6444.
DEBUG:msmart.lan:Connected to 192.168.254.13:6444.
INFO:msmart.lan:Authenticating with 192.168.254.13:6444.
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370004020000000f83ec37031974354257800088523cb6e8a4b3de2b35d8c57c78da1ed5da4302115e77cc872faa4ecf6e4bfef976f8a82300a1d63a459c548fcb81e5ccb2fc3c4
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370004020013641b2c7174fb1944f9a9393c47718ea7426bc5e904cf50379698ba6aac7e644a204234338ecfc0aca7668636808f0fa6b7a2bfc9024065715d1e9e033256b00a8a6
INFO:msmart.lan:Authentication successful. Expiration: 2024-02-10T23:18:58, Local key: 6e3699efa0d3a4225a88f9d7772ff6c57d00b1e3fd87aed94304b03bf5cbd850
Fetching all known properties
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa16acba000000000303b10409000a0015001e02013a46
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a01115800200000000000043b120b0a021814472a0000008200000000000000000000000000009215d613971135e1620b9c4c945af9d20cf0c8b4a20300aa5dbf3f458524d08bf82f3eeff847dc06bfbbfa5cedd01f61
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370007e20667eb682a952cf85809a914c5ef17ca43ce13b3f363341ea57b973b684acaf0d13fae44cb61363cdcc79df02c4afaacc96cf02d3b5fd704146fecef197932844e3ef3accfbfb2eae75e09a4fc95d09c1801307e67a42084754a8ed7b1b697e07c1822cb376b053e86e6ad3e975e9fd0f8649d453679397d074830b073c6c974a28
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370008e20637a21a637129cd20c091c1423308fd909d07a61235d05dd50f9feb9aadab990004edd512420286f46bbacb26e69c45eab01ba11983b4d9b537345a4b5474f60be2e54bd81f996cce4cc80129afc4baae6b098843327293a436380552473ed94a4ee2256027f3c6c8e31bb72d130625d21ba5f0907d614e92b2c8c4eceec1be02c4005d815240fbd630eb9a8f9ea3108e4
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a011168002080000000008e3b120b0a021814472a0000008200000000000000000180000000000e225e5b44bb0bcd2c681fe4a33ff4037756866f502d4e097d86a1ddea2bb7f2915c618b02ed2747fad73f2ffa0db1d3ab58f3d64a7f1c7ce2b386970f0ba66f
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa1fac00000000000303b104090000000a00000015000001381e0200000001f8
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.120000 seconds.
<msmart.device.AC.command.Response object at 0x7f4ea6d4e4d0>
Fetching individual property SWING_UD_ANGLE
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa10acbc000000000303b1010900023f86
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a01115800200000000000113b120b0a021814472a0000008200000000000000000000000000000709fcae7d5146fd424e424960b8280bfd56fe8b675229c44a30f456f9bb75068cc1ba55e0342a8f049e610c1997c014
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370007e20664df615625768f6a507d3ebc318c85930deefd3bcdbc9b37ec960874b0318ea0f57c535be4357e2a45e2d0d578b6d4a45da76310e4f2679abb7c85ad6bcb6e4bad22524ebd7bcfdf7508b4fc54ceb524b76d0726178da6ac4e7097c64336e3c5062bcc5c3ee27ae441a1c81e72614ad8e55b2221d25dc57e27c7c729799bcd9b9
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370007e2063338b26d79f58bc3b0e231586fca5fe17c53325df17e63384c0bea774e3362489157c139f9cf63368c4988c3c1aeab83999f79819ddacd3565453c12542ba4a2c0b22ed0b9886d86dc8baf4e8d97ece00c2bc93c77b34b8db78b837a3d6fc7d3a8a908fd72baa729e1e2a6bd1ce2532b4b51e75a393af69d0b089f8a45020efb6
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a01115800208000000000f93b120b0a021814472a00000082000000000000000001800000000013a9c5ee4c650dc20452caa4de4573fd71162cce13bd7bc4a4e3c83f78eff783273a06d85ea134aa993bbcfacf72853f
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa12ac00000000000303b10109000000007a07
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.110000 seconds.
<msmart.device.AC.command.Response object at 0x7f4ea6d4f250>
Fetching individual property SWING_LR_ANGLE
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa10acbc000000000303b1010a0003853e
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a011158002000000000001b3b120b0a021814472a00000082000000000000000000000000000037a9b8c5f4d61d967d063dd44fd283d3aeebdf73551db4dd6cd23ce754a5d85fef3dd80acea5d8347fb9a8a08ed66312
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370007e20665720176807412262226fd7521e95c9d877136e97c9ff0f7b69739900d1d394e182e6940ff56d7fb0436dc0de320b2703ee4b98e40e2f2465856d11440699a5667fcdc2bdf9506faf38d1ff334571c081c5e6ef0cd189c56d2d6b48856195b96bfc69b73a8d5e1cbe9d9f74655447b1c2c1444a16e4b76e362ab23b6132d88a6b
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370007e2063e5c0b3cfe3c1c28dbd171e1f0e8b3b52646b1bd36fdd1251e1b0c33131946c2700a883a4ebfa2ef06a7435bdff498f27d330f421dd691e230e364e4aa6fb43ce9d70c82ef05daed9f2a8a763f1c8c3a21d4318fd4b4daeced84831eaa4ef21c69d2cb6b7ee0f2db7e024dea6d47bcb0a51ae8e6fb2c98443f52400bba399d15f
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a01115800208000000000677b120b0a021814472a000000820000000000000000018000000000de8588899211044936f58c9aece9717777a86e1348a38f8b5b24e0617fc9e13c6d282ee2f24457fa7c497029fb8e20f5
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa12ac00000000000303b1010a00000000344c
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.110000 seconds.
<msmart.device.AC.command.Response object at 0x7f4ea6d4f4d0>
Fetching individual property INDOOR_HUMIDITY
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa10acbc000000000303b10115000413a4
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a01115800200000000000263b120b0a021814472a0000008200000000000000000000000000002272bfa1cc0f53731f0ddb97f6c6e82cc1fe12de6010464b3b15f4e64067109d70e102a218f72c95362e513d45a61e19
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370007e2066f2b39bb5325c7bda90ca13ffa285bb9e9fe358a3a102c0844c62acfc9b3443e925bd1d764127d1223bfb0961d3b5523bc85f66948a4e3fd940fec4cc6b5c1b0543358ce7ddfa1d91284d9f9e0cbf9e3d6daa102ad4823d981b5751c320a6a692eeaa6784a66ee5b92839289bb740df966b8178bb1c48ce8aee8748da818e8907
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370007e2063a8473592876aa20b545863b54e4fe63dd2ddab72ac7ea456a6ca62a98020fce81d50a7ecd90a3cd9dcb292856880e99578a24997c52ad0a01ae651bc6b37ffd421b41e6c7dca758a6b3fc344a56f241d4ec3a22da0bc516a6654cc51a7dff9326f6b7cb07f4ba5550aca1d811860d3de75db07db00ffbaae0275246b79d8d22a
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a01115800208000000000d67b120b0a021814472a000000820000000000000000018000000000b0d1c576a119abfb2eec48920c70ea0b2827ffd7ce758d38b4a17c573af86ad86731e6b92510926832d7b1a89ebb83a5
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa13ac00000000000303b10115000001380050eb
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.110000 seconds.
<msmart.device.AC.command.Response object at 0x7f4ea6d4f650>
Fetching individual property ANION
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa10acbc000000000303b1011e02051d8e
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a01115800200000000000313b120b0a021814472a000000820000000000000000000000000000e55529e933e94ad8a7bb8f85d5a46d7e53511cf75b3c83f5779cd260abd307ee22b45e441ebf969f52e49c63e3752067
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370007e20664711062ab15d7e330f17f8b468afc1b99a368ff2505c55a090736dddecd488a502fb4cbb24e748bac1691b1c85277974db738d72aa4ec335af4a104131cd22e9985c6bfe76834f0bdf93b0baacb8613761127ec9fbc8920f869e6476f2bdae8f70e0ceb524d352d28a3b3fe4816cc3dd43b826adfe74011ee34c380d8869683f
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370007e2063771851c18ed22644ad34326ed8436deb5c9d46c2f4254d7196c0f1665c31086d624331fc755b9cd0a725bef90edb508ae666fe69203a36b8c0ffd3a0410da4629983434cbaabf74c7af5da2e99300f2643cd91df84c1f5df64b2bb10f0667a87fe03166d60cd6d00695e23b624cf49fe921e5550b2aee7fdfadb75487937566f
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a0111580020800000000043bb120b0a021814472a000000820000000000000000018000000000e1f894a5538646c68863996097f32fd2dc3c9b1f99d4d02444db1f0398c5730e9bfead4fe072742c2f8da6c97be70d10
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa12ac00000000000303b1011e02000000501a
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.110000 seconds.
<msmart.device.AC.command.Response object at 0x7f4ea6d4f750>```
mill1000 commented 4 months ago

These are great. Thanks very much.

I may have some additional tests in the future.

mill1000 commented 4 months ago

@lpispek

Here's an updated example I would like tested: https://github.com/mill1000/midea-msmart/issues/97#issuecomment-1947748486

I'm focusing on the vertical/horizontal swing angle for now. Can you test on both devices?

I will expand to other features eventually.