Tasshack / dreame-vacuum

Home Assistant integration for Dreame robot vacuums with map support
https://community.home-assistant.io/t/custom-component-dreame-vacuum
MIT License
865 stars 106 forks source link

After Adding integration HASS restarts and integration is not in integrations list #38

Closed RolandE1204 closed 1 year ago

RolandE1204 commented 1 year ago

After installing, adding and configuring the integration, HASS restarts automatically. The integration is visible in the integrations list before HASS starts new. After the restart, the integration is not shown anymore. 2022-11-23_08h38_03

First time I tried to install this integration, HASS got stuck in a bootloop. I deinstalled the integration and the bootloop was gone. After a fresh install of the integration, the a.m. happens.

Tasshack commented 1 year ago

I think one or more of the dependencies cannot be installed your system during the starting process of the HA. I need the full log of the HA while it is starting for understanding the reason of this issue.

peleccom commented 1 year ago

Hi, I've faced the same issue I trying to install it few times but it was failed because of HA restarts. But I was able to install it and got in bootloop. And I was unable to get any information from log. It looked like it was out of memory issue, sometime my docker container was restarted. Sometimes it restarts my raspberry pi (I have watchdog installed). After removing some other app from autostart It works. It looks like the component consumes much memory for some reasons.

Here the screeshots from htop. The only difference is installed integration

disabled enabled

Tasshack commented 1 year ago

I still think that the memory consumption caused by the pip dependency installation and not the integration itself because it does not consume too much memory after the HA starts.

You can try to install dependencies manually to your HA python virtual environment.

pip install pillow
pip install numpy
pip install pybase64
pip install requests
pip install pycryptodome
pip install python-miio

Also you may need to update your HA log level for more relevant information.

logger:
  default: info
  logs:
    custom_components.dreame_vacuum: info

tail -f /home/homeassistant/.homeassistant/home-assistant.log

Tasshack commented 1 year ago

I am closing this issue since no one is willing to provide more info for solving it.

RolandE1204 commented 1 year ago

Found the solution all by myself. Integration used to much memory which caused my RPI3 to collapse. Switched to a VM on NUC with 6 GB Ram and now it works.