mill1000 / midea-msmart

Python library for local control of Midea (and associated brands) smart air conditioners.
MIT License
49 stars 2 forks source link

Add support for "new protocol" #97

Closed mill1000 closed 7 months ago

mill1000 commented 9 months ago

Some functions requested by users (https://github.com/mill1000/midea-ac-py/issues/60, possibly https://github.com/mill1000/midea-ac-py/issues/31) are accessed via the "new protocol".

The protocol has a comment calling it the "variable length attribute protocol". It appears to be a list of properties each with an ID and a value, similar to the capabilities response.

The protocol seems to use either:

For these types, data[1] contains the number of properties.

Each property has:

There seems to be a special message with Response ID of 0xB5 with a Frame Type of 0x5. This message has a single "property" with ID [0x7E, 0x00] and a length of approx 42 bytes. The payload of this "property" seems to be a similar to a StateResponse possibly indicating that when using the "new protocol" the old protocol is repackaged in this message.

mill1000 commented 7 months ago

For anyone willing to help test.

Either clone the development branch git clone https://github.com/mill1000/midea-msmart.git --branch feature/new_protocol

or install via pip in a venv pip install git+https://github.com/mill1000/midea-msmart@feature/new_protocol

Then execute this example:

import asyncio
import logging

from msmart.device import AirConditioner as AC
from msmart.device.AC.command import GetPropertiesCommand, PropertiesResponse, PropertyId

logging.basicConfig(level=logging.DEBUG)

DEVICE_IP = "YOUR_DEVICE_IP"
DEVICE_PORT = 6444
DEVICE_ID = "YOUR_DEVICE_ID"

# For V3 devices
DEVICE_TOKEN = None  # "YOUR_DEVICE_TOKEN"
DEVICE_KEY = None  # "YOUR_DEVICE_KEY"

async def main():
    device = AC(ip=DEVICE_IP, port=6444, device_id=int(DEVICE_ID))
    if DEVICE_TOKEN and DEVICE_KEY:
        await device.authenticate(DEVICE_TOKEN, DEVICE_KEY)

    # Try to get all properties at once
    print("Fetching all known properties")
    command = GetPropertiesCommand([x for x in PropertyId])
    command._protocol_version = 3
    for response in await device._send_command_get_responses(command):
        print(response)

    # Try to get properties one at a time
    for prop in PropertyId:
        print(f"Fetching individual property {prop.name}")
        command = GetPropertiesCommand([prop])
        command._protocol_version = 3
        for response in await device._send_command_get_responses(command):
            print(response)

if __name__ == "__main__":
    asyncio.run(main())

EDIT: Updated example

seppe912 commented 7 months ago
DEBUG:asyncio:Using selector: EpollSelector
INFO:msmart.lan:Creating new connection to 192.168.178.80:6444.
DEBUG:msmart.lan:Connected to 192.168.178.80:6444.
INFO:msmart.lan:Authenticating with 192.168.178.80:6444.
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 83700040200000002287dbe5056e76442be89b51e25b5f8f7e9ee360cd086eaa5880f86cc6ae381ea79def1139170b99153e98260136cb57e1ea8cec356a34af5c99acdd6ef03a19
DEBUG:msmart.lan:Received data from 192.168.178.80:6444: 837000402001000092e25265884d16890e9e04032430fa0489ad0696fb8db38668cbcef3e652aaa5128213785b4fd6bb850a4dd73dca79081ac8d99b3346686ff2f81bf8ebd43410
INFO:msmart.lan:Authentication successful. Expiration: 2024-02-10T08:53:34, Local key: 637525f93c99d0325c4bf6f32c997f648d802be3cb40df984b9cb3ed52ac65b1
Fetching all known properties
DEBUG:msmart.base_device:Sending command to 192.168.178.80:6444: aa16acba000000000003b10409000a0015001e02013a49
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000003223351409021814a9910000001200000000000000000000000000004e8eac9435c0a5f9a6ae90ebc44fff7f88ff7fadced2a1988e3f1717fa14586fec427b7fa3e8d9fff791c9505028166b
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e20668b1179dd7875fe2830b5e875b7c1aa4138336da47446c766b2ab551c49d8f84ce187e812580c8c47160e24596eed39a8c8b948cc7f25082cf4290e80e851826cc7ca594a892388d030220a4235a889cc92898be6a05e90666c9913e4f275d4ae200a79915217d9736816663c93ffa51d95755bcc47fb02ee4543d435380c54fe
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000003223351409021814a9910000001200000000000000000000000000004e8eac9435c0a5f9a6ae90ebc44fff7f88ff7fadced2a1988e3f1717fa14586fec427b7fa3e8d9fff791c9505028166b
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e206649c48a845d21ae5d10d3d6fe8f012ab97827088cefa22d58cb2ce68c69cd616f93417539dee9c0736b70ed41752271610d77ac1cac8a48d6defda24a2efa91ca37b5ab4b748f3edf5b42b5a67d70b1cb5818218dcdb51b698d9e4bcf2c329bc4cade23e831e9dfb04ff389589e499379b11b4071fb7e1898c15cc6b0e36cf9ae
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000003223351409021814a9910000001200000000000000000000000000004e8eac9435c0a5f9a6ae90ebc44fff7f88ff7fadced2a1988e3f1717fa14586fec427b7fa3e8d9fff791c9505028166b
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e20661abf029edf9659d5560394fa7b1aa6e464044fe4623cf6b2339d34c59b1b7d537375b82f6a2a7590344773b463c5ad5e39aa02011981b53c310752640be8ed3f7543af80d73eb946d8457ae2030f3b275d8e249b00ebf1784a29506e71b2bcc9442390f6c9329200d19e4ddedc89f7595118aa17ee302bdaaf99bc50c980419c
DEBUG:msmart.lan:Disconnecting from 192.168.178.80:6444.
WARNING:msmart.base_device:Network timeout 192.168.178.80:6444: No response from host.
WARNING:msmart.base_device:No response from 192.168.178.80:6444 in 6.020000 seconds.
Fetching individual property SWING_UD_ANGLE
DEBUG:msmart.base_device:Sending command to 192.168.178.80:6444: aa10acbc000000000003b1010900023f89
INFO:msmart.lan:Creating new connection to 192.168.178.80:6444.
DEBUG:msmart.lan:Connected to 192.168.178.80:6444.
INFO:msmart.lan:Authenticating with 192.168.178.80:6444.
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 83700040200000002287dbe5056e76442be89b51e25b5f8f7e9ee360cd086eaa5880f86cc6ae381ea79def1139170b99153e98260136cb57e1ea8cec356a34af5c99acdd6ef03a19
DEBUG:msmart.lan:Received data from 192.168.178.80:6444: 8370004020010000994a5b24ba0cea6eb667f0917266d859d8ca4d883b43fbb56447f4871453b813c23c3c17898f8eec9fdd97d68368a07e619a55dbbec683ba696c9ef7c1c00269
INFO:msmart.lan:Authentication successful. Expiration: 2024-02-10T08:53:41, Local key: 402699e0fd4862281feb47ee1e7849787ed99cfc00f9eb8760b907f3e579d0af
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a01115800200000000000472a351409021814a9910000001200000000000000000000000000009f24643307e124dbcd3cc35379c12da47a6d2fd0aa2dbac5227e569b8730a9f556c3907ad2475a57cfe4a66fe3b9a1bb
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e20660d284cbad648ebd6a1a839d02c6c2ecf3d9816af09725ce8e8c555b03e646e4cd307a931f05ba912ba0323fef4315ac1f1de48d0132f74a48c3eabb3f3bff2e4a5f36601ebc41f03a039a0655ded7b49a40ee02dc7c537df61f67c6a25a7a0528514875211082e2853d8f248af53f8b0d3310048d31613af06546fc6075488ae
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a01115800200000000000472a351409021814a9910000001200000000000000000000000000009f24643307e124dbcd3cc35379c12da47a6d2fd0aa2dbac5227e569b8730a9f556c3907ad2475a57cfe4a66fe3b9a1bb
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e20669dcded837a6911527acdcf07fe21917c7062f1f50783225661aedc2e20a6584e3a7efa0bbf2640fc415d0a10015961bcbb484894c1c13a5b37c8007a9aa3461c6246c738133d084d44391ab4a64c75a37534cd2bb13168025c1e740b6602f45bdf9ac7769c9deba66e311f91d71417524b17e4433dadba35474aea809b2d8879
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a01115800200000000000472a351409021814a9910000001200000000000000000000000000009f24643307e124dbcd3cc35379c12da47a6d2fd0aa2dbac5227e569b8730a9f556c3907ad2475a57cfe4a66fe3b9a1bb
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e2066545c991d9ee56b9984c7b2a73c3f50f53fe56a6c9ad7cfa0e18112c7887e929624ce6dbee59710e05a9ee5ff809df21f3d0f85cb64131bacffbd404f0718bda9f0e077b6e6c5ed5fa264ba83f451b6ca0b1d3e62efe865fd2589b4b82fc0a435e2828b70533d567e236d1ff3f13f9ed4cb5c53b5bdce85f55c20a4a840216142
DEBUG:msmart.lan:Disconnecting from 192.168.178.80:6444.
WARNING:msmart.base_device:Network timeout 192.168.178.80:6444: No response from host.
WARNING:msmart.base_device:No response from 192.168.178.80:6444 in 7.210000 seconds.
Fetching individual property SWING_LR_ANGLE
DEBUG:msmart.base_device:Sending command to 192.168.178.80:6444: aa10acbc000000000003b1010a00038541
INFO:msmart.lan:Creating new connection to 192.168.178.80:6444.
DEBUG:msmart.lan:Connected to 192.168.178.80:6444.
INFO:msmart.lan:Authenticating with 192.168.178.80:6444.
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 83700040200000002287dbe5056e76442be89b51e25b5f8f7e9ee360cd086eaa5880f86cc6ae381ea79def1139170b99153e98260136cb57e1ea8cec356a34af5c99acdd6ef03a19
DEBUG:msmart.lan:Received data from 192.168.178.80:6444: 8370004020010000778834e5b9ed7496a7f911767a0b701814e717dc6839a1e6c345971f9202667145ba1d206e5d735e56e6abaa718c8e8fe90af4fc9f1152b71e796c1db245a7b7
INFO:msmart.lan:Authentication successful. Expiration: 2024-02-10T08:53:48, Local key: 1a7df1f9a9e58d1fbdc126da3ba92b4b204b79ce9dd68fb6c077e0c22429b79f
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000005c31351409021814a991000000120000000000000000000000000000a02ed25136de796e646d69083d5c015892a28424db7e8bbe2ed1398a6b4c618b862efd248e0bc6c000cccc7c1ae22f13
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e2066978eebc879e84c483228180fde0fa997a6a1ca242fb923d3f56ad00e48a07de55716e7fa78cfc39d5a0db80fda66952cfdd85b84c4a97e4d07f05a454f35a3e954a23fc7e7d5a3d5b7c43b339be96f303ac5df50554ffa66d6f21c4b440da7de0f8d7e475c0196d77d653c85424c1c4ed0e008522960284a832ad41223ba976a
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000005c31351409021814a991000000120000000000000000000000000000a02ed25136de796e646d69083d5c015892a28424db7e8bbe2ed1398a6b4c618b862efd248e0bc6c000cccc7c1ae22f13
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e2066dc9c6f8828948b2b3dff5ffe0e92c7c279cf1433ef95061c132c572cb8046802bd641bcb1c57e9a456cb9ae037a53d243852c31fcb05ff82d88bc842ebf33d03554a5db89534ecafdd042222eae8457d984c94c0e1121c31d08f6fb97d9a057fa9fd63af2e4dc2d4fd153de5cbcf303d26b35e112e050dce6e5730f4b25a1616
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000005c31351409021814a991000000120000000000000000000000000000a02ed25136de796e646d69083d5c015892a28424db7e8bbe2ed1398a6b4c618b862efd248e0bc6c000cccc7c1ae22f13
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e206629d65b12539e706a94d9c5fb60a20182db309ffe45a75229e6733b6b9690d1ed497abf7063f7ceecb0ea51c65c1964173d6004d71964ca256b55e3f2a6b2e1628724d7a203c99fdd36d4b364e2b5d7a0e02efb8d6d1034230f3f583fa2e88d655b5df159a6f48cb3cbd3b9075e270caaeac39785777f68337a66f00c8959d520
DEBUG:msmart.lan:Disconnecting from 192.168.178.80:6444.
WARNING:msmart.base_device:Network timeout 192.168.178.80:6444: No response from host.
WARNING:msmart.base_device:No response from 192.168.178.80:6444 in 7.210000 seconds.
Fetching individual property INDOOR_HUMIDITY
DEBUG:msmart.base_device:Sending command to 192.168.178.80:6444: aa10acbc000000000003b10115000413a7
INFO:msmart.lan:Creating new connection to 192.168.178.80:6444.
DEBUG:msmart.lan:Connected to 192.168.178.80:6444.
INFO:msmart.lan:Authenticating with 192.168.178.80:6444.
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 83700040200000002287dbe5056e76442be89b51e25b5f8f7e9ee360cd086eaa5880f86cc6ae381ea79def1139170b99153e98260136cb57e1ea8cec356a34af5c99acdd6ef03a19
DEBUG:msmart.lan:Received data from 192.168.178.80:6444: 837000402001000065231cc73ab8a99e1d2d24636507f2aa6671ff11e2598c206314137f51101d0bb3fcc2828c8a9de033198b36de6c0523edafd51187b523fe01a3549fecee3521
INFO:msmart.lan:Authentication successful. Expiration: 2024-02-10T08:53:56, Local key: d1d3dace75e0a0364acf05f047b20b66c915dee2b142a999a60145eda0fa92b1
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000000c39351409021814a991000000120000000000000000000000000000dc0a74de86baeb73e746f22f0ac3b60b5efc78a799383b93ec751b0b8cbb8cf6474b314dfd2c19414e0850977d90ca91
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e206688cc737718ac4bb4c1510e76ef27dfc4cd4b2593c50ffc2d51bf86786b1f2076c35bb6bccaa7329f9c810d870552111ebc91476bd0955b01d851c76c35553541bb94717ef333e6348300a63fe3023332be80c5e504f3a0aeda90a73f490134dbbb8881f09daf30c87da32c41a2a0cfe6ba95d8be85a2ce6d70b41acfeb121ac5
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000000c39351409021814a991000000120000000000000000000000000000dc0a74de86baeb73e746f22f0ac3b60b5efc78a799383b93ec751b0b8cbb8cf6474b314dfd2c19414e0850977d90ca91
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e20666e48051c282dec8b47dbadd5f531846d0090503e7b92b0d9bd8642dc4f400955098919e93d97ad38b71f323c510b84589dab478186dd07016837d8fe000f3740efd714c46b879bb6dc275ca6a6cd7489169133be94142abd57e83fce7d18fef8f39e0d4dd56a57771d49bee8a4fc74e4ab3aeb40af15418cd9ea058910ce335e
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000000c39351409021814a991000000120000000000000000000000000000dc0a74de86baeb73e746f22f0ac3b60b5efc78a799383b93ec751b0b8cbb8cf6474b314dfd2c19414e0850977d90ca91
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e20669b125f6cc9556f5292598a217399819fe57bab3de21222277fe87178c2b2fc83b09ce331c82082516f5da4f7ffdee62f4af45b239325c6e8fa304fe6fec5d1bca8430267d88ce689d3277467dc38fc3b6f1f6c734e479fb296915f6856d8d7c01927f915e8a2f67f64b3a9a427b07780b40659b0c74b05dc5034f040e1f35b1d
DEBUG:msmart.lan:Disconnecting from 192.168.178.80:6444.
WARNING:msmart.base_device:Network timeout 192.168.178.80:6444: No response from host.
WARNING:msmart.base_device:No response from 192.168.178.80:6444 in 7.210000 seconds.
Fetching individual property ANION
DEBUG:msmart.base_device:Sending command to 192.168.178.80:6444: aa10acbc000000000003b1011e02051d91
INFO:msmart.lan:Creating new connection to 192.168.178.80:6444.
DEBUG:msmart.lan:Connected to 192.168.178.80:6444.
INFO:msmart.lan:Authenticating with 192.168.178.80:6444.
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 83700040200000002287dbe5056e76442be89b51e25b5f8f7e9ee360cd086eaa5880f86cc6ae381ea79def1139170b99153e98260136cb57e1ea8cec356a34af5c99acdd6ef03a19
DEBUG:msmart.lan:Received data from 192.168.178.80:6444: 837000402001000086290efadc505a1fc1e3792b579272c8ac2176e173a92330ecb261d8a0e2012ac27143cfc38ddaf0e4257dbba429190f3da40b4ac621d8b1ed606ca5701f9f66
INFO:msmart.lan:Authentication successful. Expiration: 2024-02-10T08:54:03, Local key: fdbfc8e10f76323acaf294fc6cf21a6b1f80ceef32a93994db40d5e077c402bc
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000002104361409021814a991000000120000000000000000000000000000ad684b28033f32b66bb51d9c4f39f9d9b89042d6de1a2cffd167456657d3f712a9ba1362d4fde0434345cbdb937e086a
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e2066e4638e750c2ceb42200839801564982e7ee9f66f9cc2636a669305ee56ba00751422a506b0759d2033037bc0b41e7b2973d8698e1a7b14e3159696eb3f0705d001221ee28c23e00c370f5242f9a1b0881b0c69ff515687f0fa54e12543bc3caa1d8973ea560841a588034d1bfeb03f14686b739a03e69b8112c049c6c78240b3
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000002104361409021814a991000000120000000000000000000000000000ad684b28033f32b66bb51d9c4f39f9d9b89042d6de1a2cffd167456657d3f712a9ba1362d4fde0434345cbdb937e086a
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e206626bc8f516bf1d59849478555fd3d27e2b551889fd69e2b69e0e602431c2a17ad4cd2d118c689131dab85b087f3b3883cde3b7bab700b169d543d77beee63f945da69429717bddb2f76e8fe53042d3d6e642ce69d111ecc44254a4c9a790654c7b972f35415ef5d1a7f013e9d1201501273bcc5ce990154e9182772c345e3080d
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000002104361409021814a991000000120000000000000000000000000000ad684b28033f32b66bb51d9c4f39f9d9b89042d6de1a2cffd167456657d3f712a9ba1362d4fde0434345cbdb937e086a
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e20664086031e013c9016f959208d526a25c82fe40ee3a2fd2a9dc6226fbc380c409edb291c39dfd540410fb647c578ba78d2ca88d8ffe3f6fc85aae5f06009bc8f258be8563f11fa1c9e227879cea20d1b54dc010ffac2dfe7ba8c0c6941909a4d6e21131e607cd5eca915526b0d99081c4a5080bc7cc8a57adf5f47284ba66f57f8
DEBUG:msmart.lan:Disconnecting from 192.168.178.80:6444.
WARNING:msmart.base_device:Network timeout 192.168.178.80:6444: No response from host.
WARNING:msmart.base_device:No response from 192.168.178.80:6444 in 7.210000 seconds.
mill1000 commented 7 months ago

Thanks for testing. Unfortunately I must have the packet structure wrong since there was no replies. Back to the drawing board.

mill1000 commented 7 months ago

Ok, try this version

import asyncio
import logging

from msmart.device import AirConditioner as AC
from msmart.device.AC.command import GetPropertiesCommand, PropertiesResponse, PropertyId

logging.basicConfig(level=logging.DEBUG)

DEVICE_IP = "YOUR_DEVICE_IP"
DEVICE_PORT = 6444
DEVICE_ID = "YOUR_DEVICE_ID"

# For V3 devices
DEVICE_TOKEN = None  # "YOUR_DEVICE_TOKEN"
DEVICE_KEY = None  # "YOUR_DEVICE_KEY"

async def main():
    device = AC(ip=DEVICE_IP, port=6444, device_id=int(DEVICE_ID))
    if DEVICE_TOKEN and DEVICE_KEY:
        await device.authenticate(DEVICE_TOKEN, DEVICE_KEY)

    # Try to get all properties at once
    print("Fetching all known properties")
    command = GetPropertiesCommand([x for x in PropertyId])
    command._protocol_version = 3
    for response in await device._send_command_get_responses(command):
        print(response)

    # Try to get properties one at a time
    for prop in PropertyId:
        print(f"Fetching individual property {prop.name}")
        command = GetPropertiesCommand([prop])
        command._protocol_version = 3
        for response in await device._send_command_get_responses(command):
            print(response)

if __name__ == "__main__":
    asyncio.run(main())
seppe912 commented 7 months ago

is there any requirement for the new protocol? Maybe my AC still dont have that !?

DEBUG:asyncio:Using selector: EpollSelector
INFO:msmart.lan:Creating new connection to 192.168.178.80:6444.
DEBUG:msmart.lan:Connected to 192.168.178.80:6444.
INFO:msmart.lan:Authenticating with 192.168.178.80:6444.
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 83700040200000002287dbe5056e76442be89b51e25b5f8f7e9ee360cd086eaa5880f86cc6ae381ea79def1139170b99153e98260136cb57e1ea8cec356a34af5c99acdd6ef03a19
DEBUG:msmart.lan:Received data from 192.168.178.80:6444: 83700040200100001dc6ee4f7b8d30a6b4504c9017ba0ccdb2c1b8be5bffcd8baf9463e3a16fb835d9a05a1aa5ced6ff48d7f534b0d818c59dce218178e803ac9c4dab4a753bf862
INFO:msmart.lan:Authentication successful. Expiration: 2024-02-11T05:34:39, Local key: df29a67020c951a34c4b7f636c9ff7f0cbae2777a5edd30ea625bd7b2b546b26
Fetching all known properties
DEBUG:msmart.base_device:Sending command to 192.168.178.80:6444: aa16acba000000000303b10409000a0015001e02013a46
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a01115800200000000000462822110a021814a9910000001200000000000000000000000000009215d613971135e1620b9c4c945af9d20cf0c8b4a20300aa5dbf3f458524d08b804eecb0e22e9c1e0b85b79622790192
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e2066ead920145d197590bf7d64f2939da2366542c960841304ce8cc83189d106a10ea03a7253a0f6cea124e446fb4c7d0fe47202088118a87475bec147762b4a82397ac1dbf338ae12c366ea9e198d2829c7c74f10a79d4b0e99c9e18a3d8f2f135cee7563ab2e8fd1938974508521cd22c8f89a12e4b9a1cd4672ff1b672f4a3741
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a01115800200000000000462822110a021814a9910000001200000000000000000000000000009215d613971135e1620b9c4c945af9d20cf0c8b4a20300aa5dbf3f458524d08b804eecb0e22e9c1e0b85b79622790192
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e2066dcef2607b22ad1f8188668272a0659e8a59472f2e1fef0463b5cb3fc8ac5db117ec99cd35c1b0bb42101b1982b37ad158242e5752c50bb9819d327a685f0654fa7bf18afe5e6f5697d3733a66016d66ecf18b48cf2723fffc353809428737bfd97060b7e4e656b5879fa579a381c122b72b7c9c601ea39fed493b6075307a639
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a01115800200000000000462822110a021814a9910000001200000000000000000000000000009215d613971135e1620b9c4c945af9d20cf0c8b4a20300aa5dbf3f458524d08b804eecb0e22e9c1e0b85b79622790192
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e2066c83079d017a37547b00c1fef019b430a90e1821e24befb7fdb5f9cf320aac3846d020d2f9d76b2202721d87a65df069e451c1e02b6acd62719760a721d01946c9727b93eac96d6e6123aed85963d075788afef1c6e46ef448f6d913ef95befc2057b118ac7d833c6d0b4d7df1f0d210569e851dc64d139b6914b13908349ffff
DEBUG:msmart.lan:Disconnecting from 192.168.178.80:6444.
WARNING:msmart.base_device:Network timeout 192.168.178.80:6444: No response from host.
WARNING:msmart.base_device:No response from 192.168.178.80:6444 in 6.010000 seconds.
Fetching individual property SWING_UD_ANGLE
DEBUG:msmart.base_device:Sending command to 192.168.178.80:6444: aa10acbc000000000303b1010900023f86
INFO:msmart.lan:Creating new connection to 192.168.178.80:6444.
DEBUG:msmart.lan:Connected to 192.168.178.80:6444.
INFO:msmart.lan:Authenticating with 192.168.178.80:6444.
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 83700040200000002287dbe5056e76442be89b51e25b5f8f7e9ee360cd086eaa5880f86cc6ae381ea79def1139170b99153e98260136cb57e1ea8cec356a34af5c99acdd6ef03a19
DEBUG:msmart.lan:Received data from 192.168.178.80:6444: 8370004020010000035d2391aaf4a076a4fb6025987047976c45d9011efdf13b1d3d0cb384b57de97b9a28d4a11ba538aef4eac4dbba282fb916afdb973a45507dc3cc0fbb2f52e8
INFO:msmart.lan:Authentication successful. Expiration: 2024-02-11T05:34:46, Local key: 78748b77ef3a70b12d8c5b77390f55e6c9a48762bdcc701a95099f6e95edc833
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000005b2f22110a021814a9910000001200000000000000000000000000000709fcae7d5146fd424e424960b8280bfd56fe8b675229c44a30f456f9bb7506c1c170b984f5bb60ffb9363fb7109d12
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e20666413b96b3117157782a43d275ad6f6a84663d858da2e44c925c5c9913a3498ab49b495da211bacd9a1753549b6f3185a7125e0009c7269359702b61c7969753897df17135b386a3a5932543f3673b0e24be0f89f9e792e4fa01059546ff1908ecd9a07cf5ee6e2443029c21fd0a9243aa3fec8213e51d262d9bf20c3bd2d8306
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000005b2f22110a021814a9910000001200000000000000000000000000000709fcae7d5146fd424e424960b8280bfd56fe8b675229c44a30f456f9bb7506c1c170b984f5bb60ffb9363fb7109d12
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e2066dd36a2367bdcf4a7b6d67842ae04a38babe23632fa9fb9b156d2a9e5dd95c4e716aff8b3cb96e1091adbbf041812bbe40110c6b3a2dea089b407a37b306dd11d173cc0a925b16a89f7cc7dc3fd3196d7782aa53c7bd603295a8ad15e223965ad21ed3050d7d6871098b5580b5a8c8b20a0b9e4c8a8a011fac7768f362ef6095a
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000005b2f22110a021814a9910000001200000000000000000000000000000709fcae7d5146fd424e424960b8280bfd56fe8b675229c44a30f456f9bb7506c1c170b984f5bb60ffb9363fb7109d12
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e20669a269151cfbe2491f6899f2217f13ab8193aa9c189bbf55404283ea4b60af59a454d083274910d5897069b500b6ea7bcb60011d9cf995708c173c14785f6aba38cf2173ae9baa259d638084b9f9779c2799cbb8e286ec4cd8eb8ced78d86c15c1cd9f21a0df1050696161a20106db0ece76cb77f592c1da6cc78d0b8c0c5c634
DEBUG:msmart.lan:Disconnecting from 192.168.178.80:6444.
WARNING:msmart.base_device:Network timeout 192.168.178.80:6444: No response from host.
WARNING:msmart.base_device:No response from 192.168.178.80:6444 in 7.210000 seconds.
Fetching individual property SWING_LR_ANGLE
DEBUG:msmart.base_device:Sending command to 192.168.178.80:6444: aa10acbc000000000303b1010a0003853e
INFO:msmart.lan:Creating new connection to 192.168.178.80:6444.
DEBUG:msmart.lan:Connected to 192.168.178.80:6444.
INFO:msmart.lan:Authenticating with 192.168.178.80:6444.
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 83700040200000002287dbe5056e76442be89b51e25b5f8f7e9ee360cd086eaa5880f86cc6ae381ea79def1139170b99153e98260136cb57e1ea8cec356a34af5c99acdd6ef03a19
DEBUG:msmart.lan:Received data from 192.168.178.80:6444: 837000402001000042c14d9fbe263e308598a4420a2c1152966ebf280ca868480711c7aa1df682f342c31c16eb09e6780c8d2e8545137bd411871bba4f1b0ccbebf2ba87a1839226
INFO:msmart.lan:Authentication successful. Expiration: 2024-02-11T05:34:54, Local key: ce0be3659fc19f86d99431432ed5bcd09c8fec5519461a2c10fb7458e88fa305
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000000b3722110a021814a99100000012000000000000000000000000000037a9b8c5f4d61d967d063dd44fd283d3aeebdf73551db4dd6cd23ce754a5d85fcdb9f3eb1b9d09e1f1808f9331634dfa
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e206609981b21bdea9d1a7e046652f81a5b7ff06d2e55a5cf48cd4691d89a78421d590131e4698f06f76bee00f78f183f0ddc715009e22d1f75960d80981dcc5026c46c47146037b5be36354bc5dd4433600cf8b1b8e7ad0ef9ae1688c7764548c55732434ac43a4f9fb2af6b13f64d189d93616fcc0eafb848eccd4c87a560c55256
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000000b3722110a021814a99100000012000000000000000000000000000037a9b8c5f4d61d967d063dd44fd283d3aeebdf73551db4dd6cd23ce754a5d85fcdb9f3eb1b9d09e1f1808f9331634dfa
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e2066be9c5bf793aa80c1e923dfb52ddea3f0d347c468d46770e25cbfffac9d9feebd02e39665203452587745bb8fa8acdd243860533a05ececbf69423f1ad110d5b6835297078d79253d4310833069e07ed9b6f01b291c65f2a2c255c06620e8d0c6455fe807cf6feae2b268cb32ee989e35d835a4a6570eeee6a5f6c1b666c4e636
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a011158002000000000000b3722110a021814a99100000012000000000000000000000000000037a9b8c5f4d61d967d063dd44fd283d3aeebdf73551db4dd6cd23ce754a5d85fcdb9f3eb1b9d09e1f1808f9331634dfa
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e2066c294ee183acac9e04547c98f2eda7d1a2645dcd12d54a8cc923304154bfcad0751ccbb62f051101e86e5772a91033f700636ee8d2f5bfe588914cc5faae5b205e9b18d60f5e9a650499bc0434aa8646088e18f591afac30126220f1156ff8646953c7e37bd3b90fd2fc00c89cb41d9b348e3f55d3ccccda4fbb543e39f944522
DEBUG:msmart.lan:Disconnecting from 192.168.178.80:6444.
WARNING:msmart.base_device:Network timeout 192.168.178.80:6444: No response from host.
WARNING:msmart.base_device:No response from 192.168.178.80:6444 in 7.200000 seconds.
Fetching individual property INDOOR_HUMIDITY
DEBUG:msmart.base_device:Sending command to 192.168.178.80:6444: aa10acbc000000000303b10115000413a4
INFO:msmart.lan:Creating new connection to 192.168.178.80:6444.
DEBUG:msmart.lan:Connected to 192.168.178.80:6444.
INFO:msmart.lan:Authenticating with 192.168.178.80:6444.
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 83700040200000002287dbe5056e76442be89b51e25b5f8f7e9ee360cd086eaa5880f86cc6ae381ea79def1139170b99153e98260136cb57e1ea8cec356a34af5c99acdd6ef03a19
DEBUG:msmart.lan:Received data from 192.168.178.80:6444: 8370004020010000ac14a1de32459c204cb3792298ea68bbd0258f1d47bd2e8e95122dadfb5fc2d882b27fd00dd99f7cabbda82d494d2ce7524c4b984918c18c6cdf0ab8784a3d32
INFO:msmart.lan:Authentication successful. Expiration: 2024-02-11T05:35:01, Local key: 5eb5df4c53092c8463f209463a0803d03385d656e191a32db5874f58665d9904
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a01115800200000000000200223110a021814a9910000001200000000000000000000000000002272bfa1cc0f53731f0ddb97f6c6e82cc1fe12de6010464b3b15f4e64067109dd2bef9b03b2e28272296c6e3927f613f
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e20668dce9401dd99fb39a6a46c13598b3dab23718bc4e669ef34626d0cf7df956302e4de98ea33f7ef6676afa26f61c6f25ed5d772048e0e5d1f977715d3596fb486282643151010338eb6a9b2f8dee39a032214070ba48365e1dee055a4750236cbacf454efe613f8eea2368fa76422c7bae44678080924c408d365a704ffe400c8
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a01115800200000000000200223110a021814a9910000001200000000000000000000000000002272bfa1cc0f53731f0ddb97f6c6e82cc1fe12de6010464b3b15f4e64067109dd2bef9b03b2e28272296c6e3927f613f
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e2066f8642f95c9f66e8c657602f78ad321115c5f45eeb2060ccb6cb5ee76f41a0e4a886ce292f1b48621c91d59db4ca53fa0f8af6b37d1aa241286c06b99c8dfa0d75947a103fb5940ccf25df90e8cad2a5a2f2d6408960b44de94bbe79dd34453164861a87d9975144276a7ddfad946c7bfa08239484d575eac564e4384b5c4cf79
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a01115800200000000000200223110a021814a9910000001200000000000000000000000000002272bfa1cc0f53731f0ddb97f6c6e82cc1fe12de6010464b3b15f4e64067109dd2bef9b03b2e28272296c6e3927f613f
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e2066b8013a7d1880ff0658c2599f893e73cd15149a5b5a3bb616a9e4bf9faac1ce48c5acaa8353c72f24523d479ec745d67f1cfe34fc5a8943788c3a59cead020245f920ae5dd0f6eb5f952768e7fe684cefd8990df2ff7c62a6387ae6cb01c94adbc9b24259d00c191f93d024788f7809b804f1e2b34444c9d489063925218df773
DEBUG:msmart.lan:Disconnecting from 192.168.178.80:6444.
WARNING:msmart.base_device:Network timeout 192.168.178.80:6444: No response from host.
WARNING:msmart.base_device:No response from 192.168.178.80:6444 in 7.210000 seconds.
Fetching individual property ANION
DEBUG:msmart.base_device:Sending command to 192.168.178.80:6444: aa10acbc000000000303b1011e02051d8e
INFO:msmart.lan:Creating new connection to 192.168.178.80:6444.
DEBUG:msmart.lan:Connected to 192.168.178.80:6444.
INFO:msmart.lan:Authenticating with 192.168.178.80:6444.
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 83700040200000002287dbe5056e76442be89b51e25b5f8f7e9ee360cd086eaa5880f86cc6ae381ea79def1139170b99153e98260136cb57e1ea8cec356a34af5c99acdd6ef03a19
DEBUG:msmart.lan:Received data from 192.168.178.80:6444: 837000402001000092c1a1816f2e9db388fcc5091e7e2feb7703481d3aebc6bcde149eae899dc7b4d385149edc650a15e43ac6591584229e10efe81c00c0f0e1a010ff9e336063c5
INFO:msmart.lan:Authentication successful. Expiration: 2024-02-11T05:35:08, Local key: db45356e324b49b5b042ef701b6162e7cb15366260edc0195847ac6d372b7b31
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a01115800200000000000350923110a021814a991000000120000000000000000000000000000e55529e933e94ad8a7bb8f85d5a46d7e53511cf75b3c83f5779cd260abd307ee254f032768aada22905885b4257ffee1
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e20667693deba0053d1fae71b39d69c9183c0f743771ddacfe69383e8cd3bafa02ce5b73c9ee037500123a2e90c484a1cb3650cb2ff75bd86057c2d7fe0c617bde0f4212bdda29ef6dcf854b3a8de5c4d81029d4ec637748a3d4f2db1f1b57ec561ab8f513dfb76186bbf16ad039401774562c55f947cb45cd119cefe507d58eb9ef1
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a01115800200000000000350923110a021814a991000000120000000000000000000000000000e55529e933e94ad8a7bb8f85d5a46d7e53511cf75b3c83f5779cd260abd307ee254f032768aada22905885b4257ffee1
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e2066db0b368851a83c3c321f5be52001de469b909020c2b3c3936a131629c920a6530707f8d7eb3eb13454414b67b8f5161b33f1eb0307156c81b69eecedc3dbba8a1027bc08d65ae711e05125a86f1d0c9b8836218c8bd2926930b2b2d2162e19a87c86c8252fd8a07359a967f7c8d1c8a5c36102e9fd31abb5fd598cf1dfff549b
DEBUG:msmart.lan:Request timeout. Resending.
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a01115800200000000000350923110a021814a991000000120000000000000000000000000000e55529e933e94ad8a7bb8f85d5a46d7e53511cf75b3c83f5779cd260abd307ee254f032768aada22905885b4257ffee1
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e2066127d1941f2e8139445a436b939a51317c1391cc1bc3e89461b7fd372e3e741dad87481ab03fe38bb6e699cb1c1aa18f6539c3f39f6eb8a898f8d4beb1bf1320fddb9916e210fc172f73ff0dcd43abe544a913025e137bdf05d72c66fa08e39af581d3243bf2bda0ed73305887bd62e0aa7f31139ee87babdcde4ded0031afde6
DEBUG:msmart.lan:Disconnecting from 192.168.178.80:6444.
WARNING:msmart.base_device:Network timeout 192.168.178.80:6444: No response from host.
WARNING:msmart.base_device:No response from 192.168.178.80:6444 in 7.210000 seconds.
mill1000 commented 7 months ago

is there any requirement for the new protocol? Maybe my AC still dont have that !?

Certainly seems that way. Another user ran the test and got some data back.

Thanks for running the test.

Is there any functionality from your device that is currently missing from msmart-ng?

seppe912 commented 7 months ago

im not sure about that. In my App there is an option freeze protection. I´ve never used that, so i dont need it, but this would be a feature whats not supportet as far as i know? on the remote there is an anti mildew funktion, but not on the app, this would be interesting.. image

mill1000 commented 7 months ago

Freeze protection is available for devices that support it. :)

Haven't heard about that anti-mildew one before. Thanks.

mill1000 commented 7 months ago

Ok here's another test. Pull/install the latest commit and try this example.

@seppe912 Even though your device doesn't appear to support the "new" protocol, could you still test this? I want to make sure it doesn't break for users with the normal protocol.

import asyncio
import logging

from msmart.device import AirConditioner as AC

logging.basicConfig(level=logging.DEBUG)

DEVICE_IP = "YOUR_DEVICE_IP"
DEVICE_PORT = 6444
DEVICE_ID = "YOUR_AC_ID"

# For V3 devices
DEVICE_TOKEN = None  # "YOUR_DEVICE_TOKEN"
DEVICE_KEY = None  # "YOUR_DEVICE_KEY"

async def main():
    device = AC(ip=DEVICE_IP, port=6444, device_id=int(DEVICE_ID))
    if DEVICE_TOKEN and DEVICE_KEY:
        await device.authenticate(DEVICE_TOKEN, DEVICE_KEY)

    await device.get_capabilities()

    print(device._supported_properties)

    await device.refresh()

    print({
        "horizontal_swing_angle": device._horizontal_swing_angle,
        "vertical_swing_angle": device._vertical_swing_angle
    })

    device._horizontal_swing_angle = AC.SwingAngle.POS_3

    await device.apply()

