-
-
Notifications
You must be signed in to change notification settings - Fork 25
AC changes mac address?? #306
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
Comments
Hi there.
That's interesting. Can you run the discover command with the
This could be caused by a few things. One thing to try is the Can't say anything about the MAC addresses. That's an odd one for sure. |
Thanks for taking a look. Sure:
I tried tuning the |
This is the bigger problem. Try setting a different cloud region or using another username & password. |
Not sure is it is the same problem, but my "Midea" airconditioners stop woking a couple of days ago: they became not available (it happened a week ago too, and I thought it was because the IP addresses changed: I deleted them from HA integration, rediscoverd and they worked again) and, after deleted them, I cannot add anymore: Midea Smart AC HACS integration found them, but I receive the message "unable to connect".
It finds 2 units, but they are 3 (yes, the third one is connected and available on the local network) This is the output with --debug option:
|
Obviously you're the expert, but I did not think that was the issue, as I have been able to connect to the device and control it locally without ever supplying a username and password. What I did as a solution was butcher your code and hardcoded 2 IP addresses in (https://github.com/mill1000/midea-msmart/blob/main/msmart/base_device.py)[msmart/base_device]. I then initialised 2 Lan objects and made As a coder I think it's ugly and I apologise that you had to read this, haha. It doesn't seem like a common problem, but if you like, I could try and make the code acceptable and make a pull request? The idea would then be that a user could enter multiple comma-separated IP addresses when adding the device to HA. For the record, I 100% believe it is an issue with my particular / a select few of USB dongles and not with this library. So thank you for maintaining it. @fcordella I honestly have no clue. I just know python, but very little about Home Assistant and A/C's |
@fcordella Your issue appears to be related to mill1000/midea-msmart#193 The Midea cloud has started rejecting the requests being made to it by this integration. However, this only effects the discovery process for V3 devices. @Rjdrenth Well I'm glad you found a solution for yourself and I appreciate the offer. I'm not sure I'd want to merge that change. It's fixing a very specific problem I'm not sure others experience. Have you tried assigning a hostname to the device? I think the library can use a hostname in place of an IP address without issue. |
Thanks for the suggestion of assigning a hostname. That was my initial preferred solution as well, but I did not manage to set that up properly :( If you happen to know how that can be achieved I would love to know it; googling or asking chatgpt did not yield any usable results, but perhaps I was simply using the wrong terminology. |
Gotcha. It really depends on the capabilities of your router and/or if you have another DNS system setup (e.g. Pi-Hole or AdGuard Home). Or if you're on a Linux system, maybe try adding an entry to |
Thanks, I'll look into those :) |
Uh oh!
There was an error while loading. Please reload this page.
Hi, I've got a Midea AC unit and I've used this integration with mixed results. However, that is not due to this integration, but rather my AC unit I believe.
So why am I posting here? Because I hope that someone can help me with a solution..
This is my situation:
msmart-ng discover
always discovers my device and gives the following output:{'ip': '192.168.1.138', 'port': 6444, 'id': 208......, 'online': False, 'supported': False, 'type': <DeviceType.AIR_CONDITIONER: 172>, 'name': 'net_ac_F714', 'sn': '000000P0000000Q1502DBB58F7140000', 'key': None, 'token': None}
It says
'supported': False
. I am not sure why it says that, because the integration works fine when it finds my device.msmart-ng discover
and checking the contents ofhome-assistant-config/.storage/core.config_entries
. Sometimes this was a different IP address than whatmsmart-ng
reported. Changing the IP and restarting HA would make the device work again.Anyhow.. Has anyone encountered this issue before?
Or does anyone have any advice?
Unfortunately I cannot map 2 MAC addresses to the same IP..
Finally, apologies if this is not the place for my troubles. I can always close the issue, but any help or thoughts would be appreciated regardless.
The text was updated successfully, but these errors were encountered: