mac-zhou / midea-msmart

This is a library to allow communicating to a Midea AC via the Local area network.
MIT License
147 stars 39 forks source link

How to call capability #89

Open DragonRollGH opened 2 years ago

DragonRollGH commented 2 years ago

I have seen many useful capabilities in v0.2.5, but only get_capabilities() are provided. Can I call/use/set the capability?

For example I want to use "OneKeyNoWindOnMe" mode in class CapabilityId. Is it update_capabilities()? How to use?

Thank you.

BTW, It response null when I call get_capabilities()

DEBUG:msmart.base_command:Frame data: aa0faca3000000000003b5011101cd0a Sending... WARNING:msmart.device.base:Got Null from 192.168.1.104:6444 Version: 3 Count: 0 Spend time: 5.02

@mill1000

mill1000 commented 2 years ago

That's not how capabilities work. You can't "set" new capabilities. What is/isn't supported is determined by the air conditioning unit (i.e. what the unit is capable of).

If you have a unit that is capable of OneKeyNoWindOnMe, then the next step would be to implement the code necessary to control that feature.

DragonRollGH commented 2 years ago

ok, thanks. I have not figured out how to decode the frame data yet. May you give me a help? I have a Wireshark packet for this capability.

mill1000 commented 2 years ago

Can you attached the PCAP file and list the packets of interest?