iCloud Binding 3.4.0 - 2FA Issue Solved

Hi everyone, I wanted to share my experience with the iCloud binding in OHAB 3.4.0. After successfully setting up my first iCloud account, I encountered an issue when trying to add a second account. The system kept returning an ‘Invalid 2-FA Code’ error despite entering the correct code from my iPhone.

After some research and troubleshooting, I realized that the problem might be related to the binding’s compatibility with multiple accounts. I reached out to the community and found that others had similar issues. Through trial and error, I discovered that clearing the session data and重新登录 helped resolve the problem.

Here’s what I did:

  1. Removed the problematic iCloud account from the binding.
  2. Restarted the OpenHAB service.
  3. Re-added the account, ensuring the 2FA code was entered immediately after receiving it.

This approach worked, and now both accounts are functioning smoothly. It was a bit frustrating at first, but persistence and community support made all the difference! If anyone else is facing this issue, I hope this helps. Happy automating! :rocket: