Wear OS Template Tiles

Hi All,

Trying to get some Sensor Values to Show on my Galaxy Watch 6.
Have installed The Android Wear OS App & can now turn things on & off with the Watch, but that’s not my real interest.

What I want is data from Several Sensors Displayed.
Believe this is Done with Template Tiles from what I can read, but the detail is thin.
If I go to the Settings in tha App on the Watch & choose Template Tiles,
I just get the Message;

There are no Template Tiles added yet - add one from the watch face to set it up

Doesn’t really explain much & have searched but can’t find very much that seems current.

I do know how to add Watch Faces as such, but “add one from the watch face” may have lost something in Translation.

So What are “Template Tiles” exactly?
Are they stored & editable in YAML?
Specific Directories & file names?

I’ve already used other Templates for derived values etc, but can’t find what I need regards this.

Simple starting point I looking at creating involves Jst a few sensors & a switch or two.

sensor.spa_1_ts_cur
sensor.spa_1_ts_out
switch.spa_solar_pump
switch.spa_heat_pump

The Switches I can already control, but would be more convenient if they were on a Tile with the Temperatures, so their status was present on the same screen.

Can anyone point out or give me a simple example of how to get this started?

Thanks.

2 Likes

On my Wear OS device (Galaxy Watch 4) you swipe right from your current watch face until you get to a screen that says “Add tiles” with a large + sign. Press the + sign and a list of apps that have tile options appear. Home Assistant offers Assist, Camera, Shortcuts, and Template. Once you select template, it says “Set template in the phone settings” which is the point in the companion app you mentioned.

You would then supply a template, eg {{ some Jinja2 expression }} that resolves a Jinja2 template. The tile will render the output of that template. You can test the template in developer tools.

I have a tile to open/close my patio screen by using a shortcut to the cover entity.

Hope this helps.

in addition to this, once you swipe left or right you should be able to long press on any tile to also get to the tile shortcut editor.

You can also add tiles from the phone companion app too, at least on the pixel watch you can not sure about samsungs companion phone app

1 Like

Syntax:
{{ states(‘switch.tensionealta’) }}

Can a tile template contain an interactive toggle that can toggle an entity state? I can use the entity tile but it doesn’t show the current state (and looks awful). The only thing I came up with is to have two separate tiles: one to display the state with a template, and the other to change the state but can’t show the current state. It’s very clunky and looks like hell so I’m not actually using it.

I don’t know. You can check the Docs here Overview | Home Assistant Companion Docs (home-assistant.io)

I have pretty much the same problem - mainly I had ChatGPT walk me through setting up a template in the companion app, I can see it under Home Assistant on the watch under : Settings/ Template tiles/Template Tile #1 (which is what it is in the companion app on my phone) but it says “Template tile content” and “Change template in phone settings” But it also has my text (for testing instead of an actual template) “greyed out” underneath. So I know the phone and watch are syncing but don’t know what I need to do on the phone. Of course ChatGPT says crap like “save the template” but that doesn’t seem to be an option in companion app. The actual code we wrote for the template nets the expected value when tested in developer tools - it’s pretty much what adriano.belletti said. The docs aren’t helpful - at least to me since iI must be missing something. I’ve read through the template portion a dozen times

Can you share some screenshots of the phone and watch setup for the tile in question?

Have you clicked on the greyed out text under Template tiles? That will give you an edit dialog to modify the template text, with a preview of the watch tile display underneath. This is what mine looks like for an insulin pump sensor:

gda1: That would’ve been so easy - I’d take easy for a change. Just tried that and nothing. Obviously that’s on the phone (companion app). Another weird thing is is added Template tiles #2 and #3 - maybe because I’ve been adding and deleting tiles on the watch? Anybody know how to delete these and/or change the name of the tiles?

please see my response above, waiting to help

the number of tiles shown depends on how many you added to the tile carousel on the watch. if you see a mismatch restart phone and watch.

1 Like

dshokouhi: Pictures



I took didn’t come out too well (watch). Autofocus doesn’t like up close shots or the watch screen. Here are the last screens on the watch and phone. I have the screens that lead up to them too but don’t know if I can post that many

You’d have to zoom in on the watch to see the template is there - it didn’t render though. It should say Armed Home like the phone. Let me know if the other screens will help.

Restarted phone and watch. Only one tile on the face of the watch saying “Set template in the phone settings”. If I open companion app on the watch and select , Settings/Template tiles there are 3 choices and 2 are blank - same as on the phone. Choosing Template tile #1 gets me to the screen I posted.
I also looked at adding a shortcut tile. End up with “choose entities in settings” - Edit but there are “None”. Or starting with the CA on the watch: “there are no shortcuts tiles added yet”

you can only add those from teh watch app

can you share a screenshot of the tile from teh carousel?

You edit template tiles from the companion app only. These are the screens I see on the app under Settings / Companion app:

  1. Click Companion app

  2. Click Wear OS Settings

  3. Click Template tiles

  4. Click Template tile #1

  5. Type or paste content

I got to that screen but it doesn’t do anything if I press (or long press) the greyed out area. In your case it would be “Reservoir” - in mine it is “Armed Home”. If I press the box that is grey with the code in it it edits the code. I guess that’s what you meant - already knew that but thanks. Code is there and correct; returns the state of my alarm astatus sensor.
I thought you meant the result that appears underneath the code. Is there some sort of “save” button/ action like ChatGPT wanted me to use?

Not sure what you mean by the “carousel”. Since the pics are small (about 190k) I’ll post the sequence:





Here are the pics from companion app on phone




show me the actual template tile and not the config, go to your watchface and scroll left or right to find it like you can for any tile you can add from any other app.