The key and token can be obtained this way: if, when connecting a new device for the first time, you select automatic configuration, but set the protocol version to v2, not v3. Then a files .storage/midea_ac_lan/*.json are created, it contains the key and token. You can correct the protocol version in the file, but this does not help
The logs
2024-04-08 23:12:36.046 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Connecting to 192.168.X.29:6444
2024-04-08 23:12:36.051 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Connected
2024-04-08 23:12:36.051 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Authentication success
2024-04-08 23:12:36.051 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Sending: {'header': 'aa1de1000000000000a0', 'body': '00000000000000000000000000000000000000', 'message type': 'a0', 'body type': 'None'}
2024-04-08 23:12:46.062 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Does not supports the protocol MessageQueryAppliance, ignored
2024-04-08 23:12:46.062 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Sending: {'header': 'aa0be100000000000003', 'body': '00', 'message type': '03', 'body type': '00'}
2024-04-08 23:12:59.653 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Does not supports the protocol MessageQuery, ignored
2024-04-08 23:12:59.653 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Refresh status is timed out
2024-04-08 23:12:59.653 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Status update: {'available': False}
HA core version
2024.4.2
Intergration version
v0.3.22
Device type and model
Dishwasher 760001F3 (0) Midea
Used App
SmartHome 3.4.1
The description of problem
The key and token can be obtained this way: if, when connecting a new device for the first time, you select automatic configuration, but set the protocol version to v2, not v3. Then a files .storage/midea_ac_lan/*.json are created, it contains the key and token. You can correct the protocol version in the file, but this does not help
The logs
2024-04-08 23:12:36.046 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Connecting to 192.168.X.29:6444 2024-04-08 23:12:36.051 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Connected 2024-04-08 23:12:36.051 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Authentication success 2024-04-08 23:12:36.051 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Sending: {'header': 'aa1de1000000000000a0', 'body': '00000000000000000000000000000000000000', 'message type': 'a0', 'body type': 'None'} 2024-04-08 23:12:46.062 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Does not supports the protocol MessageQueryAppliance, ignored 2024-04-08 23:12:46.062 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Sending: {'header': 'aa0be100000000000003', 'body': '00', 'message type': '03', 'body type': '00'} 2024-04-08 23:12:59.653 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Does not supports the protocol MessageQuery, ignored 2024-04-08 23:12:59.653 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Refresh status is timed out 2024-04-08 23:12:59.653 DEBUG (Dishwasher) [custom_components.midea_ac_lan.midea.core.device] [153931628XXXXXX] Status update: {'available': False}