swiergot
(Jarek Świerczyński)
November 22, 2021, 1:33pm
41
Well it seems to be some kind of a default screen or a placeholder. The icons do nothing when clicked on.
But following your advice about icons, it’s true that some of the entities did not have explicitly assigned icons. I have corrected that and now all entities appear on the tile. It seems that rendering of the icons stop with the very first entity with a non-default icon. In my shortcuts the first entity did not have an icon and that’s why a placeholder screen was being displayed.
I assume it’s a bug, not a feature? Is it reported? Should I report it?
Thanks for help!
brewston
(Tim Jones)
November 22, 2021, 1:45pm
42
I actually submitted a PR last night to correct this behavior
home-assistant:master
← dshokouhi:fix_tile_default_icon
opened 01:27AM - 22 Nov 21 UTC
## Summary
Was playing around with tiles and noticed that none of the icons… were loading because all my selected entities had default icons. Came to find the following error due to a minor issue :)
```
2021-11-21 17:17:08.862 27675-27675/? E/TileService: onResourcesRequest Future failed
java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:588)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:547)
at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:113)
at kotlinx.coroutines.guava.JobListenableFuture.get(ListenableFuture.kt:427)
at androidx.wear.tiles.TileService$TileProviderWrapper.lambda$onResourcesRequest$2(TileService.java:293)
at androidx.wear.tiles.TileService$TileProviderWrapper$$ExternalSyntheticLambda0.run(Unknown Source:4)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6680)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.Collections$SingletonList.get(Collections.java:4863)
at io.homeassistant.companion.android.tiles.ShortcutsTile$onResourcesRequest$1.invokeSuspend(ShortcutsTile.kt:101)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2021-11-21 17:17:28.858 19474-19474/? E/HOME: [ProtoTilesManagerImpl]Error getting tile resources
java.util.concurrent.ExecutionException: ktx: Timed out: ktt@60fb062[status=PENDING]
at krp.s(AW783461766:3)
at krp.get(AW783461766:2)
at fiu.run(AW783461766:2)
at caa.run(Unknown Source:2)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at bzl.run(AW783461766:7)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6680)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Caused by: ktx: Timed out: ktt@60fb062[status=PENDING]
```
## Screenshots
## Link to pull request in Documentation repository
Documentation: home-assistant/companion.home-assistant#
## Any other notes
1 Like
I just joined the main app beta channel and can see the HA app in the Wear OS play store on my watch but there is no install button… seems like there is a placeholder for it but nothing I can tap on. Any one else see this? Wondering if it’s a bug in the app or something on my watch.
It’s definitely there and downloads from the play store. What watch do you have?
adamaze
(Adamaze)
December 6, 2021, 3:51pm
46
Probably not too helpful, but I can say I had the same issue on my Samsung Galaxy watch4. The install button was simply missing, but it eventually showed up (days maybe?)
I remember that bug, it might be a play store issue. Maybe a device restart is needed?
I have a Fossil Gen 5. I ended up using my phone to request the watch to install the app. All working now.
it sounds like a play store bug because the app takes you to the same URL, maybe there was a delay in it showing the install button?
I tried a few times and it never appeared. Quite possibly just the Play Store as you say.
Thanks for all your epic work on these apps.
1 Like
PoVPoV
December 8, 2021, 4:09pm
51
Hello,
Can you help me create tile ?
In the parameter, I have no shortcut to add. How can I create one ?
Thanks.
Regards
go to settings in the app and setup the tile, then add it from the tiles screen
PoVPoV
December 8, 2021, 7:27pm
53
I can’t setup it because it says none in the shortcut tile menu (with a recycle bin icon)
So you dotn see any thing beneath None
like your input booleans followed by the lights etc…?
Heads up to existing wear OS beta users…the next update has a breaking change where you will need to reconfigure your favorite entities.
bachoo786
(Bachoo786)
December 9, 2021, 5:50pm
56
silly question but how far is the HA Wear OS app being released officially?
it will remain in beta for a while as most of the libraries we are using are in Alpha so we wont be moving it out of beta until those libraries mature more
1 Like
bachoo786
(Bachoo786)
December 9, 2021, 7:19pm
58
Ok that’s fair enough! Can’t wait for the official release when it’s available . Thanks for the hard work
1 Like
I downloaded the app today , scripts & scenes are working fine but switch toggles aren’t working at all , And the status of the switch isn’t shown properly when using the phone to switch on.
Any suggestions ?
Try checking for errors in the logs on the device if possible. Once you see the switches load into toggles you should start to see a stream of live updates unless theres an error in the websocket connection which the logs woudl indicate