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

Some devices incapable of capabilities requests/responses #198

Open
mill1000 opened this issue Jul 26, 2024 · 11 comments
Open

Some devices incapable of capabilities requests/responses #198

mill1000 opened this issue Jul 26, 2024 · 11 comments
Labels
bug Something isn't working device issue Issue is due to device limitation

Comments

@mill1000
Copy link
Owner

mill1000 commented Jul 26, 2024

There's been a recent uptick in user reporting connection issues. Some are related to Maximum Connection Lifetime, but other are actually due to the device not responding to capability requests and/or other commands.

#188
#187 (comment)
#137 (comment)

There must be a family of devices out there with a very limited feature set that don't support capabilities, humidity, power, and properties.

To reduce log and issue noise, we should consider adding an option to enable/disable capability requests and/or determine a method to check capability support without generating excessive log noise.

@mill1000 mill1000 added bug Something isn't working device issue Issue is due to device limitation labels Jul 26, 2024
@mill1000 mill1000 changed the title Some devices incapable of capabiltieis requests/responses Some devices incapable of capabilities requests/responses Jul 26, 2024
@mill1000
Copy link
Owner Author

Saw this again in #201 (comment)

Did I break something? Did Midea update the device firmware?

@sdelmas
Copy link

sdelmas commented Jul 29, 2024

Aha... this seems to be the one to watch/help with :-).

Ok, the firmware version on the device that's failing is v.082122, which is the same as the devices that are working fine. As far as I know no firmware update has happened lately (certainly none triggered by me). The NetHome Plus App has no issues with any of the devices. Neither does the "Midea AC Lan" integration have issues with the connection (I have that running in parallel just for testing). All settings are the same between the devices (device side as well as in the integration, I am using 60 seconds timeout, but also tried 90 just in case).

Initially two of the devices had issues, but one seems to have gone to working, I haven't seen any issues for that device, while the other one is permanently malfunctioning.

My access point to wifi is abou 20-30 feet way and the signal is quite strong. Nothing has changed on the network side either. I haven't been using "Midea AC Smart" long enough to know whether this would ever have worked for my failing device though (I installed the integration last week, and it has always had the issue).

Please let me know if there is anything I can do to help with this. Happy to help...

@mill1000
Copy link
Owner Author

Thanks for the information about the firmware version.

Neither does the "Midea AC Lan" integration have issues with the connection (I have that running in parallel just for testing).

I would recommend against this. My experience has shown the devices do not behave well when multiple integrations are trying to query them simultaneously.

You probably aren't seeing connection errors with georgezhao2010/midea_ac_lan because that integration logs all it's network errors at the DEBUG level. That's fine, I just prefer that errors are treated as actual errors instead of silently ignoring them.

@sdelmas
Copy link

sdelmas commented Jul 31, 2024

I only re-installed it due to the connection issues described here so I can still control the failing device. It will be removed once this is sorted out 😀.

@mill1000
Copy link
Owner Author

It will be removed once this is sorted out 😀.

Sorry I will not provide debug support while midea_ac_lan is concurrently installed & enabled. I know that too many connections to the device can cause issues. While it may not be responsible for your particular issue I don't want it there to confound the problem.

You have yet to provide debug logs which also limits my ability to help.

@sdelmas
Copy link

sdelmas commented Aug 1, 2024

Ok, no problem, I certainly want to make it easy for you to help :-). I removed the midea_ac_lan integration. Here is a full debug log, please let me know if there is anything else I can do.

home-assistant_2024-08-01T17-01-56.520Z.log

@mill1000
Copy link
Owner Author

mill1000 commented Aug 2, 2024

Thank you.

Ok, here's what I can tell from your logs so far. There are 3 devices.

  • 192.168.10.27
  • 192.168.10.82
  • 192.168.10.181

Of these, 192.168.10.181 is the most "normal". It responds to capability requests and didn't have any connection problems.

192.168.10.27 & 192.168.10.82 don't respond to capability requests, but this is a relatively harmless failure.

192.168.10.82 appears to be working just fine, except for the failed capabilities request.

192.168.10.27 fails to respond to energy usage requests. This causes the connection to be killed and causes the AC to go unavailable. You should disable the energy and power entities for this device in HA.

@curtovic
Copy link

curtovic commented Aug 2, 2024

Hello. Since I updated to version (2024.7.11), I have problems with the module. It constantly disconnects and reconnects. It is impossible to use the module normally. Can you help me?
home-assistant_midea_ac_2024-08-02T08-15-26.136Z.log

@mill1000
Copy link
Owner Author

mill1000 commented Aug 2, 2024

@curtovic Please create another issue for your problem. Your logs weren't run long enough with debug logging enabled to see the issue occur.

@sdelmas
Copy link

sdelmas commented Aug 3, 2024

Confirmed... those power entities when what caused the device to shut down. Disabled them, and things are working fine. Thank you for digging into this and solving my problem.

@mill1000
Copy link
Owner Author

mill1000 commented Aug 5, 2024

Glad we were able to resolve this for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working device issue Issue is due to device limitation
Projects
None yet
Development

No branches or pull requests

3 participants