gcobb321 / icloud3

iCloud3 v3 - iCloud3 is an advanced iDevice tracker that uses Apple iCloud account and HA Companion App data for presence detection and location based automations.
MIT License
498 stars 52 forks source link

iCloud3 not starting anymore #323

Open DPStaude opened 3 months ago

DPStaude commented 3 months ago

Hi, I tried so far what you said me in the other issue:

@DPStaude Delete the iCloud3 integration Delete the iCloud3 directory Restart HA Restart HA again. The 2nd restart will a cache. Rename the config/.storage/icloud3 directory to something else to save the iCloud3 config Reinstall iCloud3. Instead of using HACS, install the v3.0.1.1.zip in a post a few entries above this one. Readd the iCloud3 integration Hopefully it will load. If not, create an issue and we will look at some logs and try a few other things.

Setup failed for custom integration 'icloud3': Unable to import component: Exception importing custom_components.icloud3 13:02:15 – (FEHLER) setup.py Unexpected exception importing component custom_components.icloud3 13:02:15 – (FEHLER) loader.py

Same errors. Which logs would you like to see? Thanks in advance!

gcobb321 commented 3 months ago

Start with the _home-assistant.log_and _icloud3-0.log_which probably does not exist.

What version of HA are you using? Are you using some type of virtual environment? What would be different about your setup than others?

This is some type of HA issue where it does not like something in iCloud3 on your system. Also take screenshots of the icloud3 directory and its subdirectories to make sure iCloud3 components are all installed.

What it’s FEHLER?

DPStaude commented 3 months ago

Start with the _home-assistant.log_and _icloud3-0.log_which probably does not exist. Both files exist. Which lines do you need?

What version of HA are you using? Are you using some type of virtual environment? What would be different about your setup than others? Core: 2024.1.3, Frontend: 20240104.0, running in docker on a Synology Diskstation With the latest rc it worked properly fine until I updated to 3.0.1 over HACS.

This is some type of HA issue where it does not like something in iCloud3 on your system. Also take screenshots of the icloud3 directory and its subdirectories to make sure iCloud3 components are all installed.

What it’s FEHLER? This german word means error.

Unable to get in config, cause it is not loaded (Nicht geladen). Bildschirmfoto 2024-03-28 um 13 50 02 Bildschirmfoto 2024-03-28 um 13 51 14 Bildschirmfoto 2024-03-28 um 13 53 50

gcobb321 commented 3 months ago
  1. Regarding the Log files, I would like the complete files. Email them to geekstergary@gmail.com.
  2. Can you reinstall rc10.4 or the version you were running.
  3. There were some major changes in the way iCloud3 was updating the sensors that was requested by balloob that fixed a potential problem doing I/o in the HA Event Loop that would lock up HA. I will look at reverting to that to see if that fixes everything. There was also a major change to the icloud3-0.log file handling for the same reason. It now runs as asublog of the HA log file handler.
  4. I wonder if running in a docker Container it’s also getting in the way.
gcobb321 commented 3 months ago

There is a coding error in the home-assistant.log file that another user encountered that I fixed. What is really strange about this is the next few lines of code have the same statement and do not generate an error. And I am not having a problem on my system.

Unzip messaging.zip into the icloud3/helpers directory and restart HA. messaging.zip

DPStaude commented 3 months ago

THANK YOU!!!

Problem seems to be fixed, v3.0.1.1 is running again with the new messaging.py I will have an eye on it...

Great tool and perfect support!!!

gcobb321 commented 3 months ago

Excellent.