if __name__ == "__main__":
    asyncio.run(main())
mill1000 commented 7 months ago

Did you pull the latest version from the branch before testing?

lpispek commented 7 months ago

Sorry my bed, wrong folder for running the file. One device:

DEBUG:asyncio:Using selector: EpollSelector
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: 8370004020013641a56dd945f07e9b645ee4f76b05d443fb444ebcd56ad7f34bf427fc2cb9622c5f6f768df1800a1d63f6c4527aeb437f0944b40a66aaa833f81b332741a24de773
INFO:msmart.lan:Authentication successful. Expiration: 2024-02-17T11:45:13, Local key: 0247009a71bc354615b969b76651e2a523d1a5818c71b8bb95e5a658b479cf33
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa0faca3000000000003b5010001e503
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a011158002000000000001c0e2d1710021814472a000000820000000000000000000000000000bea094f52680f1bc17ba476ddaafbc73915c618b02ed2747fad73f2ffa0db1d32fc30f8fb73cbfb73fd3d12f0883cea9
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370007e206616b894015a33d9983b141bb94bf061bbd4d2ce378a95c89b23f97987e2172a490be2a9805a2649c4b1deb5721e8c3d1bfbdfe5a4b9d1812f704cc2cf9e02d54a56eb3c40557a3a776f54953c9d51bae4065d4e3d4308a7071d93c959ae6dfc6c4a6bd973e973586606df293987297f47411a3a14bb1058ee99091b4f7e8a3f3a
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370009e2063214cbb215350e2095f9fa3b5cd874fbe6ca3f0e63438828900192f082b05b72f98463ff138c5212ce5d075a2d19fb8f7bb6bfc5efc750cd1f840cb3a15a15f2ba825984cc97931c48b6a327d5b69dadd318bef3abba2417478f6299220917e3a91226da97f533aef214884351cbe8ebf3a87f09e00c9358cd885f8cf271e36b24649653bd3d8e7824b2672c3b365537a6423b5752841583a3fb1790dbc65fc64
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a01117800208000000000954e2d1710021814472a0000008200000000000000000180000000004acf54e08f29f1c519db8dde2ba4816f440131abceaa46605f969c604d7a63ec04cce07ec260ce3a50d3005c21213b219c3ed6165ed186f7073ffc77ca16b1489877fa76cedb31adac7f57495ee02e5b
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.200000 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: aa10acbc000000000003b501010102c10a
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a01115800200000000000300e2d1710021814472a0000008200000000000000000000000000002a5b880714683b6817ab227bc8707d8bed7b1e7de382b2184bd77f949225dffb9ddb49abad0337f41b792f2085de03df
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370007e2066df5513b53a51c2d7be15d27381a7543ae1729cbfffca1425f57593151eb87adb8ab6f56a3baa9dc40df6a5157a4a91e7843b0cf1a791cf91dd21476d5406080c16552ab9594e0acf735b2488f8ee5548a9e01f452ea45d371b5a9a0b34ddcab14d5c4d919856429fd152ee9af05419fc62506125d0f99902438d512f34c6d19a
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370008e206327af9b6246b82a50301dbeefb4d8b1c7b27e055772b80899481a4ea29d187cc2b3d1ff1207440fa30a81cd3f1bc980f198af0077be2bc091f1871ad3c81047a6c36ec0bfc266b3fcb3ba5073a7b97d74b1844a6a93b6d7f7937d293fead6f6a41e687899ac80d9309e08fd22acecd7a1b0dc482f2ff5ea58642f3e4cf26234350f446c377ebce2193023ed8189e39c46
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a011168002080000000004c8e2d1710021814472a000000820000000000000000018000000000fb1a2b24ec0a7d48a018dd75c07336805eab2881baca7cf77395a43aa7e53eab53e0cb551f7282c20afd76b68f0070124ddf2a27939471910aa9b544f7a3a4a0
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}
[]
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa21ac8d000000000003418100ff03ff00020000000000000000000000000303d503
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a011168002000000000003d0e2d1710021814472a000000820000000000000000000000000000b8436dd15e84d5a4fc6fbf77d2b12486553c1270500a690b50db22f43e80f968edc15bdb2fd6301a90619b7fc5de6fac96e203c9739de747abf257fd44cfbf43
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370008e2066df9d6016f0b4d7b50208f8ecb296e7922172512d351ada54b5a0eaa8a4c9db6cf0916ccbf2c8480ee778358dcd22bde46c12cc46b71ab8d01f6b586865d81f06ed5818a02a833c3ab533660b5e8ffa47784b5604528a36c6f6473797d045d1eda188adb294b76428c4d4281787ce8828ffcd297bf9440a0cc7fb92ab5159e60c5da1bd003da3fef5f6866039b4568988
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370008e2063af43ee1e1b4cee4b273629eb8509fcce1ee3996102f9612cdfef746851a5defc61f5478bcedcd6ff5e49ddc74a2a2d5205c9db1839a04e985b1d9ef5149f3fa370940f4e07f160523de3084f989f1b7c9c6f0cdcf544c3787a38d30c5052fe2f3e6ec854fb5e8f9380adbfd443d2f28e607db31c56afed691da873360a2a478c5df80d3057efdb707f257d4d0159abad
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a01116800208000000000d88e2d1710021814472a0000008200000000000000000180000000002e15b6933f66c49ff01e156160f6e5004d02ffd304f291054ffcbe2b7a3c6b253e63a5493ff94b11f761448c9658f2321e96f0fbf9eb4b3aa04a44b4ba6de8e5
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa23ac00000000000303c00049667f7f000000000059ff0d000900000000000000033617
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.210000 seconds.
DEBUG:msmart.device.AC.command:State response payload: c00049667f7f000000000059ff0d00090000000000000003
{'horizontal_swing_angle': <SwingAngle.OFF: 0>, 'vertical_swing_angle': <SwingAngle.OFF: 0>}
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa24ac88000000000002400249667f7f00300000000000000000000000000000000004f093
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a01116800200000000000510e2d1710021814472a000000820000000000000000000000000000b1a4aa2995bb2a30204de56ff5aa10e98b0164f204b60803fd1e0ea38206e81ca4bcfafcdd9224716b4fb5e4ff34119571b807283f76640c8a164efeb9bc306b
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370008e20668455f2980547585b28107a4b5b76779684ba96ea3e90738d4a748cf73f57372b9d838311d3e74f00229a7c00e61b94b6fd41e7347b4934fce615538b4526be76de7be1e3969f0307d84718f781ddae63ef8a3b8fb77c66a0577230044e568db9ab1ee26497910a3d8a8f6bc42a8df412d52e5695017c03dafdcd95ed3e7e39045bca59414b1a143bb07385acd68be9b3
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370008e20638cc7c17e00ff707f861dadfa6f53a2e6cf12777dd6213f87a52e1b765aa12b71e746b028816cc7ea5610a949e1afdfd75b4b7ce6ed7ed10485c00a20981d4006c085cd4cca6ca0e1edd4a289d9525583f90f1eea0c59a5d2b223e6ccbdb712f5eeed3bfdd924618f4a3d3b6bf6478b8d5f8279f595083ddd1e9146c4571deb598c3088c67947d69eafaf322c44584023
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a01116800208000000000b4ce2d1710021814472a000000820000000000000000018000000000a2017c4740753558e445e28646fd395c4d02ffd304f291054ffcbe2b7a3c6b25d1e9c31da01ab5e2973258d772a1fa1256364ac2ef9ac403a3fe159e4205f706
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa23ac00000000000302c00049667f7f000000000059ff0d00090000000000000004b598
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.150000 seconds.
DEBUG:msmart.device.AC.command:State response payload: c00049667f7f000000000059ff0d00090000000000000004
lpispek commented 7 months ago

