Skip to content

kayloehmann/Tile-Sensor-Card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tile Sensor Card

HACS GitHub Release License

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.

Why?

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 · Bewolkt (small) 10,8 °C (large, configurable)

Features

  • 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

Installation

HACS (recommended)

  1. Open HACS > Frontend
  2. Click the three-dot menu > Custom repositories
  3. Add kayloehmann/Tile-Sensor-Card with category Dashboard
  4. Search for "Tile Sensor Card" and install it
  5. Restart Home Assistant

Manual

  1. Download tile-sensor-card.js from the latest release
  2. Copy it to /config/www/tile-sensor-card/tile-sensor-card.js
  3. Go to Settings > Dashboards > Resources and add:
    • URL: /local/tile-sensor-card/tile-sensor-card.js
    • Type: JavaScript Module
  4. Restart Home Assistant

Usage

type: custom:tile-sensor-card
entity: sensor.temperature

A visual editor is available when adding the card via the UI.

Options

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

Value Size Presets

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

Unit Size Presets

Preset Value
Small 0.75rem
Medium (default) 1rem
Large 1.25rem
Extra Large 1.5rem

Actions

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/climate

Examples

Basic sensor

type: custom:tile-sensor-card
entity: sensor.living_room_temperature

Large value with custom icon

type: custom:tile-sensor-card
entity: sensor.outdoor_temperature
name: Aussen
icon: mdi:thermometer
value_size: 3rem

Weather entity

type: custom:tile-sensor-card
entity: weather.forecast_zuhause
name: Wetter
icon: mdi:weather-partly-cloudy

Compact (no name, just the value)

type: custom:tile-sensor-card
entity: sensor.humidity
show_name: false
value_size: 2rem

Small unit

type: custom:tile-sensor-card
entity: sensor.outdoor_temperature
value_size: 2rem
unit_size: 0.75rem

Custom color

type: custom:tile-sensor-card
entity: sensor.co2
color: red
value_size: 2rem

With hold action

type: custom:tile-sensor-card
entity: light.living_room
tap_action:
  action: more-info
hold_action:
  action: toggle

Localization

The 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.

Compatibility

  • Home Assistant 2024.1+
  • HACS compatible
  • Supports light and dark themes
  • Keyboard and screen reader accessible

License

MIT

About

A homeassistant tile card with more focus on sensor value

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

 
 
 

Contributors