core: iCloud integeration no longer works
The problem
Authentication using a app-specific password is giving an authentication error on the screen. The logs point to:
2024-07-29 19:29:32.839 ERROR (SyncWorker_1) [pyicloud.base] Missing apple_id field
2024-07-29 19:29:32.840 ERROR (MainThread) [homeassistant.components.icloud.config_flow] Error logging into iCloud service: ('Invalid authentication token.', PyiCloudAPIResponseException('Missing apple_id field'))
What version of Home Assistant Core has the issue?
2024.7.3
What was the last working version of Home Assistant Core?
2024.7.1
What type of installation are you running?
Home Assistant OS
Integration causing the issue
apple - icloud
Link to integration documentation on our website
https://www.home-assistant.io/integrations/icloud/
Diagnostics information
Does not get added in as an integration after the authentication failure
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2024-07-29 19:29:32.839 ERROR (SyncWorker_1) [pyicloud.base] Missing apple_id field
2024-07-29 19:29:32.840 ERROR (MainThread) [homeassistant.components.icloud.config_flow] Error logging into iCloud service: ('Invalid authentication token.', PyiCloudAPIResponseException('Missing apple_id field'))
Additional information
Generated two new app-specific passwords. Removed config/.storage/icloud directory and restarted home assistant before each attempt. Also tried with my normal apple account password, all failed.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 6
- Comments: 23
this is a workaround, not a long-term solution, app-specific passwords are used for a reason. Security
yessir - icloud3 working well.
unfortunately it works with User/Password and not the application specific password.
On Thu, Aug 29, 2024 at 3:32 PM Stephen Boyle @.***> wrote:
– Axel Eble * Schützenallee 70 * 79102 Freiburg * Germany * cell: +49.160.666-5028
Guess it depends how the code is written. If the password is kept secret (also for code owner), then there is no harm with using the actual Apple ID password?