outadoc / home-slide-android

Access your Home Assistant devices quickly from anywhere on your Android device
https://homeslide.app
Apache License 2.0
54 stars 8 forks source link

Can't seem to connect Wear OS app to Phone app #338

Open ShadowEO opened 3 years ago

ShadowEO commented 3 years ago

Describe the bug I've got Home Slide set up on my phone, but the Wear OS app keeps saying "Something happened" and tells me to open Home Slide on my phone and finish configuring it, but I've already done that.

Smartphone (please complete the following information):

outadoc commented 3 years ago

Sorry the app is giving you trouble with this... It's known to be a finicky process.

Can you try these steps for me, in this order:

  1. Force-close the phone app
  2. Reopen the phone app
  3. Open the watch app

If this still doesn't do the trick:

  1. In the phone app, change at least one setting (like the order/visibility of an item in the grid, or the base URL)
  2. Reopen the watch app

Does either fix the problem?

i-am-gizm0 commented 3 years ago

I'm having the same problem and just tried those troubleshooting steps and nothing. For the sake of completeness I also forced the watch to use wifi and to use bluetooth to see if either would help but still nothing.

poofyteddy commented 3 years ago

I had the same issue, nothing seam to fix it until I restarted the watch. (Ticwatch pro 3) After a restart i end up on a spinner saying "loading" (I'm guessing since the watch isn't in English) and it never end.

Trying wifi only i get a cute cat error saying it could not connect, but with a weird URL (https://localhost:80/)

I've commented here because it could be the same issue, but if it isn't i can open a new one. Your call.

Fmstrat commented 3 years ago

@poofyteddy I got it to get past the "loading" screen by repeatedly going to the app menu and starting the app. That kept it in memory until it finished loading. It seems the communication between the watch and the phone in this app takes.. a while. I noticed this in triggering events, too. Things are much slower from the watch.

@outadoc I think this could be optimized by allowing a filter of items to display on the watch (or in quick settings). I have a LOT of devices, so it's a lot of data to be going back and forth between the watch and the phone.

outadoc commented 3 years ago

@Fmstrat Thanks for your persistence! Weird issue...

For the performance problems, make sure you have the latest version, it should improve the loading speeds quite a bit. If you already have it I'm afraid it might just be Wear OS not being great, since technically the watch app is communicating with your instance directly.

Thanks for the suggestion! Currently the idea is that you would filter and sort your items on the phone app, which also makes it easier to find what you need on the watch. Adding full sorting and filtering to the watch would be complex so I'm not sure I will have the time to build that, unfortunately.

brato commented 3 years ago

I am having the same issue and the propsed fixes didn't work. The app works with self signed certificate and installed in the android settings just fine the watch app had a loading screen and stated that it wasn't able to connect after retrying I am stuck at this screen and nothing seems to help it. I also have a ticwatch pro 3. image Clicking the button doesn't seem to do anything.

Despite that awesome app thanks for sharing and maintaining.

Edit: I did some further testing and figured out that when shutting down the homeassistnant server I came back to the loading screen. Whenever the watch turns the display off and I turn it on again the loading tile doesn't spin anymore. And only does so after reopening. Can someone reproduce this? I unfortunately have no experience with watch os but I want to point out that the watch has a secondary lcd display can that lead to problems?

ComputaBloke commented 3 years ago

Followed the suggestion from 5th Nov 2020 without joy, but subsequently, restarting Ticwatch Pro 3 worked for me. Thanks for the great app!

For those above without a proper public SSL for their HA. Probably self-signing would cause problems. I can recommend Nginx Proxy Manager, it provides public LetsEncrypt certs out of the box. Instead of original (jc21), I'm using the 3rd party (jlesage) stand-alone version quite successfully, or its available as a Hassio Add-on.

brato commented 3 years ago

Nice thanks yeah that and a ddclient seemd to resolve the issue. And it also worked with the ip without encryption

jeremysherriff commented 2 years ago

I came looking here because I had the same issue. I have been able to solve it (for me) and thought to share my solution here for others, in case it helps. I had factory-reset my watch during troubleshooting of another problem, and could not Home Slide to work after reinstall. Because I had previously had this working, I knew it was not a compatibility or phone configuration issue.

Watch: TicWatch Pro 2001 Phone: Samsung Galaxy S9+ Home Slide version: v1.7.1

Symptom: Black screen on opening the WearOS app. Phone app opened and displayed data fine. Watch app did not show Loading spinner screen.

Solution: The issue appears to be caused by a missing or stale authentication token for the watch to connect to HomeAssistant. As per @outadoc 's comment here the watch is connecting directly to the HomeAssistant instance, and I had a suspicion that the auth token was not being transferred to the watch as part of the app configuration. The watch does not have a logon sequence of its own.

To fix, simply log out of the HomeAssistant instance on the phone, and then log back in. The auth token will be transferred to the watch after successful login.