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
71.14k stars 29.81k forks source link

Thread credentials can't be downloaded to iPhone #123300

Open puellaexmachina opened 1 month ago

puellaexmachina commented 1 month ago

The problem

I've been trying to sync the credentials from Home Assistant's app to iCloud Keychain, but it doesn't work. It actually did work once, but then deleted the credentials somehow after syncing one single light bulb. Now, it continues to throw the exact same error when I try to resync.

What version of Home Assistant Core has the issue?

core-2024.7.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Thread

Link to integration documentation on our website

https://www.home-assistant.io/integrations/thread/

Diagnostics information

"2024-08-07 12:45:07.572 [Error] [main] [ThreadCredentialsSharingToKeychainViewModel.swift:40] handleError(_:) > Failed to store thread credential in keychain: Error : Device is not connected to the network" (From companion app logs)

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (thread) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `thread` 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 thread` 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)


thread documentation thread source (message by IssueLinks)

erumaithi commented 1 month ago

I can confirm this issue with me , while trying to add a new thread device

puellaexmachina commented 4 weeks ago

It comes and goes. I tried resetting the thread border router, and it worked. Then, it didn't work again. It's odd.

Also, there should probably be some notification in the app that instructs the user that they must be on the same Wi-Fi network in order to hand off the credentials. It appears to use mDNS or some other form of communication that doesn't work through a VPN like ZeroTier or Tailscale.