home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.79k stars 28.93k forks source link

iCloud Broke on new release #121094

Open thorrrr opened 3 days ago

thorrrr commented 3 days ago

The problem

Hi Just updated icloud broken will not auth. I have fully removed it fropm .storage removing folder restarted HA and tried adding back will not auth / sign in!

What version of Home Assistant Core has the issue?

core-2024.7.0

What was the last working version of Home Assistant Core?

2024.6.****

What type of installation are you running?

Home Assistant OS

Integration causing the issue

iCloud

Link to integration documentation on our website

No response

Diagnostics information

will not install now

Example YAML snippet

No response

Anything in the logs that might be useful for us?

## System Information

version | core-2024.7.0
-- | --
installation_type | Home Assistant OS
dev | false
hassio | true
docker | true
user | root
virtualenv | false
python_version | 3.12.4
os_name | Linux
os_version | 6.6.33-haos
arch | x86_64
timezone | Europe/London
config_dir | /config

<details><summary>Home Assistant Community Store</summary>

GitHub API | ok
-- | --
GitHub Content | ok
GitHub Web | ok
GitHub API Calls Remaining | 4980
Installed Version | 1.34.0
Stage | running
Available Repositories | 1389
Downloaded Repositories | 28
HACS Data | ok

</details>

<details><summary>Home Assistant Cloud</summary>

logged_in | true
-- | --
subscription_expiration | 21 May 2025 at 01:00
relayer_connected | true
relayer_region | eu-central-1
remote_enabled | true
remote_connected | true
alexa_enabled | true
google_enabled | false
remote_server | eu-central-1-19.ui.nabu.casa
certificate_status | ready
instance_id | a078acfa1a3c41188cc35881bb65005e
can_reach_cert_server | ok
can_reach_cloud_auth | ok
can_reach_cloud | ok

</details>

<details><summary>Home Assistant Supervisor</summary>

host_os | Home Assistant OS 12.4
-- | --
update_channel | stable
supervisor_version | supervisor-2024.06.2
agent_version | 1.6.0
docker_version | 26.1.4
disk_total | 38.7 GB
disk_used | 15.2 GB
healthy | true
supported | true
host_connectivity | true
supervisor_connectivity | true
ntp_synchronized | true
virtualization | kvm
board | ova
supervisor_api | ok
version_api | ok
installed_addons | Samba share (12.3.1), Advanced SSH & Web Terminal (18.0.0), Home Assistant Google Drive Backup (0.112.1), Studio Code Server (5.15.0), MariaDB (2.7.1), Mosquitto broker (6.4.1), Z-Wave JS UI (3.8.4), Whisper (2.1.2), Piper (1.5.0)

</details>

<details><summary>Dashboards</summary>

dashboards | 4
-- | --
resources | 19
views | 20
mode | storage

</details>

<details><summary>Recorder</summary>

oldest_recorder_run | 23 June 2024 at 19:13
-- | --
current_recorder_run | 3 July 2024 at 19:29
estimated_db_size | 1136.44 MiB
database_engine | mysql
database_version | 10.11.6

</details>

<details><summary>Sonoff</summary>

version | 3.7.3 (e240aaf)
-- | --
cloud_online | 1 / 1
local_online | 1 / 1

</details>

Additional information

No response

thorrrr commented 3 days ago

Logger: homeassistant.components.icloud.config_flow Source: components/icloud/config_flow.py:128 integration: Apple iCloud (documentation, issues) First occurred: 19:50:53 (2 occurrences) Last logged: 19:51:01

Error logging into iCloud service: ('Invalid authentication token.', PyiCloudAPIResponseException('Missing apple_id field'))

AND

Logger: pyicloud.base Source: /usr/local/lib/python3.12/site-packages/pyicloud/base.py:188 First occurred: 19:46:11 (8 occurrences) Last logged: 19:51:01

Authentication required for Account. (421) Authentication required for Account. (450) Missing apple_id field

home-assistant[bot] commented 3 days ago

Hey there @quentame, @nzapponi, mind taking a look at this issue as it has been labeled with an integration (icloud) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `icloud` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign icloud` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


icloud documentation icloud source (message by IssueLinks)

andrea-git commented 2 days ago

Same for me after installing new release

Registratore: homeassistant.config_entries Fonte: config_entries.py:586 Prima occorrenza: 11:03:36 (2 occorrenze) Ultima registrazione: 14:43:43

Error setting up entry andrea.ae@live.it for icloud Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/icloud/init.py", line 102, in async_setup_entry await hass.async_add_executor_job(account.setup) File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/icloud/account.py", line 138, in setup api_devices = self.api.devices ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyicloud/base.py", line 543, in devices return FindMyiPhoneServiceManager( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyicloud/services/findmyiphone.py", line 26, in init self.refresh_client() File "/usr/local/lib/python3.12/site-packages/pyicloud/services/findmyiphone.py", line 34, in refresh_client req = self.session.post( ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 637, in post return self.request("POST", url, data=data, json=json, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyicloud/base.py", line 131, in request return self.request(method, url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyicloud/base.py", line 133, in request self._raise_error(response.status_code, response.reason) File "/usr/local/lib/python3.12/site-packages/pyicloud/base.py", line 189, in _raise_error raise api_error pyicloud.exceptions.PyiCloudAPIResponseException: Authentication required for Account. (450)

After this, i've reloaded the integration and get this issue: image

andrea-git commented 1 day ago

Today the issue seems solved

thorrrr commented 1 day ago

Just tried on new release still broken same issue

thorrrr commented 1 day ago

solved

Mine has not been fixed

thorrrr commented 21 hours ago

When I try to add it now I get this error that never clears [image]()