openhab / openhab-ios

The repository of the iOS client
Eclipse Public License 2.0
187 stars 127 forks source link

WatchOs app not connecting #570

Open roben opened 3 years ago

roben commented 3 years ago

Describe the bug The watch app only shows an empty sitemap. First I thought it was an issue with my sitemap but digging further revealed that no requests are logged on the server at all. Tested with and without wifi. Selecting the watch sitemap within the iOS app works just fine, too.

App (please complete the following information):

Smartphone (please complete the following information):

Additional context

Local URL is analogue to https://myserver.local, remote URL is https://hab.mydomain.org. SSL is done via let's encrypt, OpenHAB is behind an apache2 reverse proxy. access.log shows all clients properly but nothing for the watch app.

roben commented 3 years ago

I am not sure what to do to debug this any further as nothing is shown at all within the app and no requests are received from the server.

NorbertHD commented 3 years ago

This bug is fixed in version 2.4.1, it's currently only available at Testflight.

roben commented 3 years ago

Thanks. Do you know when it will be released to the public?

mstroeve commented 3 years ago

Same issue here when using the latest TestFlight build. First tab (sitemap) is completely blank. Using OH 2.5.8 also had this issue with previous TestFlight builds last months I thought it was stil work in progress and never had a working watch app. The sync preferences options works and fills the fields with correct values. @timbms any suggestion what we could do to get usable debug information? D68B7C27-6D6E-418F-BE43-F6748B3F8AD7

weakfl commented 3 years ago

refs #574

mstroeve commented 3 years ago

I Just tried again with the latest 2.4.4 testflight build and the sitemap stays empty. When i checked the settings on the watch app i saw the sitemap stating "watch" in stead of my default (and only) sitemap. This value cant seem to be changed in the watch app?

litris commented 3 years ago

Same error in Sitemap appears “watch” and not the one I wear by default.

You can't change to another sitemap.

roben commented 3 years ago

Sorry guys this is not the issue here. There should already be another one to make the sitemap configurable. I have a distinct watch sitemap (which you will need anyways) and this one doesn't work on the watch but on all other devices.

litris commented 3 years ago

Sorry guys this is not the issue here. There should already be another one to make the sitemap configurable. I have a distinct watch sitemap (which you will need anyways) and this one doesn't work on the watch but on all other devices.

I use the version in the AppStore and it doesn't work.

No sitemap can be chosen.

NorbertHD commented 3 years ago

The version (2.4.0) in the AppStore has an error and the watch part can not work at all. The watch part is in an early state and experimental. Because also of the lack of documentation of the restrictions of the watch part, I assume it was accidently released to the AppStore. If you want to play with the latest watch TestFlight version you have to create a "watch" sitemap. There is no way yet to select another name. Only switch and slider items are supported. If there is an error or unknown elements in the sitemap definition you'll see an empty screen. I would start with an one item map and expand it one by one. I'm not a developer or maintainer of this app, so I can not tell if or when this will change.

mstroeve commented 3 years ago

Thanks @NorbertHD with a simple watch sitemap and only switch and sliders it seems to work (latest testflight build). Dont use frames the show but sliders and switches inside wont render.

litris commented 3 years ago

Ok thanks.

redbear-ger commented 3 years ago

I cant get it to work.... black sitemap...

filename watchos.sitemap or watch.sitemap?

got this sample inside: sitemap default label="Watch" { Switch item=KeyMatic_Open label="Haustuer" Switch item=Garagentor_Taster label="Garagentuer" Switch item=KeyMatic_Garage_State label="Garagentor" Switch item=Licht_EG_Kueche label="Kuechenlicht" }

recognized my external adress on sync...

NorbertHD commented 3 years ago

`sitemap default

The sitemap must be named "watch" not "default".

miriampadberg commented 3 years ago

Here it is the same. Watch-Sitemap on iwatch stays empty. On iphone it works, but on watch not

sitemap watch label="watch" { Switch item=Aussentuer label="Haustuer" }

paulpenner commented 3 years ago

How can I get an invite for the testflight beta?

int5749 commented 3 years ago

How can I get an invite for the testflight beta?

Hi all, I'm interested in this as well, used to use Testflight for other project already ;-)

weakfl commented 3 years ago

Use the link in the README.

int5749 commented 3 years ago

Use the link in the README.

Thanks, works like a charm for me, even supports frames to seperate switches

daniel-mcgeever commented 3 years ago

Is the public link still available for testflight?

becksen commented 3 years ago

This bug is fixed in version 2.4.1, it's currently only available at Testflight.

Testflight seats are already occupied. Can you allow more testers?

becksen commented 2 years ago

Watchapp is still crashing. App version 2.4.6 (158041455) Doesn't matter which settings or Sitemaps I use. Either I get Http 401 error or the watch is closing without further notice.

boecko commented 2 years ago

I had to remove my basic auth acl from my haproxy setup. After that, i see my watch.sitemap

But removing auth is no option ;)

Is the password synced from the iphone-app?