-
Notifications
You must be signed in to change notification settings - Fork 38
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
Error when commissioning and communicating with the app (Failed to parse IP address) #15
Comments
Taking a closer look. For the issue in the Google Home App, can you confirm you have an eligible Home device connected to the same account (for now this is required to control devices via the Home app)? How is your Android device connected to your network? The IP indicated is an IPv6 link-local address. |
@mauimauer Yes, I flashed the light example from the esp-matter repo, and I created the integration at the Google home developer console specifying that the device type is a light. My Android device is connected to via WiFi. |
I am unable to directly reproduce the issue that you are seeing, however it is clear the IP as passed down is being rejected by the native matter library. Could you try a rebuild of the app, replacing the "%wlan0" at the end? just so we can confirm this is indeed caused by the interface suffix and not the fact that this is a link-local address. |
Done!
If it is useful, I have used this device with chip-tool and HomeAssistant Matter integration. |
About the reproducibility of the issue, I can give you my system spececifications:
I don't know which other system spececifications can I give you in order to help to reproduce the issue. |
Hi, I see the same issue on my test-setup since today (it still worked until yesterday from 22.09 on) with the exact same components, my chip device impl and my custom sample app build). So I can only assume something on the play-service side must have changed/updated?
Replacing the network interface suffix does work for pairing. Once pairing is completed I can also send control commands using the App, e.g. turning the device on/off . I noticed that commissioning the device onto the Google fabric always works (e.g. with the Google Home App). But using this sample app to also commission a custom fabric after the Google fabric has been commissioned now fails. |
Hmm thanks for the comment @lpfsue, did your ipAddress end up being a link local v6 address too (starting with fe80)? |
Sebastian's PR #17 has been merged to temporarily fix this issue. |
I think that I'm going to move this problem to another issue because it might be unrelated to this one. |
@Diegorro98 our temporary workaround just ensure the ipAddress can be parsed by the native matter library. However, especially if your controlling device (your smartphone) has more than one interface (wifi & cellular) with link local addressing it might still fail due to the library now being unable to select the correct interface. We're awaiting resolution of project-chip/connectedhomeip#22945 and will then move to update our sample app to support your case. |
@mauimauer I didn't know, should I keep this one open instead of opening a new one? |
I'm trying to perform the commissioning process through this sample app, but it stays at the "Connecting with Matter device" during some long time and ends with a message that says something like "We have problems communicating with GHSAFM" and in the sample app there wasn't any device.
Investigating, I found that the app crashes with the following stacktrace:
As I saw that it had a problem with parsing the IP address, I debugged the app to obtain the values at
com.google.homesampleapp.chip.ChipClient.awaitEstablishPaseConnection(ChipClient.kt:113)
:Full Logcat
Although this problem, the device seems to be at the Google Home App, but I cannot toggle the light of the device (It pops a Toast notification saying that there was an error).
The text was updated successfully, but these errors were encountered: