gcobb321 / icloud3_v3

iCloud3 v3, Development Version - This Repo/Version is used for development and testing of new and updated features. It is not the official release of iCloud3 v3, .
MIT License
146 stars 12 forks source link

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

Closed asinwang closed 1 month ago

asinwang commented 1 month ago

HA: Core 2024.7.2 Frontend 20240710.0 hacs :1.34.0 icloud3 v3: 3.0.5.2

I didn't make any changes or settings, and suddenly I got an error.

2024-07-11 09:12:02.941 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-07-11 09:12:02.943 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ipv64 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-07-11 09:12:02.943 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration icloud3 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-07-11 09:12:02.945 ERROR (SyncWorker_0) [homeassistant.loader] Version 3.0.5.2 of custom integration 'icloud3' prevents recorder from working and was blocked from loading, please create a bug report at https://github.com/gcobb321/icloud3_v3/issues 2024-07-11 09:12:03.633 WARNING (MainThread) [homeassistant.helpers.translation] Failed to load integration for translation: Integration 'icloud3' not found. 2024-07-11 09:12:13.672 ERROR (MainThread) [homeassistant.setup] Setup failed for 'icloud3': Integration not found. 2024-07-11 09:12:15.461 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/frontend", "/config/custom_components/hacs/hacs_frontend_experimental", False)]); This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 49: hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues 2024-07-11 09:12:15.463 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/iconset.js", "/config/custom_components/hacs/iconset.js", True)]); This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 57: hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues 2024-07-11 09:12:15.465 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues 2024-07-11 09:12:17.219 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 642: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues

gcobb321 commented 1 month ago

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
asinwang commented 1 month ago

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

Thanks, it works great again

PEHowland commented 1 month ago

Thanks - fixed for me too.

Mellok1111 commented 1 month ago

Thanks - fixed for me.

FrancoLoco commented 1 month ago

Thanks - fixed for me.

ikekreham commented 1 month ago

Thanks, fixed for me too.

scrome1337 commented 1 month ago

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

legend, danke!

dslucki commented 1 month ago

Came here to say that this fix worked like a charm. Thank you!

nivek1612 commented 1 month ago

Yes this fixed worked a charm thanks

gcobb321 commented 1 month 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.

gcobb321 commented 1 month ago

v3.0.5.5 is available as a zip file on the Releases page right now. That will get picked up by HACS when it refreshes it's repository list. You can also download the zip file, unzip it into the icloud3 directory and restart HA to update iCloud3.