Skip to content
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

watchOS app v2 doesn't load a sitemap created from MainUI #800

Open
nelsonaponte opened this issue Aug 26, 2024 · 19 comments
Open

watchOS app v2 doesn't load a sitemap created from MainUI #800

nelsonaponte opened this issue Aug 26, 2024 · 19 comments

Comments

@nelsonaponte
Copy link

Description
When the sitemap with the name "watch" is created using the MainUI, it is not found by the watchOS app and the console reports a 404 error. Only when the sitemap is created from a file configuration with the name "watch.sitemap" it can be loaded.

Steps To Reproduce

  1. Go to MainUI and create a sitemap with the name "watch".
  2. Add any element to the sitemap and save it.
  3. Try to load the sitemap after configuring the openHAB v2 app on the watch to connect to the OH instance.
  4. Nothing is loaded.

Expected behavior
A sitemap created using the MainUI with the correct name should be successfully loaded by the app.

App

  • Version: 3.0.4
  • Device: Apple Watch / watchOS 10.6.1
  • OH Version: 4.1.3
@timbms
Copy link
Contributor

timbms commented Oct 31, 2024

Please try with latest TestFlight release

@alaub81
Copy link

alaub81 commented Oct 31, 2024

Hi @timbms,

I am running the latest testflight version, but can not load any sitemaps on my watch. I get the error sitemap without title
Sitemap watch.sitemap did work with the earlier TestFlight versions. Only the icon problem was there. I have a copy of that managed in MainUI and also switching to that one, the same error accrued.

Shall I create a new issue?

cheers
Andreas

@timbms
Copy link
Contributor

timbms commented Oct 31, 2024

We miss some instructions here. Please do the following:

  1. On iPhone go to Settings, select the relevant "Sitemap for Apple Watch"
  2. On Watch: swipe 2 times to the left, press "Sync Preferences", swipe back to sitemap

@alaub81
Copy link

alaub81 commented Oct 31, 2024

I did that many times, also switching between the two sitemaps, the main ui one and the watch.sitemap on my filesystem. Deleting the icon cache and so on.

Any other ideas?

here is my watch.sitemap perhaps I did a syntax mistake:

sitemap watch label="watch" {
    Frame label="Muase Facts" icon=group {
        Default item=NetatmoHomeOutdoor_Temperature label="Außen [%.1f °C]"
        Text item=Temperatur_Innen_ALL label="Innen [%.1f °C]"
        Default item=NetatmoRegenmesser_KumulierterNiederschlag1h label="Niederschlag (1h)"
        Default item=NetatmoWindmesser_Windgeschwindigkeit label="Wind"
        Default item=inverter1ActivePower label="PV Produktion"
        Default item=TotalPowerConsumption label="Stromverbrauch"
        Default item=inverter2BatStateCharge label="Batteriespeicher"
        Text item=Fenster_ALL label="Fenster [%s]"
    }
    Frame label="Camera" icon=camera {
        Image item=Snapshot_Garten_Snapshot_Image label="Garten"
        Image item=Snapshot_Terrasse_Snapshot_Image label="Carport"
        Image item=Snapshot_Carport_Snapshot_Image label="Carport"
        Image item=Snapshot_Schuppen_Snapshot_Image label="Schuppen"
    }
    Frame label="Muase Control" icon=group {
        Switch item=Lichter_ALL
        Switch item=Rolladen_ALL
        Default item=Markise_Control
        Default item=Lampe_Carport_Betrieb_2
        Default item=Anwesenheit
    }
}

@timbms
Copy link
Contributor

timbms commented Oct 31, 2024

This seems unrelated to the specific sitemap. Nevertheless, I copied the sitemap to my installation and was able to get it displayed on the watch in simulator (I broke my watch and therefore cannot test on a physical device currently).
To analyze this further:

  • Do you see a watch icon in the drawer menu on your iPhone?
  • Are you securing the access to your openHAB server?

@alaub81
Copy link

alaub81 commented Oct 31, 2024

Thank you for Testing it! Yes i See a Watch Icon on the selected Sitemap for the watch. You mean the Secure Connection with SSL Port 8443? Yes i am using it. But also the Remote Connection does not work.

@timbms
Copy link
Contributor

timbms commented Oct 31, 2024

  • Are settings synched to the watch?
  • Are you using certificates for authentication?

@alaub81
Copy link

alaub81 commented Oct 31, 2024

No, i am using no certificates for authentication. Watch is synchronized and is showing the selected sitemap. I also tested other sitemaps without success. Active URL is the myopenhab Cloud. User is my cloud user. I played around with send credentials everytime and other options. But no success. Will have a look at the logfile later, perhaps something is logged.

@alaub81
Copy link

alaub81 commented Oct 31, 2024

I think i found the problem. Local direct connection is working. I was remote connected at the beginning of my tests. But i can not get it work over the Cloud connection. And also i can‘t See and icons. Changed settings from SVG to PNG and back. But no Icon was shown. I know that change should also fix the Icon problem.

@timbms
Copy link
Contributor

timbms commented Oct 31, 2024

We will then have to investigate two issues:

  • SVG icons not working
  • Remote connections

@digitaldan
Copy link
Contributor

I noticed the cloud connection issue as well, i'll take a look at that today.

@timbms
Copy link
Contributor

timbms commented Oct 31, 2024

@alaub81 Can you post the SVG icon that is not working?

@alaub81
Copy link

alaub81 commented Oct 31, 2024

@alaub81 Can you post the SVG icon that is not working?

I am using the standard openHAB icons. e.g.:

  • temperature
  • humidity
  • solarplant
  • rollershutter
  • window
  • switch

in the older versions of the watch TestFlight app, a kind of placeholder icon with a grey crossed out circle, but now, if I choose SVG as icon Typ in the IOS app Seetings, there is nothing shown, so just the background is there. Am I right, that I have to switch from PNG to SVG in the settings, because there aren't any PNG icons anymore?

@alaub81
Copy link

alaub81 commented Oct 31, 2024

And another issue, scrolling with the scroll wheel is not working with that new version. Scrolling is only working on the display itself.

after restarting my Apple Watch scrolling does work. so no issue here.

@GeVaSta
Copy link

GeVaSta commented Nov 19, 2024

I noticed the cloud connection issue as well, i'll take a look at that today.

digitaldan, were you able to chase this bug?

@maxulm
Copy link

maxulm commented Jan 2, 2025

Any News?

@GeVaSta
Copy link

GeVaSta commented Jan 2, 2025

It looks like the Testflight version is not required anymore. You can revert to the normal production version in the App Store.
At least it works now both on my iPhone and Apple Watch.

@maxulm
Copy link

maxulm commented Jan 2, 2025

Yeah, but the problem with the icons on the Watch is still Not solved. :/

@GeVaSta
Copy link

GeVaSta commented Jan 2, 2025

Right. I meant the Sitemap not loading issue.
On my watch however the icons load fine. But I did not follow that discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@digitaldan @timbms @alaub81 @maxulm @GeVaSta @nelsonaponte and others