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

How to call capability #89

Open
DragonRollGH opened this issue Jul 17, 2022 · 3 comments
Open

How to call capability #89

DragonRollGH opened this issue Jul 17, 2022 · 3 comments

Comments

@DragonRollGH
Copy link

DragonRollGH commented Jul 17, 2022

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants