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
546 stars 54 forks source link

Setup failed for 'icloud3': Integration not found #355

Closed michaelthompson1991 closed 2 months ago

michaelthompson1991 commented 2 months ago

Hi, ive had iCloud3 for a while now and it’s throwing up the following errors https://imgur.com/a/8wgnm16 I also haven’t done anything because ive just came back from holiday today.

What could the problem be? Also how do I resolve this?

Also here’s another screenshot https://imgur.com/a/47uFdMo

Thanks!

JaviOFC commented 2 months ago

From HASS 2024.7.2 Update's release notes:

Block icloud3 custom integration from breaking the recorder (@frenck - #121658)

https://github.com/home-assistant/core/pull/121658

michaelthompson1991 commented 2 months ago

Thanks ill have a try in the morning 👍🏻

gcobb321 commented 2 months ago

See here for a temporary solution to this problem. Scroll to the bottom and follow the instructions to get iCloud3 going again. An update will be released soon.

michaelthompson1991 commented 2 months ago

Thanks but the link you provided just takes me back to this page of me asking

gcobb321 commented 2 months ago

Here is what it was suppose to point to.

iCloud3 inserts special code into the HA recorder that automatically excludes some text based iCloud3 sensors from the HA log database. HA release 3024.7 broke this and 2024.7.2 prevented iCloud3 from loading if it tried to do this injection.

I am in Switzerland and cannot release an update to iCloud3 to fix this error. However, I have updated the code in GitHub.

  1. Download the support/recorder_prefilter.py file in the iCloud3 GitHub repository here and save it to the icloud3/support directory. (Look for ‘Raw’ in the menu bar above the code on the right. The Download icon is the 2nd icon to the right)
  2. Edit the icloud3/manifest.json file. Change the version value from “3.0.5.2” to “3.0.5.3”.
  3. Restart HA.

The Event Log also adds a large item into the log and will generate a warning message in the Error Log. To stop the warning message and exclude this sensor from being added, add the following to the configuration.yaml file. It adds a manual exclude for sensor.

recorder:
  exclude:
    entities:
      - sensor.icloud3_event_log
michaelthompson1991 commented 2 months ago

Thanks!

gcobb321 commented 2 months ago

iCloud3 v3.0.5.5 (7/16/2024) has been released that fixes this problem. It should be available on HACS in a day or so. No other changes have been made.

michaelthompson1991 commented 2 months ago

No problem, that's great thanks! Thank you for the hard work!

michaelthompson1991 commented 2 months ago

I've downloaded the update but it still says not loaded in the devices and services part of HA, am I missing something? Also I still have a notification saying The following integrations and platforms could not be set up:

icloud3 (Show logs) Please check your config and logs. 4 minutes ago

gcobb321 commented 2 months ago

I assume you restarted HA. Try restarting again. Maybe that will clear the cache.

michaelthompson1991 commented 2 months ago

Yeah I restarted then rebooted HA and still nothing 🤔

michaelthompson1991 commented 2 months ago

Shall I try redownloading from HACS or will that cause more problems?

michaelthompson1991 commented 2 months ago

This is what it says when I open the logs https://imgur.com/a/OfAHgmg

gcobb321 commented 2 months ago

Don't use HACS. It probably has not done the scan yet and will pick up v3.0.5.2. The zip file with v3.0.5.5 is on the releases page here.

Here is another copy of it.

icloud3.zip

michaelthompson1991 commented 2 months ago

So shall I just wait then? I'm busy tonight anyway so I can get back onto it tomorrow if that's easier?

gcobb321 commented 2 months ago

HACS was the problem. It was downloading the v3.0.5.2 release, not the v3.0.5.5 release even though the zip file for the release was correct and the files were correct. I will create a new release and see what happens.

Here is the v3.0.5.5 zip file. icloud3.zip

michaelthompson1991 commented 2 months ago

No problem, thanks. What do I do with the zip file? Shall I just wait for the new release you post?

gcobb321 commented 2 months ago

It was my error. I did everything except update the _customcomponents/icloud3 code files on the GitHub repository so it was picking up v3.0.5.2 code instead.

All is good now. HACS updates the files with the v3.0.5.5 version after refreshing via the Update Information option.

michaelthompson1991 commented 2 months ago

No problem, I’ll give it a try when I get home 👍🏻Sent from my iPhoneOn 16 Jul 2024, at 17:22, Gary Cobb @.***> wrote: It was my error. I did everything except update the custom_components/icloud3 code files on the GitHub repository so it was picking up v3.0.5.2 code instead. All is good now. HACS updates the files with the v3.0.5.5 version after refreshing via the Update Information option.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

michaelthompson1991 commented 2 months ago

I have the download ready and waiting to do when I get home, will keep you updated 👍🏻

michaelthompson1991 commented 2 months ago

It's now working, thanks for the amazing support!

gcobb321 commented 2 months ago

Completed with iCloud3 v3.0.5.5/v3.0.5.6