New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iCloud configuration does not work - 2FA #13312
Comments
Same error on hass.io 0.68.0 on RasPi 3B |
Just now successfully added my icloud account to hass.io 0.68.0 on raspberry pi 3b with 2FA you need to add code to your configuration.yaml, as described here - https://www.home-assistant.io/components/device_tracker.icloud/
if you already have device_tracker object it's not need to add once again after homeassistant restart you receive a message that somebody try to log into your account on your validated apple device and you will see a new object on dashboard, called icloud with "configure" button. There was a list from my cellular phone numbers (in my case only one with code 0) and area to input device code. After entering 0 and accepting i receive a SMS message to my phone, which you need to enter into icloud object on dashboard. Relatively easy and works as should. Try and good luck :) |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
This still doesn't work with 2FA. Any chance it'll be updated to add this support? A lot of iCloud functions won't work without it so it's almost mandatory to have turned on now. |
It looks like with the current version (0.82.0) I was able to successfully use SMS based 2FA but only with my primary iCloud password (the same one I use when setting up a new phone etc.) but does not appear to work at all when using app-specific passwords as demonstrated here: I'm glad that things are working but am still a bit uncomfortable with having my iCloud password stored in plain text regardless of other safety measures such as 2FA. |
This fixed mine. The wording on the popup notification is confusing. I thought it wanted me to enter the 2FA code that popped up on my screen, not 0 for the number and then the text code. If no one pull requests the icloud code, I'll do it and change the wording to make it more clear. Thanks for posting this! |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
Is this still an issue you are experiencing? Can you please try upgrading to the latest version of Home Assistant (0.90) and report back if this is still a problem? Thanks! |
Hi. Actually i never had problems with iCloud device tracker until 0.90. Since i upgraded to 0.90, HA is asking to provide 2FA for most of my devices every HA restart. After providing the correct 2FA the warning goes away, but it comes back on next restart |
I get the same issue as Dinth. I think there is some confusion here with 2 step auth and 2 factor auth. 2 step auth will send an SMS. 2 factor auth (the issue here) involves an apple auth request to an apple device and not an SMS. The docs mention that the pyicloud library doesn't support 2FA yet. There's an issue logged for that on the pyicloud github repo that's been open since 2016. There doesn't look like there's lots of activity over there though these days. |
Hi @giwleb, actually i have managed to resolve the issue yesterday. |
I must either be doing it wrong or it's different for me. I restarted HA, and got the pop-up on my iphone saying that a sign in was requested. I clicked 'Don't allow' and then '0' on the first configurator notification on HA (SMS to xxxx). Then, as it usually does, it shows another configurator notification asking for the code. No SMS is ever received since I don't use 2SV (2 step verification). 2FA never involves a SMS message or iMessage message. |
bump |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (
hass --version
):0.65.3
Python release (
python3 --version
):Python 3.6 bundled in official docker container
Component/platform:
icloud
Description of problem:
Confirming of 2FA authentication code does not work
Expected:
It should work ;)
Problem-relevant
configuration.yaml
entries and steps to reproduce:Traceback (if applicable):
The text was updated successfully, but these errors were encountered: