A Home Assistant custom card based on the native Tile Card, with a configurable sensor value size for better readability.
Uses the same built-in HA components (ha-tile-icon, ha-tile-info, ha-ripple) as the original Tile Card for pixel-perfect consistency — including state-based icon coloring, ripple effects, and focus handling.
The default Tile Card displays sensor values in a small secondary font, which can be hard to read at a glance:
| Tile Card (default) | Tile Sensor Card |
|---|---|
| Wetter | Wetter |
| 10,8 °C (large, configurable) |
- Configurable sensor value size and unit size (independent font sizes)
- Pixel-perfect match with the native Tile Card layout and styling
- State-based icon coloring (lights with RGB, sensors, weather, switches, etc.)
- Visual config editor with entity picker, icon picker, color selector, and action editors
- Tap, hold, and double-tap actions
- Accessible: keyboard navigation, focus ring, ARIA labels, ripple feedback
- Supports light and dark themes
- Handles unavailable/unknown states gracefully
- Localized editor in 30 languages
- Open HACS > Frontend
- Click the three-dot menu > Custom repositories
- Add
kayloehmann/Tile-Sensor-Cardwith category Dashboard - Search for "Tile Sensor Card" and install it
- Restart Home Assistant
- Download
tile-sensor-card.jsfrom the latest release - Copy it to
/config/www/tile-sensor-card/tile-sensor-card.js - Go to Settings > Dashboards > Resources and add:
- URL:
/local/tile-sensor-card/tile-sensor-card.js - Type: JavaScript Module
- URL:
- Restart Home Assistant
type: custom:tile-sensor-card
entity: sensor.temperatureA visual editor is available when adding the card via the UI.
| Option | Type | Default | Description |
|---|---|---|---|
entity |
string | required | Entity ID |
name |
string | entity name | Override the display name |
icon |
string | entity icon | Override the icon (e.g. mdi:thermometer) |
color |
string | state |
Icon color: state (automatic), named HA color, or hex |
show_icon |
boolean | true |
Show or hide the icon |
show_name |
boolean | true |
Show or hide the name |
show_state |
boolean | true |
Show or hide the sensor value |
value_size |
string | 1.5rem |
Font size of the sensor value (CSS units) |
unit_size |
string | 1rem |
Font size of the unit of measurement (CSS units) |
tap_action |
object | more-info |
Action on tap |
hold_action |
object | none |
Action on hold |
double_tap_action |
object | none |
Action on double tap |
The visual editor offers these presets (or enter any CSS value):
| Preset | Value |
|---|---|
| Small (default) | 1.5rem |
| Medium | 2rem |
| Large | 2.5rem |
| Extra Large | 3rem |
| Huge | 4rem |
| Preset | Value |
|---|---|
| Small | 0.75rem |
| Medium (default) | 1rem |
| Large | 1.25rem |
| Extra Large | 1.5rem |
Actions follow the standard Home Assistant action syntax:
tap_action:
action: more-info # more-info | toggle | call-service | navigate | url | none
hold_action:
action: toggle
double_tap_action:
action: navigate
navigation_path: /lovelace/climatetype: custom:tile-sensor-card
entity: sensor.living_room_temperaturetype: custom:tile-sensor-card
entity: sensor.outdoor_temperature
name: Aussen
icon: mdi:thermometer
value_size: 3remtype: custom:tile-sensor-card
entity: weather.forecast_zuhause
name: Wetter
icon: mdi:weather-partly-cloudytype: custom:tile-sensor-card
entity: sensor.humidity
show_name: false
value_size: 2remtype: custom:tile-sensor-card
entity: sensor.outdoor_temperature
value_size: 2rem
unit_size: 0.75remtype: custom:tile-sensor-card
entity: sensor.co2
color: red
value_size: 2remtype: custom:tile-sensor-card
entity: light.living_room
tap_action:
action: more-info
hold_action:
action: toggleThe visual editor is translated into 30 languages based on your Home Assistant language setting:
English, German, French, Spanish, Italian, Portuguese, Portuguese (BR), Dutch, Polish, Czech, Slovak, Danish, Swedish, Norwegian, Finnish, Russian, Ukrainian, Hungarian, Romanian, Bulgarian, Greek, Turkish, Japanese, Korean, Chinese (Simplified), Chinese (Traditional), Arabic, Hebrew, Catalan, Indonesian
Falls back to base language (e.g. pt for pt-BR), then English.
- Home Assistant 2024.1+
- HACS compatible
- Supports light and dark themes
- Keyboard and screen reader accessible