Second device:

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: 837000402000000021d35676f9cf3d724bd1fbaace8641956ad1f05d84b5528baf625352959e56184cae2b1a8a0bbf4d8ac2746bf9574464c6f12cb02ef46925293df01918d08fec
DEBUG:msmart.lan:Received data from 192.168.254.15:6444: 837000402001814d5f375f5ee55b40b8c73f412f4cdf3a72c4344a915b073cfe47aee85d1d52581d4febaeea47d22775ed5cd5832ccc3df04b25eec8fc9db006369a4f74406b6af9
INFO:msmart.lan:Authentication successful. Expiration: 2024-02-17T11:46:56, Local key: 6c3d9a471c15902a593c5d9461df99b49a9542f2b93615f5248721fb4caa3e59
DEBUG:msmart.base_device:Sending command to 192.168.254.15:6444: aa0faca3000000000003b5010001e503
DEBUG:msmart.lan:Sending packet to 192.168.254.15:6444: 5a5a0111580020000000000056392e17100218145f54000000840000000000000000000000000000bea094f52680f1bc17ba476ddaafbc73915c618b02ed2747fad73f2ffa0db1d313d127d597f373a05364aa63c7de31d4
DEBUG:msmart.lan:Sending data to 192.168.254.15:6444: 8370007e20668220806461613f37aec82221e6321ce1ec2db532433e9bfad9a9e9c05f74d6020bfffc97719984139dfb054b74cc9296fabbf1a218a968a27894d7b54e30d4c6752feb78d024ccb411bd5b5d40bd85ab678902263c03e2ead50dd64279c6f2bbc8785f0c0b082340158b84deb3807f8bfad8252efef209543e0f7b5b8b8681eb
DEBUG:msmart.lan:Received data from 192.168.254.15:6444: 8370009e2063495fc3535deb6293a5e024f7eeadb8b3362786281c52135d5e3996d7173ae084abda65d567496457b78c2ca69eb0957c5d52658e9631ad39de09157ef4dc744f68380f0ac4703740220425a6a1c0776c0dbd2c91db13f622f91dcc5469749409f9fcf6c37b61fd0bf0d57d3a696c8a3c53b92ed6336d6da78b56e2957e4ecca83ad0f13abac2ef78579deebd872405558eb084d46e915a9e2498cf9234d3d96f
DEBUG:msmart.lan:Received packet from 192.168.254.15:6444: 5a5a01117800208000000000ddf92e17100218145f540000008400000000000000000180000000001530de0917f0977e5489810ca402e8a3c3d5eb236c52bd02910eae00249ae9df04cce07ec260ce3a50d3005c21213b21a07cfa0f4048a36c739491af3ed778e5888d7d7b8b4b4c7509fd777289eb35b0
DEBUG:msmart.lan:Received response from 192.168.254.15:6444: aa39ac00000000000303b50912020101180001001402010115020101160201001a020101100201011f020103250207203c203c203c0501001a25
DEBUG:msmart.base_device:Response from 192.168.254.15:6444 in 0.140000 seconds.
DEBUG:msmart.device.AC.command:Capabilities response payload: b50912020101180001001402010115020101160201001a020101100201011f020103250207203c203c203c050100
DEBUG:msmart.device.AC.command:Raw capabilities: {'eco_mode': True, 'eco_mode_2': False, 'silky_cool': False, '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.15:6444: aa10acbc000000000003b501010102c10a
DEBUG:msmart.lan:Sending packet to 192.168.254.15:6444: 5a5a01115800200000000000003a2e17100218145f540000008400000000000000000000000000002a5b880714683b6817ab227bc8707d8bed7b1e7de382b2184bd77f949225dffb750719c96c85f2c93230ae43b0cf0f69
DEBUG:msmart.lan:Sending data to 192.168.254.15:6444: 8370007e2066d0827c8e7506048df9a0b51cc5c179c3120929a3d03577041ad6de8f896fd966377e15223bb58f3b67ab91cca4b3948a4eaa29ec2851e16a70eae81c3478d18eff01df1f61a1af4b22c4f4ffe6252b2f60f1d6572cf48aecfea1da47431858d1943bddb6bfe5ffde4b2bc5f3f6027a279e6ef83e2fef23251682b9be71e09c66
DEBUG:msmart.lan:Received data from 192.168.254.15:6444: 8370009e206393c893939e46b2ca6ee21791dcfebb6b4c4d771e72fbf5c13b23f8db464f2afe89f26e5946081fb365e607b784db54a4c9485cbb9161edee286d5a478d9879426779d299bf9770f5d533bfcdde7b95be0e589c7f2d90e57efdf741d143e7bd9dcdc62b3cc002215acc98ff9875f46a882e39068aefdebec50039ef757bcacceb88b550c5648c92f7bbbce39336d77a249bfc65d9cdd323a14c46c01a8a16695f
DEBUG:msmart.lan:Received packet from 192.168.254.15:6444: 5a5a01117800208000000000833a2e17100218145f540000008400000000000000000180000000004d8b7df3df9f0d46124174ecae72b07d5eab2881baca7cf77395a43aa7e53eabe69fd130628cec43922db841ecdb135df57323bdcaed7aa5ee57ac18f1fae113a013b90ad05ad7eed044112848996d72
DEBUG:msmart.lan:Received response from 192.168.254.15:6444: aa33ac00000000000303b5091e0201011302010122020100190201003900010142000101090001010a000101300001010000cd4e
DEBUG:msmart.base_device:Response from 192.168.254.15:6444 in 0.140000 seconds.
DEBUG:msmart.device.AC.command:Capabilities response payload: b5091e0201011302010122020100190201003900010142000101090001010a000101300001010000
DEBUG:msmart.device.AC.command:Raw capabilities: {'anion': True, 'freeze_protection': True, 'fahrenheit': True, 'aux_electric_heat': False, 'self_clean': True, 'one_key_no_wind_on_me': True, 'swing_vertical_angle': True, 'swing_horizontal_angle': True, 'smart_eye': True}
DEBUG:msmart.device.AC.command:Merged raw capabilities: {'eco_mode': True, 'eco_mode_2': False, 'silky_cool': False, '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, 'one_key_no_wind_on_me': True, 'swing_vertical_angle': True, 'swing_horizontal_angle': True, 'smart_eye': True}
[<PropertyId.SWING_LR_ANGLE: 10>]
DEBUG:msmart.base_device:Sending command to 192.168.254.15:6444: aa21ac8d000000000003418100ff03ff00020000000000000000000000000303d503
DEBUG:msmart.lan:Sending packet to 192.168.254.15:6444: 5a5a011168002000000000000e3a2e17100218145f54000000840000000000000000000000000000b8436dd15e84d5a4fc6fbf77d2b12486553c1270500a690b50db22f43e80f968edc15bdb2fd6301a90619b7fc5de6facef203e933e0deddd5d6839f101132e8a
DEBUG:msmart.lan:Sending data to 192.168.254.15:6444: 8370008e2066d302c96b6be1895e539f3581dd1e985cedafd1346a2284e2fa2343b51ddc8520927b355b97f4173185fceca220677476ca4e5d89a1797d5e913f6c2f3dfb31f314f0e2af799a7a9f5a0a455a483cea6fea8a047938fc9a1b3ee3d64ffacc835a72bad6965183fb82b1b917777c090e3f14b8c562a0e75e9317e9dc2b43cc4a9b86dc99b259a87c032d90d6186c2c1778
DEBUG:msmart.lan:Received data from 192.168.254.15:6444: 8370008e206300250e415c7914454976a58475d02ef919a428abb330f9cdebe1852830c67ea82e05feaca4ba78964c65f936b5f5fbad964656adbd1da42128b02131a033e28ebfc80d9623f5f15f9728b9a388312d0a8178c5d538d9b27cc84aeb22f62ff0a77544137785da49c4a0c9ab436506a8271fd1bd80202d12fdf9ad9b5f544189bbc398cdaf1a1bf3ebd59b020a9cae850b
DEBUG:msmart.lan:Received packet from 192.168.254.15:6444: 5a5a01116800208000000000177a2e17100218145f5400000084000000000000000001800000000035db0056cfcbe7a74c0db2a0185abd684b1e53f56b9e70db1e9ff88fce6eea562adda551164e45876d50b5953ad01606cde4b6412beff0025640b0bc5668d071
DEBUG:msmart.lan:Received response from 192.168.254.15:6444: aa28ac00000000000303c00087667f7f00000000005bff0b00070000001e0000000000000000037c72
DEBUG:msmart.base_device:Response from 192.168.254.15:6444 in 0.150000 seconds.
DEBUG:msmart.device.AC.command:State response payload: c00087667f7f00000000005bff0b00070000001e000000000000000003
DEBUG:msmart.base_device:Sending command to 192.168.254.15:6444: aa10acbc000000000003b1010a000406bf
DEBUG:msmart.lan:Sending packet to 192.168.254.15:6444: 5a5a011158002000000000001d3a2e17100218145f540000008400000000000000000000000000008468f6dc035be6be93f9405888139374f5c483af5fc45d6d05995c5acd3dec8aeb8e0a2c64966ff0cfffbdcea043d132
DEBUG:msmart.lan:Sending data to 192.168.254.15:6444: 8370007e20660d89d0c0b4fda71bec0b6b1d79dc22f69cf33b95549cbc3bd24cf0fc0d9a209789bae3a9ed653e5aa6d737d87cbcaa251cf58e1fde741ddc70b2e40e8e0116b28342d724891f5e94ea8a95d0b5d0d7d09571a8534ed2f1b8ead52243684be7042c03f4e9b9fa531db5ecf243488fce12b8efe362daaa68cda41b9973cceb28b6
DEBUG:msmart.lan:Received data from 192.168.254.15:6444: 8370007e206385238184026a5a49c02cc967ddcfa3549c57bee8088a2f543d3ee40e75747ea4b452632f8259c95666d24c3036b4ea162f0ac6204d2e25de85bd3a291245b91772e91d3d7ae79c38bbcd107a5860a99fa17d4553b3529b8edca3f6ed1fde6a40bd903d5f2e6e1d73f4dc24f44aa579cd9beab3019cbb92c3f1a360b4e9e553f2
DEBUG:msmart.lan:Received packet from 192.168.254.15:6444: 5a5a01115800208000000000817a2e17100218145f5400000084000000000000000001800000000037ac6bcb06bf5523695e0d57b24da36a26b79adba0e4cf737252d93d3c82aa2ce9bd2007f4c02e0fea79eea2bffc98c4
DEBUG:msmart.lan:Received response from 192.168.254.15:6444: aa13ac00000000000303b1010a0000013200c884
DEBUG:msmart.base_device:Response from 192.168.254.15:6444 in 0.110000 seconds.
DEBUG:msmart.device.AC.command:Properties response payload: b1010a0000013200
--- Logging error ---
Traceback (most recent call last):
File "/root/midea-msmart/msmart/device/AC/device.py", line 29, in get_from_value
return cls(cast(int, value))
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/enum.py", line 717, in call
return cls.new(cls, value)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/enum.py", line 1133, in new
raise ve_exc
ValueError: None is not a valid AirConditioner.SwingAngle

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.11/logging/init.py", line 1110, in emit
msg = self.format(record)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/logging/init.py", line 953, in format
return fmt.format(record)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/logging/init.py", line 687, in format
record.message = record.getMessage()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/logging/init.py", line 377, in getMessage
msg = msg % self.args
~~~~^~~~~~~~~~~
TypeError: %d format: a real number is required, not NoneType
Call stack:
File "/root/midea-msmart/midea2.py", line 39, in
asyncio.run(main())
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
File "/usr/lib/python3.11/asyncio/base_events.py", line 640, in run_until_complete
self.run_forever()
File "/usr/lib/python3.11/asyncio/base_events.py", line 607, in run_forever
self._run_once()
File "/usr/lib/python3.11/asyncio/base_events.py", line 1922, in _run_once
handle._run()
File "/usr/lib/python3.11/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/root/midea-msmart/midea2.py", line 27, in main
await device.refresh()
File "/root/midea-msmart/msmart/device/AC/device.py", line 344, in refresh
self._process_state_response(response)
File "/root/midea-msmart/msmart/device/AC/device.py", line 244, in _process_state_response
self._update_state(response)
File "/root/midea-msmart/msmart/device/AC/device.py", line 179, in _update_state
self._vertical_swing_angle = AirConditioner.SwingAngle.get_from_value(
File "/root/midea-msmart/msmart/device/AC/device.py", line 31, in get_from_value
_LOGGER.debug("Unknown %s: %d", cls, value)
Message: 'Unknown %s: %d'
Arguments: (<enum 'SwingAngle'>, None)
{'horizontal_swing_angle': <SwingAngle.POS_3: 50>, 'vertical_swing_angle': <SwingAngle.OFF: 0>}
DEBUG:msmart.base_device:Sending command to 192.168.254.15:6444: aa24ac88000000000002400287667f7f00300000000000000000000000000000000005350f
DEBUG:msmart.lan:Sending packet to 192.168.254.15:6444: 5a5a01116800200000000000273a2e17100218145f5400000084000000000000000000000000000079fb3584c0fa8918e27bb68a0b1aac518b0164f204b60803fd1e0ea38206e81cc4a09a548121f9b04b7201f324769067c903f1c9aa0028a1963be9a3146308a5
DEBUG:msmart.lan:Sending data to 192.168.254.15:6444: 8370008e206698a9038e7ff3fc03570a9dbc03e7e5c42e3df96980689995425953d5876277be4d72554d91a1de9352972a988847a3b7d71e5cf547579e2026a8318ae84f818635cefdc5de3311b85ff665ba528181ea234d182f1dad7fa08bde10469b24ecc0512c4750e6b3034a19bcb77250dacea3f7dcbfbb868cec7d11279baf06220c6c4210ad5c7f154595e40695ed2ce4eb92
DEBUG:msmart.lan:Received data from 192.168.254.15:6444: 8370008e2063a4577b6c855b6231fbea5673509038edafe03807fed11faca37bcc2d17e4bad5408a6f8a62b418d1e6da211aac95f919050253281b26b992c1448c729a42c72cf365c57b4fa93b1b34935f1912052ad24dfbcb1c2de483144d93a5d88347002dae7037ec87ce7da99368c6e52ae5da438a411a7ae958eb09a1085143ee3162c855194514724265ec17255f76dea8af5b
DEBUG:msmart.lan:Received packet from 192.168.254.15:6444: 5a5a0111680020800000000018ba2e17100218145f5400000084000000000000000001800000000093b34917e642f5496b8b93ab576eb4a24b1e53f56b9e70db1e9ff88fce6eea5679ded9bcf430de35e3e4da045da805c0bf45a1eb46439de97fa6d911a903ebd3
DEBUG:msmart.lan:Received response from 192.168.254.15:6444: aa28ac00000000000302c00087667f7f00000000005bff0b00070000001e000000000000000005a14c
DEBUG:msmart.base_device:Response from 192.168.254.15:6444 in 0.150000 seconds.
DEBUG:msmart.device.AC.command:State response payload: c00087667f7f00000000005bff0b00070000001e000000000000000005
DEBUG:msmart.base_device:Sending command to 192.168.254.15:6444: aa16acba000000000002b0020a0001320900010006e3a0
DEBUG:msmart.lan:Sending packet to 192.168.254.15:6444: 5a5a01115800200000000000373a2e17100218145f54000000840000000000000000000000000000a64eaf7ff0248a6154da3881bfa13ad86c737b804f5c4bc395487b3f101bee257b0df2f77d90496cdae6f903e3388987
DEBUG:msmart.lan:Sending data to 192.168.254.15:6444: 8370007e20668a91407a119d7d6b71156bbcb14073813fddcb3b3933c8fb01ea0a4f79e5f00b7781108aa67a1c13fa3d1f148d7ea4fc23d256afb2e79b4c6704fac84498bdc16168f5f7f8fcee72fa97cb962d6ffbf5431a70fcd47e49b00ba51217ccecd5a660c729104fe4de4e2f29e3c4be4e75c1af77dd451484f6ff3f27629420b773d6
DEBUG:msmart.lan:Received data from 192.168.254.15:6444: 8370007e206319d41b7abc17f34ff01346356ec2506b6250d211c48a573ab4cb9983629d564f8a8d7a925199da1be445fe6d88ef2166fa0328761c8c2600f738aa91866883c1c2f58f7dc23346fa707a28b75781b19b9567ee7c5abe08dd3c415f154df96cc01071dc291a0807c6d3138b6cb6eda1abf0032b33668e9b9babdd7c42417960b0
DEBUG:msmart.lan:Received packet from 192.168.254.15:6444: 5a5a0111580020800000000091ba2e17100218145f54000000840000000000000000018000000000d6084a5e95d7ec962d408a6d6746c5de1bbbfc03273c646b8a75adb25b595baf420cd55e8aeafd021e4cff0a5c533a3c
DEBUG:msmart.lan:Received response from 192.168.254.15:6444: aa18ac00000000000302b0020a0000013209001101000089a4
DEBUG:msmart.base_device:Response from 192.168.254.15:6444 in 0.120000 seconds.
DEBUG:msmart.device.AC.device:Ignored unknown response from 192.168.254.15:6444: b0020a00000132090011010000
mill1000 commented 7 months ago

Thanks! I'll be away for a few days before I can review (and fix) this. I appreciate your help.

seppe912 commented 7 months ago

Ok here's another test. Pull/install the latest commit and try this example.

@seppe912 Even though your device doesn't appear to support the "new" protocol, could you still test this? I want to make sure it doesn't break for users with the normal protocol.

import asyncio
import logging

from msmart.device import AirConditioner as AC

logging.basicConfig(level=logging.DEBUG)

DEVICE_IP = "YOUR_DEVICE_IP"
DEVICE_PORT = 6444
DEVICE_ID = "YOUR_AC_ID"

# For V3 devices
DEVICE_TOKEN = None  # "YOUR_DEVICE_TOKEN"
DEVICE_KEY = None  # "YOUR_DEVICE_KEY"

async def main():
    device = AC(ip=DEVICE_IP, port=6444, device_id=int(DEVICE_ID))
    if DEVICE_TOKEN and DEVICE_KEY:
        await device.authenticate(DEVICE_TOKEN, DEVICE_KEY)

    await device.get_capabilities()

    print(device._supported_properties)

    await device.refresh()

    print({
        "horizontal_swing_angle": device._horizontal_swing_angle,
        "vertical_swing_angle": device._vertical_swing_angle
    })

    device._horizontal_swing_angle = AC.SwingAngle.POS_3

    await device.apply()

if __name__ == "__main__":
    asyncio.run(main())

for sure, here you go:

DEBUG:asyncio:Using selector: EpollSelector
INFO:msmart.lan:Creating new connection to 192.168.178.80:6444.
DEBUG:msmart.lan:Connected to 192.168.178.80:6444.
INFO:msmart.lan:Authenticating with 192.168.178.80:6444.
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 83700040200000002287dbe5056e76442be89b51e25b5f8f7e9ee360cd086eaa5880f86cc6ae381ea79def1139170b99153e98260136cb57e1ea8cec356a34af5c99acdd6ef03a19
DEBUG:msmart.lan:Received data from 192.168.178.80:6444: 83700040200100006e211816fd87aa8db60c242657f4a791590a904ed1d1e71153325cb3dcdf6c6f32e0b6f98704ce92060f2dbb3dea74bef330d7b79c8941a2e40ee340ea7cf9e0
INFO:msmart.lan:Authentication successful. Expiration: 2024-02-19T05:31:49, Local key: d28e7f33da5e87f806a7213f5dabaea8a2a7fa2cf1480d57de9ee1234d79367f
DEBUG:msmart.base_device:Sending command to 192.168.178.80:6444: aa0faca3000000000003b5010001e503
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a0111580020000000000049321f1112021814a991000000120000000000000000000000000000bea094f52680f1bc17ba476ddaafbc73915c618b02ed2747fad73f2ffa0db1d32ca592dddea1f0119fb53266f2657d5c
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370007e2066fa02c323194f6fee55ca8cf3ac7b478eb77bbcc6d010152a40de3f50c77f3b71c45ef9ba5c0b214f2ca3c037edea7413ef4840c58e16cc4b0f945a5c0d042708f75e7547f58ef1baac2d674098b691a4e0c851a020402f7eb263b6a64623effbb73a5dadddbc3bc2cb2a24f606eb6b66e74f70629f55a0ef6deb270ec17ced82
DEBUG:msmart.lan:Received data from 192.168.178.80:6444: 8370008e20631cbf1b84ccb0e2168054901a09977f9932215ffe3ddfb77316c910105ea175db6c23549686ea8c2f9df7110c3fdd391bcf55c3f93237355306404a1ff182cca82275b2469b533d2fe697e37df7e33f86788b95afda81b31ea0990daae60244d020574568d05eeeb7d4beb35d70132523be395554bf2790ac3bd5c6276acb555767152e4c041bd94c8b6f81e500dca6d9
DEBUG:msmart.lan:Received packet from 192.168.178.80:6444: 5a5a011168002080000000000000000000000000a9910000001200000000000000000000000000002ed30f7318deb2150985a069e6df704fc6c5350d624b48edff5254e941e2aad1eb8d98ade0f90bb5f67d9331fb42c16d4ec743ddf018cc1374b86dac93f21160
DEBUG:msmart.lan:Received response from 192.168.178.80:6444: aa29ac00000000000303b5071202010113020101140201011502010116020101170201001a020101dedb
DEBUG:msmart.base_device:Response from 192.168.178.80:6444 in 0.620000 seconds.
DEBUG:msmart.device.AC.command:Capabilities response payload: b5071202010113020101140201011502010116020101170201001a020101
DEBUG:msmart.device.AC.command:Raw capabilities: {'eco_mode': True, 'eco_mode_2': False, 'freeze_protection': 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, 'filter_notice': False, 'filter_clean': False, 'turbo_heat': True, 'turbo_cool': True}
[]
DEBUG:msmart.base_device:Sending command to 192.168.178.80:6444: aa21ac8d000000000003418100ff03ff000200000000000000000000000003028b4e
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a0111680020000000000024331f1112021814a991000000120000000000000000000000000000b8436dd15e84d5a4fc6fbf77d2b1248672946460bceafc6eae86e4200896522a734e1faa37ce959a047497632b36c8a8fa75eec5f4f25f111cc81b74dd1b2e5c
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370008e2066d37acf4c666a7827857fec717be81e443a148994cd8ec5a0d176ec9f891064128a1201dad6311071ff022a99181c77c47f46d1cdaca664cf9cd1b6b880e1c3004ca841949f78eb8029067d5b6d018562d9c1fea201a650b1b935860e29d173102e77f89fde88e91e0214ffe68510a1e80c73c7c7b0b2345dae3b10c5b36ad2ab11b45020d0d68b8bd85bcf32d0cd582d
DEBUG:msmart.lan:Received data from 192.168.178.80:6444: 8370008e20638af95ee166048f06b617a8547e70fc179f94368881029654c2c13d622e7bb9b3775cc6834016a91dde170e9b7c6c128fd443c95da97c2679ac00c83ce894e11b8749331b39910c8370ee95af2f9497eb71f59078c9ba572d55f5dc682b5f13a7a383182be0a588dda11acef2dec63e2809102bc6e044c4777fd5d2099ab8b43232ceb3e35b1fc31dad5f779972cdde11
DEBUG:msmart.lan:Received packet from 192.168.178.80:6444: 5a5a011168002080000000000000000000000000a991000000120000000000000000000000000000471db470696dce84776b878b70ec3eb8399161113d52357d9c29026edd344843d5ec0ce319b0e509b27feefa1f937fbfefb20a4fc63449f6d2ede8e4160f2be2
DEBUG:msmart.lan:Received response from 192.168.178.80:6444: aa22ac00000000000303c00042287f7f0030000000594a0000000000000000008bc4e2
DEBUG:msmart.base_device:Response from 192.168.178.80:6444 in 0.730000 seconds.
DEBUG:msmart.device.AC.command:State response payload: c00042287f7f0030000000594a0000000000000000008b
{'horizontal_swing_angle': <SwingAngle.OFF: 0>, 'vertical_swing_angle': <SwingAngle.OFF: 0>}
DEBUG:msmart.base_device:Sending command to 192.168.178.80:6444: aa24ac88000000000002400242287f7f003000000000000000000000000000000000031bae
DEBUG:msmart.lan:Sending packet to 192.168.178.80:6444: 5a5a0111680020000000000009341f1112021814a9910000001200000000000000000000000000001ff6fc240d969a70fba5cffd2e70372a8b0164f204b60803fd1e0ea38206e81c98aa3d7b70349ec62600c3b27abf2e7e5740d4b50b6839a6e261cb90e8c13ccd
DEBUG:msmart.lan:Sending data to 192.168.178.80:6444: 8370008e20666c502abc8009ee4bebaea197a9ae9ee2f71b32d2a0a21ab9ebd7de90873a33b76095f087dd8a939027ddfa4fc9d8ab5c2fc7f5ee84fd2b7db9d9a44c1093930c74f08f1363c8e4de9d51cbd034af533805823d160078048e99f83cd687f9b8dda79e260a63fb02ec005af6b01aef16bd9666da779f21955e52ee99d3b385aa8e890a6f7c35eb10fbc8a478d2b235e138
DEBUG:msmart.lan:Received data from 192.168.178.80:6444: 8370008e2063d01a1e49ff706ae6eff1af142cedf535b3a1cff9a1af60d3b5e13c9228b442e3f377b1ae2c4ecb3e6e0b6b43d5b4bb41e5ae0c0859ec5ad10516246fd3ce173a7663c27f6d83fa6ee99d949c8605a64407744067614ccba5fa0c540f0dff6531711e8a3da9851631928a58b1f400da537798dafd159806188989aea6e0ec153a21f01734d3c78c771fd8c176757fa6b8
DEBUG:msmart.lan:Received packet from 192.168.178.80:6444: 5a5a011168002080000000000000000000000000a99100000012000000000000000000000000000041087177bbdf571ca6e8bae427f5b440399161113d52357d9c29026edd3448431c150ecde48f30cdc58c58183e02429878b2bfce7a5d25c311e56eee5b16bbb9
DEBUG:msmart.lan:Received response from 192.168.178.80:6444: aa22ac00000000000302c00042287f7f0030000000594a0000000000000000000068ca
DEBUG:msmart.base_device:Response from 192.168.178.80:6444 in 0.760000 seconds.
DEBUG:msmart.device.AC.command:State response payload: c00042287f7f0030000000594a00000000000000000000
mill1000 commented 7 months ago

@lpispek Was the example above successful in setting the horizontal swing angle? It should have set it the middle position (I think)

@seppe912 Thanks again for your help. Everything looks OK on your end,

lpispek commented 7 months ago

Sorry, I'm not at home right now. I will check it next week when I get home.

On Wed, 21 Feb 2024 at 06:44, Tucker Kern @.***> wrote:

@lpispek https://github.com/lpispek Was the example above successful in setting the horizontal swing angle? It should have set it the middle position (I think)

@seppe912 https://github.com/seppe912 Thanks again for your help. Everything looks OK on your end,

— Reply to this email directly, view it on GitHub https://github.com/mill1000/midea-msmart/issues/97#issuecomment-1955937323, or unsubscribe https://github.com/notifications/unsubscribe-auth/APKM6CUQSVPOAXOK2MHLUDLYUWCUXAVCNFSM6AAAAABA2IJ5HSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJVHEZTOMZSGM . You are receiving this because you were mentioned.Message ID: @.***>

lpispek commented 7 months ago

Hi, I have tested it, and on one device it is working and sets the swing angle to the middle. On another device, it is not working.

This is a device that is not working:


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: 837000402001364150fcaf63180ae0bf3ecc4544ff489ed69f333a3de149478a2a002609a1d6104593e4d630f6bdca9fa6f530d5ac71d7651fb3e79742b86279cc1ab49795902e09
INFO:msmart.lan:Authentication successful. Expiration: 2024-03-04T20:49:44, Local key: 7a5c3fdd6cc10f18eef6daebafedd3fd19f490d8af2d8ce04fb51003e2d57969
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa0faca3000000000003b5010001e503
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a011158002000000000000d2d310804031814472a000000820000000000000000000000000000bea094f52680f1bc17ba476ddaafbc73915c618b02ed2747fad73f2ffa0db1d30e810dbc02570ab9836fae27cae96f84
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370007e20669b251807f0985afff7e83094b0081daf03f44c8f3726c9a4a98030bf6ef73ffb6d6f55982098e784b611335a4c9f9c70839d556c96e8d847704e51bb1a7dc24299aff92c2dc511cb2a12f2699eef5f3945d80bd62a49b2587b10c0279b6461fd2d5c7d88a029aff3741ac7c2cd66b07d02d323e2ee35572e1af12bc893bae4f7
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370009e2063c105c7ac228b45fc6c31db5fb508c43f69256dffdd5d9655ab102f918679e0ae93069a55c4b44948616e49a96df5ad826e97748a16cb0ce8ce8b84ff100beafca96f7ba70a36a18f6e2ac6eb6c62ecea1db0117e6361dfba9962d1a1d1037f94eea72dd5c5e45b1a7187c852b964a46cd1c7a5cdbb3c861d6c3f520ad166090d4e0ba643a9192840b7f630ef15c703fee4b14380ad253e2a51a29086ffe6a970
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a01117800208000000000ff2d310804031814472a0000008200000000000000000180000000004acf54e08f29f1c519db8dde2ba4816f440131abceaa46605f969c604d7a63ec04cce07ec260ce3a50d3005c21213b219c3ed6165ed186f7073ffc77ca16b14887ea688f075011a0f510992905254982
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: aa10acbc000000000003b501010102c10a
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a011158002000000000001c2d310804031814472a0000008200000000000000000000000000002a5b880714683b6817ab227bc8707d8bed7b1e7de382b2184bd77f949225dffb5b970336b90ea6cf42099ee56c0973e4
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370007e2066c84eac18239b1ee126cb73b8e4373d948203bf9e6b1e13980d199d6ff1529af939e14b4eea34d575a272f6e6cc1f42b32a04e97d2bd6b56231784e26d2bbd662ea6ec650199900dd8d56dda8f835db9fd1d0ebfd254288365fe982800ef07c097f0b2b9f3d7ebb965681d77692bb93afc7c48ca1b992475d076772a28d0799e9
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370008e206382df02c534103d39f8ea60d4281b8d545c3d4f2bfa00240ba9ac58e9f665d4e77f1a5e2ddca74f82b618316ff6ddf5ec6ffe3f54db948bb225403169030def3e5aedcd00d76730860461f6d5ca5af0c958594f2d89d34dbc934927951a0e7229b39022716f4b56985590e81df776a89a3d0c488f3ead63c3202a226986d1de0885e4b267f7d3c9cb63a1a3a9fd04f48c
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a011168002080000000007a6d310804031814472a000000820000000000000000018000000000fb1a2b24ec0a7d48a018dd75c07336805eab2881baca7cf77395a43aa7e53eab53e0cb551f7282c20afd76b68f007012b051e292411018fc677a88c39a680b62
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}
[]
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa21ac8d000000000003418100ff03ff00020000000000000000000000000303d503
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a01116800200000000000282d310804031814472a000000820000000000000000000000000000b8436dd15e84d5a4fc6fbf77d2b12486553c1270500a690b50db22f43e80f968edc15bdb2fd6301a90619b7fc5de6fac32e763617f8c4118ea4254ac4e6ece2c
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370008e2066bbfc620d701ed45d2e9e24f33ce20fd175f76a3d4a6b6cc420a7c1c7059b1664f7567be6a2461d91a5024194ecaf3760c7613c3d5027da5c62702a03a2909979c2a08d2b35c61cc9833721af28fdebf4dea7e76dc4a164438e3daf968606e35e7d581518af192f2bb5fdada0a1f85980a0d182bc693c81ee03dad5dc352b369445042a8e51cb2c7f2bbb26b1a2eb5cd7
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370008e2063ba1b4d70dfa2806aa0e09a328a94347bd00c361902d8d32d5f0267bd2c7c7b63e0ae3bac486a55d632bd6f1608f663515d37b62d0affab88961e5ea7a61d3a7a441e0a7bb554e63bf6bb8a0ccb264b4803b4f685f9ac7b0776be3e23bd15c00819ac6680ed57c892ca345b57b49feff635406903840d6f025fe02bba35a60816eaa4feb5c647366a7f84a33063e1671e
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a0111680020800000000006ad310804031814472a00000082000000000000000001800000000082ac41dda8c144588504f10344622ece4d02ffd304f291054ffcbe2b7a3c6b25016f81d1064b1ce40feff5cb0c9ba845fce64ba985b6edd2cdcb22c5759ed5ac
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa23ac00000000000303c00089667f7f000000000059ff0d00090000000000000003f518
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.140000 seconds.
DEBUG:msmart.device.AC.command:State response payload: c00089667f7f000000000059ff0d00090000000000000003
{'horizontal_swing_angle': <SwingAngle.OFF: 0>, 'vertical_swing_angle': <SwingAngle.OFF: 0>}
DEBUG:msmart.base_device:Sending command to 192.168.254.13:6444: aa24ac88000000000002400289667f7f00300000000000000000000000000000000004d86b
DEBUG:msmart.lan:Sending packet to 192.168.254.13:6444: 5a5a01116800200000000000362d310804031814472a0000008200000000000000000000000000000db309ba0f296a307bdaa52eff02b8848b0164f204b60803fd1e0ea38206e81c361339fddd2a1d87740d3e37e4c4ec67dae02d0bd0b68e50082542c983498da5
DEBUG:msmart.lan:Sending data to 192.168.254.13:6444: 8370008e2066f839f08f6003b7ca982ca597761408fbdac7e1eb38229c5f3b9bcec22368da09ded53531c90aace1a8b9354eb3c431654f4b8f991d9ade921ef516731b1a2821e0f109d7ef5341d24e5706df2390b292ce74ff6cfc4b33438d3ea3e35fd79256e76e356551ed5720a6d4bda73817d075901e8f41edd679b9900e269dd92f4dec26ac132cb41730fd4c83c8eb656987ee
DEBUG:msmart.lan:Received data from 192.168.254.13:6444: 8370008e206359c652e9ea41970ce29d5e2cfdc6d62010c71f7fed89ecbbae27fca25815f69d420088a72c9551ddb475bc0a3f995931b4eee8b4d8c3e4b8fbb73251c3e69937622300d378dcdf5ea484b32a7cd29bbeb296d2897de4ed0f6a26168bf9b96850e76fbacda4737ac8c4f42df6bf8aeee8c80b9992f397f22baa72c92b4782d86759e92417640a06c7f9c91ec1b5998234
DEBUG:msmart.lan:Received packet from 192.168.254.13:6444: 5a5a011168002080000000009cad310804031814472a0000008200000000000000000180000000003c067e8700dc287e284591ef21320e084d02ffd304f291054ffcbe2b7a3c6b25e00e79bfedacaba769c103aa81abfcdaf50d4de2ef2e39ea97a2a385245ca24c
DEBUG:msmart.lan:Received response from 192.168.254.13:6444: aa23ac00000000000302c00089667f7f000000000059ff0d000900000000000000047697
DEBUG:msmart.base_device:Response from 192.168.254.13:6444 in 0.150000 seconds.
DEBUG:msmart.device.AC.command:State response payload: c00089667f7f000000000059ff0d00090000000000000004```
mill1000 commented 7 months ago

Excellent. Thanks good to hear.

This is a device that is not working:

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}

This device does not appear to support the feature.

lpispek commented 7 months ago

Excellent. Thanks good to hear.

This is a device that is not working:

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}

This device does not appear to support the feature.

Ok, thank you. Yes this is Breezeless models. - https://www.midea.com/global/heating-cooling/breezeless

mill1000 commented 7 months ago

With the work done to support swing angle it should be pretty easy to add breezeless support too