Skip to content

Wear OS Smart Watch Tile

Duncan Drury edited this page Nov 27, 2024 · 3 revisions

I made a template that shows the status of my Nissan Leaf on my Google Pixel watch through Home Assistant Template Tiles.

<h3>Leaf<br>
⚑{{states("sensor.leaf_battery_level")}}%  πŸ›£ {{states("sensor.leaf_range_ac_off")}}mi<br>
πŸ”Œ{{states("binary_sensor.leaf_plugged_in")}}<br>
β‹™ {{"{:,}".format(states("sensor.leaf_monthly_distance")|round)}}mi this month</h3>

Note - I added newlines to the above for readability. New lines are rendered as an additional <br> tag in the tile, so the best results are by entering the code in a single line. This renders like the image below.

screenshot-2024-11-25-22-21-42

At glance this shows me current charge, range (AC off), if it is currently plugged in or not, and how many miles I've driven so far this month.

Sensor names may be slightly different based on model of the car. Your charger may provide a better measure of the status than binary_sensor.leaf_plugged_in - I use MyEnergi Zappi which shows plugged in, charging etc with a single sensor.

Unfortunately the Template tile only supports emoji for symbols rather than Material Design Icons, so a bit ugly but it does the trick.

You can preview this most easily in Home Assistant using the Developer Tools > Template screen in Home Assistant.

Using <h3> tags the above template more or less fills the available space. Adjust h tags or remove them if you want to add more.

Clone this wiki locally