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

Cannot retrieve key and token #48

Closed
mribeiro opened this issue Aug 8, 2022 · 3 comments
Closed

Cannot retrieve key and token #48

mribeiro opened this issue Aug 8, 2022 · 3 comments

Comments

@mribeiro
Copy link

mribeiro commented Aug 8, 2022

I just got a couple ACs from Midea and I'm having a hard time putting them up in home assistant.
I ran midea-discover and got the following info:

INFO:msmart.cli:*** Found a device: {'name': 'net_ac_6F**', 'ssid': 'net_ac_6F**', 'ip': '192.168.21.241', 'port': 6444, 'id': 145***112, 'version': 3, 'token': None, 'key': None, 'type': 'ac', 'sn': '000P****000', 'model': '00Q1B', 'support': True, 'run_test': True}

As you can see, Key and Token are None. Also trying to integrate automatically from Home Assistant UI it stays forever loading.

How can I get the Key and Token? Or what other piece of info can I add so someone can help me?

Thanks!

@georgezhao2010
Copy link
Owner

I just got a couple ACs from Midea and I'm having a hard time putting them up in home assistant. I ran midea-discover and got the following info:

INFO:msmart.cli:*** Found a device: {'name': 'net_ac_6F**', 'ssid': 'net_ac_6F**', 'ip': '192.168.21.241', 'port': 6444, 'id': 145***112, 'version': 3, 'token': None, 'key': None, 'type': 'ac', 'sn': '000P****000', 'model': '00Q1B', 'support': True, 'run_test': True}

As you can see, Key and Token are None. Also trying to integrate automatically from Home Assistant UI it stays forever loading.

How can I get the Key and Token? Or what other piece of info can I add so someone can help me?

Thanks!

I've found a small part of devices cannot get the correct TOKEN and KEY, unfortunately, your device is one of them.

I've tried to find a solution but have no clue yet, but I'll keep following up on this.

@georgezhao2010 georgezhao2010 added the bug Something isn't working label Aug 8, 2022
@mribeiro
Copy link
Author

mribeiro commented Aug 8, 2022

Hey @georgezhao2010
So... this is embarrassing. What actually happened is that I was not putting in my credentials.

Sorry about that.
Closing this off

@mribeiro mribeiro closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2022
@georgezhao2010 georgezhao2010 removed the bug Something isn't working label Aug 8, 2022
@jmdv-es
Copy link

jmdv-es commented Feb 4, 2023

Hi, I'm new to this, I want to find token and key for my device. How should I do this?

This issue mentions the midea-discover, where should i run this?

Much thanks.

Necroneco pushed a commit to Necroneco/midea_ac_lan that referenced this issue Jun 1, 2024
* chore: typing fan

* chore: isort
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

3 participants