-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Integration causes Home Assistant to lock up for 30-40 seconds when generating map (vacuum running) #673
Comments
Your 11 year old CPU cannot keep up with the rendering. |
I have had no issues at all with previous versions of this integration. No performance issues at all. |
Can you downgrade and try again? |
I have revised the changes between |
I am running 10 different vacuums at the same time on my HA on a Windows WSL virtual machine (which is notoriously much more slower than a normal linux virtual machine) without an issue like you have mentioned. |
It may be because of a map data corruption in a way that the integration does not expect. That kind of bug would be very hard to find and fix so if that was the case, restoring the map to a previous state should resolve your issue. |
How do I restore the map? Weird that this started happening, as I have done no changes to my server, not running anything else at the moment. Would it be possible to render an even lower quality map that is easier on the CPU? |
In this comment you are talking about a RPi 3 being able to render the map: Surely my old i5 is more powerful than that? |
Check the
I am not familiar with the HA Docker setup.
Normally |
I see no difference in map quality when enabling Low resolution map, is there any way to confirm this setting really takes action? |
Right click and select |
It is not just pure power when it comes to the old CPUs. For instance; my old AMD laptop cannot encode videos becuse it does not have a built in hardware decoder like a RPI3 but that does not mean it is slower than a RPI. |
I understand, is there any CPU I could upgrade to which uses the same socket but will perform better for this application? I don't want to upgrade the whole motherboard, ram, cpu etc. Checked the low resolution map, and I get a smaller image when it is activated. |
First you should confirm that this is actually an hardware issue that I sugested earlier that cannot be solved by software. Installing a fresh HA on a different virtual machine can be used to confirm that.
I really don't recommend an ARM cpu for this application so any RPI or even HA Yellow is off the list but any X64 CPU not much older than 5 years can be good so you can buy an old thinclient PC or a new mini PC with an Intel CPU (not much actually expensive than RPI4). |
Is there a good option for removing the map, but still get some information of the progress. Like how far it has gotten (percentage), or current location (room name)? |
If you are not using a card to select rooms for room cleaning then you really dont need a map image. You will still get the |
You can calculate this on your HA using |
I have 800mb mem free , when i start the integration it fills it and the system hangs. I see you saying enable Low resolution map. |
|
App on your phone actually uses more than that. |
Thanks for your reply. I installed your latest beta and chose low resolution map. But guess what! I think for some people It may be as simple as to reset your map in the xiaomi/dreame app. |
@somenewaccountthen |
@somenewaccountthen I have suggested this before
|
Not really i have no log, i don't think it's relevant either. I rolled back to an older map in the Xiaomi app and that works fine. |
Anyway.. crisis averted. On his pi 2G he now has 30% mem free again. If you tell me where the log is i can send it. |
You are right, image looks correctly rendered, there is nothing wrong with it or some kind of corruption. |
Describe the bug
When using v2.0.0b16 on Home Assistant 2024.8.1 the integration causes Home Assistant to lock up and become unresponsive for a while (30-40 seconds) before coming back again. This seems consistent to when the map updates, it does only happen when the vacuum is moving and the map is updating, not when it is docked.
Disabling the integration gives me no issues with slowdowns on Home Assistant.
I have tried redownloading and installing the integration again. Restarted Home Assistant through UI and the Docker container.
I have tried with the low resolution map without any change.
Running Home Assistant in docker on a dedicated NAS with i5-4670K and 24GB RAM.
To Reproduce
Activate Dreame integration v2.0.0b16 and start cleaning with vacuum. When the map is being created Home Assistant slows down and locks up for about 30-40 seconds before being responsive again until the next time the map updates.
Expected behavior
The integration to not cause Home Assistant to lock up.
Debug log
home-assistant_dreame_vacuum_2024-08-16T09-44-19.366Z.log
Additional Information (please complete the following information)
The text was updated successfully, but these errors were encountered: