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

Feature(FA): Fan Oscillation not working #393

Open
katelovescode opened this issue Nov 23, 2024 · 7 comments
Open

Feature(FA): Fan Oscillation not working #393

katelovescode opened this issue Nov 23, 2024 · 7 comments

Comments

@katelovescode
Copy link

HA core version

2024.11.2

Current integration version

0.6.5

Last known working integration version

Unknown

Device type and model

Midea FZ10-21CR Oscillating Tower Fan

Working mobile app

SmartHome

The detail description of bug/problem

When I turn on the oscillation toggle, nothing happens. After a moment, the toggle turns itself off.

Including a screenshot of the logbook for the oscillate entity
Screenshot 2024-11-22 at 8 58 29 PM

The logs

There are some roomba logs in here as well that can be ignored.

home-assistant_2024-11-23T03-00-26.202Z.log

@katelovescode katelovescode added the bug Something isn't working label Nov 23, 2024
@wuwentao
Copy link
Owner

@katelovescode
thank you very much for your bug report.
is this possible for you to provide your device SN?

it should be two different control protocol caused this bug, and current code may not works for your devices, just want to confirm it, thanks.

@wuwentao wuwentao changed the title Fan Oscillation not working Bug(FA): Fan Oscillation not working Nov 26, 2024
@katelovescode
Copy link
Author

My S/N is 5415600015L46032100371. Hope that helps!

@wuwentao
Copy link
Owner

My S/N is 5415600015L46032100371. Hope that helps!

sorry, seems it's not like a normal SN?
are you sure with it ? maybe you can check it from smarthome app?

@katelovescode
Copy link
Author

Here's a picture of the labels, maybe this will help. image

@wuwentao
Copy link
Owner

@katelovescode thank you very much for your detail picture with the SN.
as this is a v2 device and not v3, I'm not sure with what's wrong, I can't use your SN to download the device protocol from midea.
anyway, we still need to do more with it.

in addition, you also can found it via Smarthome app, if both is the same, just ignore it and continue the next job as below:
is this possible for you to remove this device from your HA and add it to your HA again.

  1. remove this device
  2. ssh login to your HA termial, and run cd /config/.storage/midea_ac_lan && ls, you can found some json configs, if you only have one device, just remove this json, if you have more devices, run cat xxx.json to got the file content, confirm the FA device json config and remove it with rm xxx.json
  3. enable debug log for midea_ac_lan and midealocal
  4. run midea_ac_lan to discovery it again, finish add this device.
  5. download your full debug log and upload it to current issue
    maybe I can found some useful log or info to resove it with this device discovery/add log.

thanks.

@katelovescode
Copy link
Author

Okay, here's some more info. Before I deleted the json I copied it in case it helps:

{
  "name": "Bedroom Fan",
  "device_id": 151732605698434,
  "type": 250,
  "protocol": 3,
  "ip_address": "192.168.1.250",
  "port": 6444,
  "model": "560000F3",
  "subtype": 0,
  "token": "...",
  "key": "..."

Here's the Diagnostics from the Device page:

{
  "home_assistant": {
    "installation_type": "Home Assistant Container",
    "version": "2024.11.3",
    "dev": false,
    "hassio": false,
    "virtualenv": false,
    "python_version": "3.12.4",
    "docker": true,
    "arch": "aarch64",
    "timezone": "America/Chicago",
    "os_name": "Linux",
    "os_version": "6.6.20+rpt-rpi-v8",
    "run_as_root": true
  },
  "custom_components": {
    // ...
    "midea_ac_lan": {
      "documentation": "https://github.com/wuwentao/midea_ac_lan#readme",
      "version": "v0.6.5",
      "requirements": [
        "pycryptodome",
        "midea-local==6.0.3"
      ]
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/configuration/start",
      "version": "2.0.1",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    }
    // ...
  },
  "integration_manifest": {
    "domain": "midea_ac_lan",
    "name": "Midea AC LAN",
    "codeowners": [
      "wuwentao",
      "rokam",
      "chemelli74",
      "Necroneco"
    ],
    "config_flow": true,
    "dependencies": [],
    "documentation": "https://github.com/wuwentao/midea_ac_lan#readme",
    "integration_type": "device",
    "iot_class": "local_push",
    "issue_tracker": "https://github.com/wuwentao/midea_ac_lan/issues",
    "loggers": [
      "midealocal"
    ],
    "requirements": [
      "pycryptodome",
      "midea-local==6.0.3"
    ],
    "version": "v0.6.5",
    "is_built_in": false,
    "overwrites_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 0.0017642469611018896
    },
    "01JDBDD39B2T1X68GEQQE6F8M1": {
      "wait_import_platforms": -0.045021198922768235,
      "wait_base_component": -0.0014683820772916079,
      "config_entry_setup": 0.27247328613884747
    }
  },
  "data": {
    "entry": {
      "created_at": "2024-12-04T00:36:26.214056+00:00",
      "data": {
        "name": "Bedroom Fan",
        "device_id": 151732605698434,
        "type": 250,
        "protocol": 3,
        "ip_address": "...",
        "port": 6444,
        "model": "560000F3",
        "subtype": 0,
        "token": "**REDACTED**",
        "key": "**REDACTED**"
      },
      "discovery_keys": {},
      "disabled_by": null,
      "domain": "midea_ac_lan",
      "entry_id": "01JE7HHHZ53WV7ZHNZTWEZHFCT",
      "minor_version": 1,
      "modified_at": "2024-12-04T00:36:58.076837+00:00",
      "options": {
        "ip_address": "...",
        "refresh_interval": 30,
        "switches": [
          "oscillate"
        ],
        "customize": ""
      },
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "title": "Bedroom Fan",
      "unique_id": null,
      "version": 2
    }
  }
}

And here are the debug logs from the time I re-added the device:

2024-12-03 18:35:40.996 DEBUG (MainThread) [midealocal.discover] All addresses for broadcast: ['172.17.255.255', '192.168.1.255']
2024-12-03 18:35:41.309 DEBUG (MainThread) [midealocal.discover] Received response from ('192.168.1.250', 6445): 837000c8200f00005a5a0111b8007a80000000006cd72300040c181482411000008a0000000000000000018000000000053d1a37c73ef7226a02285efa5a7bcd9d0fe90c2cb7cfd25e8e9f923a8067b072aa659a1d6e342d8ad9860bb025b5beb22fb401835d85f28ebf29e83458bc0a15fc658f4570081cd5ea66619c0e9d64c73bd6f6f6981cc5ba52c130c79371344bdfb3e16e33d88768cc4c3d0658937d96fbcce99f70c976413c2f05f60f82e70ab673387a4d12d01770c971951480f844e5eac15d5bf8a0859c222231bd3799
2024-12-03 18:35:41.310 DEBUG (MainThread) [midealocal.discover] Declassified reply: fa01a8c02c19000030303030464135313135363030303046333435323931313030323135555551360d6d696465615f66615f303231350000bf0502000000000000000000fa0000000000000054b874c7f031059006092306010300000000000000000000000000000000000000000000000000000000000000000000
2024-12-03 18:35:41.310 DEBUG (MainThread) [midealocal.discover] Found a supported device: {'device_id': 151732605698434, 'type': 250, 'ip_address': '192.168.1.250', 'port': 6444, 'model': '560000F3', 'sn': '0000FA511560000F345291100215UUQ6', 'protocol': 3}
2024-12-03 18:36:08.733 DEBUG (MainThread) [custom_components.midea_ac_lan.config_flow] user input login matched
2024-12-03 18:36:09.456 DEBUG (MainThread) [midealocal.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/multicloud/platform/user/route, data: {'src': '1010', 'format': '2', 'stamp': '20241204003608', 'platformId': '1', 'deviceId': '3631363570a29342', 'reqId': '57d71e87cd771772b72191420ffa92b6', 'uid': None, 'clientType': '1', 'appId': '1010', 'userType': '0', 'userName': '████████████████████████'}, response: b'{"msg":"ok","code":0,"data":{"masUrl":"https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=","sseUrl":"https://sse.msmartlife.net","idAdapt":"131329","countryCode":"HK","emsIdAdapt":"132097"}}'
2024-12-03 18:36:09.520 DEBUG (MainThread) [midealocal.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/user/login/id/get, data: {'src': '1010', 'format': '2', 'stamp': '20241204003609', 'platformId': '1', 'deviceId': '3631363570a29342', 'reqId': '665986b0efa235b52c3be0fad7275938', 'uid': None, 'clientType': '1', 'appId': '1010', 'loginAccount': '████████████████████████'}, response: b'{"code":"0","msg":"ok","data":{"loginId":"e891cd28-acff-4577-9c4d-c497c9e2"}}'
2024-12-03 18:36:09.673 DEBUG (MainThread) [midealocal.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/mj/user/login, data: {'iotData': {'src': '1010', 'format': '2', 'stamp': '20241204003609', 'platformId': '1', 'deviceId': '3631363570a29342', 'reqId': 'cdc3d806f5c28249afef09b42708548b', 'clientType': '1', 'appId': '1010', 'iampwd': 'c0a439a800730e3c69ccc0b3df9e96516b091696f5c8691ee243891261473e07', 'loginAccount': '████████████████████████', 'password': 'd3159c0eadeb5153e8d958d90cf1996b24ca687a903454c11c9ecfd49c6aeb7b'}, 'data': {'appKey': 'ac21b9f9cbfe4ca5a88562ef25e2b768', 'deviceId': '3631363570a29342', 'platform': '2'}, 'stamp': '20241204003609', 'reqId': '64e57e97d54c74f343ed0ae6f4d506db'}, response: b'{"code":0,"msg":"\xe6\x88\x90\xe5\x8a\x9f","data":{"randomData":"1da010421d2463ff6fbcfb38cd23c5a9aa66778129f8ea4766ab8ce83045b466","uid":"ddcf2a259a70b1f8f0791a232d88691a","accountId":"██████████","nickname":"ineffableplan","mdata":{"tokenPwdInfo":{"tokenPwd":"dbd1233ac97248e6af5bde480385a3ba","expiredDate":█████████████,"createDate":█████████████},"userInfo":{"sourceId":"mj_12345","empId":"████████████████","address":"","gender":"0","mobile":"████████████████████████","userDeptInfoList":null,"extras":null,"nameEn":null,"employeeNumber":null,"headPhoto":null,"uid":"ddcf2a259a70b1f8f0791a232d88691a","name":"████████████████████████","email":null},"doDeviceBind":null,"accessToken":"T1nxncvioqv43ozwr","signUnlockEnabled":null},"accessToken":"7e56fcb901827f784926561223eaaba50c2f3c1dfde51c66f202d48b23d4f6d4","userId":"███████████████","email":"████████████████████████"}}'
2024-12-03 18:36:09.676 DEBUG (MainThread) [custom_components.midea_ac_lan.config_flow] Using account ineffableplan@icloud.com login to SmartHome cloud pass
2024-12-03 18:36:11.736 DEBUG (MainThread) [midealocal.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/appliance/user/list/get, data: {'src': '1010', 'format': '2', 'stamp': '20241204003611', 'platformId': '1', 'deviceId': '3631363570a29342', 'reqId': '████████████████████████████████', 'uid': 'ddcf2a259a70b1f8f0791a232d88691a', 'clientType': '1', 'appId': '1010'}, response: b'{"code":"0","msg":"ok","data":{"list":[{"id":"███████████████","userId":null,"wifiVersion":"████████████","sn":"34f9d454b385b8fcef097e0b8ec93806f0f4c25d8e165fab2cdb36b0fd079ea39a7adc49866255cfd9d890b0e6050cbd","onlineStatus":"1","type":"0xFA","modelNumber":"0","name":"Fan","des":"","activeStatus":"1","userType":null,"homegroupId":"58551594546466816","roomId":null,"tsn":null,"mac":null,"registerTime":"Wed Nov 06 00:22:35 UTC 2024","uid":"ddcf2a259a70b1f8f0791a232d88691a","existTemplate":0,"templateOfTSL":null,"bleMac":null,"connectType":"1","sort":3,"smartProductId":████████,"btMac":"54b874c7f032","btToken":"████████████████","compose":false,"singleAppliances":null,"singleCompose":false,"sn8":"560000F3","supportWidget":false,"belong":1}]}}'
2024-12-03 18:36:11.805 DEBUG (MainThread) [midealocal.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/iot/secure/getToken, data: {'src': '1010', 'format': '2', 'stamp': '20241204003611', 'platformId': '1', 'deviceId': '3631363570a29342', 'reqId': '590b4173d60a9abc067e8310920866a0', 'uid': 'ddcf2a259a70b1f8f0791a232d88691a', 'clientType': '1', 'appId': '1010', 'udpid': '44e5eac15d5bf8a0859c222231bd3799'}, response: b'{"code":"0","msg":"ok","data":{"tokenlist":[{"udpId":"44e5eac15d5bf8a0859c222231bd3799","key":"7bcbb07d07b6421f8668b22114b3d1bb894ac1f9b23046d3ab58a94aec34792f","token":"07A4A7DB7EA139E8F229B98AB518095BA845DD42CBFF0DDDD0B3712F3D13CF058CAEF09A7A47EE9CA715457DB7B6485CDB506DFDA97C3AE8277C7A2EBAFF3141"}]}}'
2024-12-03 18:36:11.805 DEBUG (MainThread) [midealocal.cloud] Response from get_keys() for appliance_id 151732605698434 with method 1: {'tokenlist': [{'udpId': '44e5eac15d5bf8a0859c222231bd3799', 'key': '7bcbb07d07b6421f8668b22114b3d1bb894ac1f9b23046d3ab58a94aec34792f', 'token': '07A4A7DB7EA139E8F229B98AB518095BA845DD42CBFF0DDDD0B3712F3D13CF058CAEF09A7A47EE9CA715457DB7B6485CDB506DFDA97C3AE8277C7A2EBAFF3141'}]}
2024-12-03 18:36:11.876 DEBUG (MainThread) [midealocal.cloud] Midea cloud API url: https://mp-prod.appsmb.com/mas/v5/app/proxy?alias=/v1/iot/secure/getToken, data: {'src': '1010', 'format': '2', 'stamp': '20241204003611', 'platformId': '1', 'deviceId': '3631363570a29342', 'reqId': '5425085ba3da39396a95241ce47bc36f', 'uid': 'ddcf2a259a70b1f8f0791a232d88691a', 'clientType': '1', 'appId': '1010', 'udpid': '████████████████████████████████'}, response: b'{"code":"0","msg":"ok","data":{"tokenlist":[{"udpId":"████████████████████████████████","key":"9b369ce5f56b4c1eb57f139c8cac48674f39e71b334440b3afe18b1d1dbd28f0","token":"45B81D7863AE737A6FA642B81B44A338FF9B594F346B09796E598BF8AA7166B6B41502B330CFBBC0CC7DAC44D5DD22FD613AC438F05404F76BF5F0715ED898B7"}]}}'
2024-12-03 18:36:11.877 DEBUG (MainThread) [midealocal.cloud] Response from get_keys() for appliance_id 151732605698434 with method 2: {'tokenlist': [{'udpId': '11dcaae2d47bba6200480daaa01547d1', 'key': '9b369ce5f56b4c1eb57f139c8cac48674f39e71b334440b3afe18b1d1dbd28f0', 'token': '45B81D7863AE737A6FA642B81B44A338FF9B594F346B09796E598BF8AA7166B6B41502B330CFBBC0CC7DAC44D5DD22FD613AC438F05404F76BF5F0715ED898B7'}]}
2024-12-03 18:36:11.879 DEBUG (MainThread) [midealocal.device] [151732605698434] Connecting to 192.168.1.250:6444
2024-12-03 18:36:11.890 DEBUG (MainThread) [midealocal.device] [151732605698434] Connected
2024-12-03 18:36:11.891 DEBUG (MainThread) [midealocal.device] [151732605698434] Authentication handshaking
2024-12-03 18:36:11.939 DEBUG (MainThread) [midealocal.device] [151732605698434] Received auth response with 72 bytes: 8370004020011f42dc57d6a28dd60a7cd7c8dc00d0fe23ee09f782fa325ffa1cb37cdcb0418aa67ecd166ec6d70fc4180f316f042fbbae4d3906021c1868c383c75d41881beb6586
2024-12-03 18:36:11.940 DEBUG (MainThread) [midealocal.device] [151732605698434] Authentication success
2024-12-03 18:36:11.941 DEBUG (MainThread) [midealocal.device] [151732605698434] Authentication handshaking
2024-12-03 18:36:11.969 DEBUG (MainThread) [midealocal.device] [151732605698434] Received auth response with 72 bytes: 8370004020011f4270c089f9078bef12e8a8993a6f0ee37d9a2311c81575e20ead67b17a6edd462ecac9c8587b1448d71f5c698d3f5bf5508f178cf4aeee55f22f46804319f8ffa0
2024-12-03 18:36:11.970 DEBUG (MainThread) [midealocal.device] [151732605698434] Authentication success
2024-12-03 18:36:11.972 DEBUG (MainThread) [midealocal.device] [151732605698434] Socket closed
2024-12-03 18:36:26.110 DEBUG (MainThread) [midealocal.device] [151732605698434] Connecting to 192.168.1.250:6444
2024-12-03 18:36:26.130 DEBUG (MainThread) [midealocal.device] [151732605698434] Connected
2024-12-03 18:36:26.130 DEBUG (MainThread) [midealocal.device] [151732605698434] Authentication handshaking
2024-12-03 18:36:26.173 DEBUG (MainThread) [midealocal.device] [151732605698434] Received auth response with 72 bytes: 8370004020011f42631ad3b16616a55f3489c7dfbabd13e2e22febe208ee6a8c1ea299245d0fb785752fdbc0aea350707aac602071a5c2e6b095216399b2644d02f10c07724d60ef
2024-12-03 18:36:26.174 DEBUG (MainThread) [midealocal.device] [151732605698434] Authentication success
2024-12-03 18:36:26.174 DEBUG (MainThread) [midealocal.device] [151732605698434] Authentication handshaking
2024-12-03 18:36:26.207 DEBUG (MainThread) [midealocal.device] [151732605698434] Received auth response with 72 bytes: 8370004020011f42d4a0a05d080fad35ca1833a205eb1ce9e0475cf550c98d4e161e3edd01db3dcb2b2f7473cde9d4f387b097c6b109c784ee7459c7c1c7a827e379306aad2d50cc
2024-12-03 18:36:26.209 DEBUG (MainThread) [midealocal.device] [151732605698434] Authentication success
2024-12-03 18:36:26.210 DEBUG (MainThread) [midealocal.device] [151732605698434] Socket closed
2024-12-03 18:36:26.218 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Socket is None, try to connect
2024-12-03 18:36:26.225 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Connecting to 192.168.1.250:6444
2024-12-03 18:36:26.238 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Connected
2024-12-03 18:36:26.238 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Authentication handshaking
2024-12-03 18:36:26.286 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Received auth response with 72 bytes: 8370004020011f4298eea8bf36c5300a3157bf3fe75f6506c3f92e2968c464355afefc7b7263162a3e4fef81287710b18eaacf4298defc8475dbb06de5b5d319cca72b82f763337c
2024-12-03 18:36:26.288 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Authentication success
2024-12-03 18:36:26.288 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmds: [<midealocal.message.MessageQueryAppliance object at 0x7f602ca0f0>, <midealocal.devices.fa.message.MessageQuery object at 0x7f79a9f260>], check_protocol True
2024-12-03 18:36:26.289 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Sending: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query_appliance: 160>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa1dfa000000000000a0', 'body': '00000000000000000000000000000000000000', 'message_type': 'query_appliance', 'body_type': '00', 'self': <midealocal.message.MessageQueryAppliance object at 0x7f602ca0f0>}, query is True
2024-12-03 18:36:28.294 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Does not supports the protocol MessageQueryAppliance, cmd {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query_appliance: 160>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa1dfa000000000000a0', 'body': '00000000000000000000000000000000000000', 'message_type': 'query_appliance', 'body_type': '00', 'self': <midealocal.message.MessageQueryAppliance object at 0x7f602ca0f0>}, ignored
2024-12-03 18:36:28.294 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Sending: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa0afa00000000000003', 'body': '', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageQuery object at 0x7f79a9f260>}, query is True
2024-12-03 18:36:28.496 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000203', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f56d4e9f0>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000203', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f79a9de20>}
2024-12-03 18:36:28.496 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:36:28.497 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Enabling device
2024-12-03 18:36:28.497 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'available': True}
2024-12-03 18:36:56.340 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.notify1: 4>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000204', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f667b4080>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000204', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'notify1', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f65b8c140>}
2024-12-03 18:36:56.341 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:37:06.353 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmds: [<midealocal.message.MessageQueryAppliance object at 0x7f573e2ed0>, <midealocal.devices.fa.message.MessageQuery object at 0x7f5184c1d0>], check_protocol False
2024-12-03 18:37:06.353 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmd: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query_appliance: 160>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa1dfa000000000000a0', 'body': '00000000000000000000000000000000000000', 'message_type': 'query_appliance', 'body_type': '00', 'self': <midealocal.message.MessageQueryAppliance object at 0x7f573e2ed0>}, unsupported protocol, SKIP
2024-12-03 18:37:06.353 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Sending: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa0afa00000000000003', 'body': '', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageQuery object at 0x7f5184c1d0>}, query is True
2024-12-03 18:37:06.572 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000203', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f56f2d0a0>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000203', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f573e2ed0>}
2024-12-03 18:37:06.572 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:37:27.275 DEBUG (SyncWorker_52) [midealocal.device] [151732605698434] Sending: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.set: 2>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, '_subtype': 0, 'power': None, 'lock': None, 'mode': None, 'fan_speed': None, 'oscillate': True, 'oscillation_angle': 3, 'oscillation_mode': 1, 'tilting_angle': None, 'header': 'aa3cfa00000000000002', 'body': '0000000080000000330000000000000000000000000000000000000000000000000000000000000000000000000000000000', 'message_type': 'set', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageSet object at 0x7f6689bb60>}, query is False
2024-12-03 18:37:27.577 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.set: 2>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000202', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f6689bb60>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000202', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'set', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f5764a120>}
2024-12-03 18:37:27.578 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:37:28.520 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.notify1: 4>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000204', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f4f4a4200>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000204', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'notify1', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f7d3cae70>}
2024-12-03 18:37:28.521 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:37:30.547 DEBUG (SyncWorker_14) [midealocal.device] [151732605698434] Sending: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.set: 2>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, '_subtype': 0, 'power': True, 'lock': None, 'mode': None, 'fan_speed': None, 'oscillate': None, 'oscillation_angle': None, 'oscillation_mode': None, 'tilting_angle': None, 'header': 'aa3cfa00000000000002', 'body': '0000000001000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000', 'message_type': 'set', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageSet object at 0x7f53679e20>}, query is False
2024-12-03 18:37:30.821 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.set: 2>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000202', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f53678590>, '_data': '000004000301000002010000000000000000008000000a054000000000000100000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': True, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000202', 'body': '000004000301000002010000000000000000008000000a054000000000000100000000000000ff00000000000000000000000000', 'message_type': 'set', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f573e0380>}
2024-12-03 18:37:30.822 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': True, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:37:31.737 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.notify1: 4>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000204', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f668984a0>, '_data': '000004000301000002010000000000000000008000000a054000000000000100000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': True, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000204', 'body': '000004000301000002010000000000000000008000000a054000000000000100000000000000ff00000000000000000000000000', 'message_type': 'notify1', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f5764a120>}
2024-12-03 18:37:31.738 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': True, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:37:34.468 DEBUG (SyncWorker_22) [midealocal.device] [151732605698434] Sending: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.set: 2>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, '_subtype': 0, 'power': None, 'lock': None, 'mode': None, 'fan_speed': None, 'oscillate': True, 'oscillation_angle': 3, 'oscillation_mode': 1, 'tilting_angle': None, 'header': 'aa3cfa00000000000002', 'body': '0000000080000000330000000000000000000000000000000000000000000000000000000000000000000000000000000000', 'message_type': 'set', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageSet object at 0x7f518942c0>}, query is False
2024-12-03 18:37:34.759 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.set: 2>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000202', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f51894ef0>, '_data': '000004000301000002010000000000000000008000000a054000000000000100000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': True, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000202', 'body': '000004000301000002010000000000000000008000000a054000000000000100000000000000ff00000000000000000000000000', 'message_type': 'set', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f573e3830>}
2024-12-03 18:37:34.759 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': True, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:37:35.726 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.notify1: 4>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000204', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f51894830>, '_data': '000004000301000002010000000000000000008000000a054000000000000100000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': True, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000204', 'body': '000004000301000002010000000000000000008000000a054000000000000100000000000000ff00000000000000000000000000', 'message_type': 'notify1', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f51899010>}
2024-12-03 18:37:35.726 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': True, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:37:40.486 DEBUG (SyncWorker_55) [midealocal.device] [151732605698434] Sending: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.set: 2>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, '_subtype': 0, 'power': None, 'lock': None, 'mode': None, 'fan_speed': None, 'oscillate': True, 'oscillation_angle': 3, 'oscillation_mode': 1, 'tilting_angle': None, 'header': 'aa3cfa00000000000002', 'body': '0000000080000000330000000000000000000000000000000000000000000000000000000000000000000000000000000000', 'message_type': 'set', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageSet object at 0x7f4f471190>}, query is False
2024-12-03 18:37:40.757 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.set: 2>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000202', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f602c9310>, '_data': '000004000301000002010000000000000000008000000a054000000000000100000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': True, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000202', 'body': '000004000301000002010000000000000000008000000a054000000000000100000000000000ff00000000000000000000000000', 'message_type': 'set', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f576c0500>}
2024-12-03 18:37:40.758 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': True, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:37:40.760 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmds: [<midealocal.message.MessageQueryAppliance object at 0x7f576c0500>, <midealocal.devices.fa.message.MessageQuery object at 0x7f50d59c40>], check_protocol False
2024-12-03 18:37:40.760 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmd: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query_appliance: 160>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa1dfa000000000000a0', 'body': '00000000000000000000000000000000000000', 'message_type': 'query_appliance', 'body_type': '00', 'self': <midealocal.message.MessageQueryAppliance object at 0x7f576c0500>}, unsupported protocol, SKIP
2024-12-03 18:37:40.761 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Sending: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa0afa00000000000003', 'body': '', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageQuery object at 0x7f50d59c40>}, query is True
2024-12-03 18:37:40.966 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000203', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f518942c0>, '_data': '000004000301000002010000000000000000008000000a054000000000000100000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': True, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000203', 'body': '000004000301000002010000000000000000008000000a054000000000000100000000000000ff00000000000000000000000000', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f602ca090>}
2024-12-03 18:37:40.967 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': True, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:37:41.944 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.notify1: 4>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000204', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f4f4d0770>, '_data': '000004000301000002010000000000000000008000000a054000000000000100000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': True, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000204', 'body': '000004000301000002010000000000000000008000000a054000000000000100000000000000ff00000000000000000000000000', 'message_type': 'notify1', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f5181ba70>}
2024-12-03 18:37:41.945 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': True, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:37:46.557 DEBUG (SyncWorker_28) [midealocal.device] [151732605698434] Sending: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.set: 2>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, '_subtype': 0, 'power': False, 'lock': None, 'mode': None, 'fan_speed': None, 'oscillate': None, 'oscillation_angle': None, 'oscillation_mode': None, 'tilting_angle': None, 'header': 'aa3cfa00000000000002', 'body': '0000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000', 'message_type': 'set', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageSet object at 0x7f574274d0>}, query is False
2024-12-03 18:37:46.838 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.set: 2>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000202', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f5367a750>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000202', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'set', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f5181e300>}
2024-12-03 18:37:46.838 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:37:47.788 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.notify1: 4>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000204', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f56d4c470>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000204', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'notify1', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f4f4d02f0>}
2024-12-03 18:37:47.789 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:37:56.505 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.notify1: 4>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000204', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f5181c530>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000204', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'notify1', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f50cc8f50>}
2024-12-03 18:37:56.506 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:38:16.589 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmds: [<midealocal.message.MessageQueryAppliance object at 0x7f56b1ab70>, <midealocal.devices.fa.message.MessageQuery object at 0x7f9118c950>], check_protocol False
2024-12-03 18:38:16.590 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmd: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query_appliance: 160>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa1dfa000000000000a0', 'body': '00000000000000000000000000000000000000', 'message_type': 'query_appliance', 'body_type': '00', 'self': <midealocal.message.MessageQueryAppliance object at 0x7f56b1ab70>}, unsupported protocol, SKIP
2024-12-03 18:38:16.590 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Sending: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa0afa00000000000003', 'body': '', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageQuery object at 0x7f9118c950>}, query is True
2024-12-03 18:38:16.824 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000203', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f5184cb60>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000203', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f5324d580>}
2024-12-03 18:38:16.824 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:38:46.920 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmds: [<midealocal.message.MessageQueryAppliance object at 0x7f56bc5040>, <midealocal.devices.fa.message.MessageQuery object at 0x7f5367a060>], check_protocol False
2024-12-03 18:38:46.920 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmd: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query_appliance: 160>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa1dfa000000000000a0', 'body': '00000000000000000000000000000000000000', 'message_type': 'query_appliance', 'body_type': '00', 'self': <midealocal.message.MessageQueryAppliance object at 0x7f56bc5040>}, unsupported protocol, SKIP
2024-12-03 18:38:46.921 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Sending: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa0afa00000000000003', 'body': '', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageQuery object at 0x7f5367a060>}, query is True
2024-12-03 18:38:47.150 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000203', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f5367b710>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000203', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f795af110>}
2024-12-03 18:38:47.150 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:38:56.661 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.notify1: 4>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000204', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f5650fe30>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000204', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'notify1', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f519a09b0>}
2024-12-03 18:38:56.662 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:39:26.800 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmds: [<midealocal.message.MessageQueryAppliance object at 0x7f56f78800>, <midealocal.devices.fa.message.MessageQuery object at 0x7f5ec5f020>], check_protocol False
2024-12-03 18:39:26.801 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmd: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query_appliance: 160>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa1dfa000000000000a0', 'body': '00000000000000000000000000000000000000', 'message_type': 'query_appliance', 'body_type': '00', 'self': <midealocal.message.MessageQueryAppliance object at 0x7f56f78800>}, unsupported protocol, SKIP
2024-12-03 18:39:26.801 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Sending: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa0afa00000000000003', 'body': '', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageQuery object at 0x7f5ec5f020>}, query is True
2024-12-03 18:39:27.004 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000203', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f65c7fd40>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000203', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f50d59c40>}
2024-12-03 18:39:27.005 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:39:56.827 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.notify1: 4>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000204', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f5ee0e990>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000204', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'notify1', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f6a52cb00>}
2024-12-03 18:39:56.828 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:39:56.829 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmds: [<midealocal.message.MessageQueryAppliance object at 0x7f6a52cb00>, <midealocal.devices.fa.message.MessageQuery object at 0x7f5ecdf560>], check_protocol False
2024-12-03 18:39:56.830 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmd: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query_appliance: 160>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa1dfa000000000000a0', 'body': '00000000000000000000000000000000000000', 'message_type': 'query_appliance', 'body_type': '00', 'self': <midealocal.message.MessageQueryAppliance object at 0x7f6a52cb00>}, unsupported protocol, SKIP
2024-12-03 18:39:56.830 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Sending: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa0afa00000000000003', 'body': '', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageQuery object at 0x7f5ecdf560>}, query is True
2024-12-03 18:39:57.049 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000203', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f5183aa50>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000203', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f602ca0c0>}
2024-12-03 18:39:57.050 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:40:27.132 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmds: [<midealocal.message.MessageQueryAppliance object at 0x7f5182e3f0>, <midealocal.devices.fa.message.MessageQuery object at 0x7f5650ff20>], check_protocol False
2024-12-03 18:40:27.132 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmd: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query_appliance: 160>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa1dfa000000000000a0', 'body': '00000000000000000000000000000000000000', 'message_type': 'query_appliance', 'body_type': '00', 'self': <midealocal.message.MessageQueryAppliance object at 0x7f5182e3f0>}, unsupported protocol, SKIP
2024-12-03 18:40:27.133 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Sending: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa0afa00000000000003', 'body': '', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageQuery object at 0x7f5650ff20>}, query is True
2024-12-03 18:40:27.342 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000203', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f518184a0>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000203', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f79a9fc80>}
2024-12-03 18:40:27.343 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:40:56.963 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.notify1: 4>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000204', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f50d59c40>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000204', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'notify1', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f51901160>}
2024-12-03 18:40:56.963 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}
2024-12-03 18:41:06.975 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmds: [<midealocal.message.MessageQueryAppliance object at 0x7f518188c0>, <midealocal.devices.fa.message.MessageQuery object at 0x7f4f4d2900>], check_protocol False
2024-12-03 18:41:06.976 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] refresh_status with cmd: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query_appliance: 160>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa1dfa000000000000a0', 'body': '00000000000000000000000000000000000000', 'message_type': 'query_appliance', 'body_type': '00', 'self': <midealocal.message.MessageQueryAppliance object at 0x7f518188c0>}, unsupported protocol, SKIP
2024-12-03 18:41:06.976 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Sending: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 0, 'header': 'aa0afa00000000000003', 'body': '', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageQuery object at 0x7f4f4d2900>}, query is True
2024-12-03 18:41:07.176 DEBUG (Bedroom Fan) [midealocal.devices.fa] [151732605698434] Received: {'_device_type': <DeviceType.FA: 250>, '_message_type': <MessageType.query: 3>, '_body_type': <ListTypes.X00: 0>, '_message_protocol_version': 2, '_header': 'aa3efa00000000000203', '_body': <midealocal.devices.fa.message.FAGeneralMessageBody object at 0x7f51819760>, '_data': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'parser_list': [], 'child_lock': False, 'power': False, 'mode': 0, 'fan_speed': 1, 'oscillate': False, 'oscillation_angle': 0, 'oscillation_mode': 1, 'tilting_angle': 0, 'header': 'aa3efa00000000000203', 'body': '000004000201000002010000000000000000008000000a054000000000000000000000000000ff00000000000000000000000000', 'message_type': 'query', 'body_type': '00', 'self': <midealocal.devices.fa.message.MessageFAResponse object at 0x7f4f4d2900>}
2024-12-03 18:41:07.177 DEBUG (Bedroom Fan) [midealocal.device] [151732605698434] Status update: {'power': False, 'child_lock': False, 'mode': 'Normal', 'fan_speed': 0, 'oscillate': False, 'oscillation_angle': 'Off', 'tilting_angle': 'Off', 'oscillation_mode': 'Oscillation'}

@wuwentao
Copy link
Owner

wuwentao commented Dec 4, 2024

@katelovescode got it, thanks for the debug log.
I think we have got the expected SN as below:

2024-12-03 18:35:41.310 DEBUG (MainThread) [midealocal.discover] Found a supported device: {'device_id': 151732605698434, 'type': 250, 'ip_address': '192.168.1.250', 'port': 6444, 'model': '560000F3', 'sn': '0000FA511560000F345291100215UUQ6', 'protocol': 3}

so the SN is a different value from the screenshot, and both should a valid value for midea.

and I also found the error, you are using a new device with new protocl and the protocol version is v5, so some feature can't works for your new device with old protocol.

we may need to support it with a new feature, both old and new device can work at the same time, will try to add some code and provide info to you.
then you can test it with your device, once got confirm, I will commit/merge, and it can be available in new release in future.

@wuwentao wuwentao added add_new_protocol add_new_feature and removed bug Something isn't working labels Dec 4, 2024
@wuwentao wuwentao changed the title Bug(FA): Fan Oscillation not working Feature(FA): Fan Oscillation not working Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants