Home Dashboard Layout PackGuidesFree cards

Round Sensor Card

A circular gauge for a single sensor in Home Assistant. The ring fills between a minimum and a maximum, the value sits in the middle, and the ring color can change with the value (stepped or blended). Use it as a normal dashboard card or as an element on a picture-elements card. No dependencies, one JavaScript file, a visual editor included.

Round Sensor Card screenshot

Free, MIT licensed. Version 1.0.0. Download round-sensor-card.js (11 KB)

Manual install (about 2 minutes, no HACS)
  1. Download round-sensor-card.js.
  2. Copy it into /config/www/dashpack/ on your Home Assistant (create the folder if needed; restart once if /config/www did not exist).
  3. Turn on Advanced mode in your profile. Then Settings > Dashboards > three dots > Resources > Add resource: URL /local/dashpack/round-sensor-card.js, type JavaScript module.
  4. Hard-refresh the browser (Ctrl+Shift+R / Cmd+Shift+R). The card is now available as custom:round-sensor-card.

Use

Add the card from the card picker ("Round Sensor Card") or in YAML:

type: custom:round-sensor-card
entity: sensor.living_room_temperature
name: Living room
min: 10
max: 35
show_card: true
gradient: true
color_stops:
  20: "#4aa3ff"
  28: "#ffb300"
  35: "#e53935"

As a picture-elements element (sizing and position come from style):

type: picture-elements
image: /local/floorplan.png
elements:
  - type: custom:round-sensor-card
    entity: sensor.living_room_temperature
    max: 35
    style:
      top: 30%
      left: 40%
      width: 70px
      height: 70px
KeyDefaultDescription
entityrequiredAny entity with a numeric state or numeric attribute.
namenoneSmall label above the value.
min, max0, 100Ring range. The ring is clamped to it.
attributenoneShow this attribute instead of the state.
attribute_maxnoneUse this numeric attribute of the entity as the maximum.
show_maxfalsePrint / max under the value.
unitsentity unitOverride the unit. A blank string (" ") hides it.
decimalsautoFixed number of decimals; by default up to 2.
show_cardfalseWrap the gauge in an ha-card. Leave off for picture-elements.
stroke_width, stroke_bg_width6, sameRing and track thickness (1-20).
stroke_color, stroke_bg_color#03a9f4, #999999Ring and track colors.
filltransparentColor inside the ring.
color_stopsnoneMap of value to color. Step mode: the lowest stop at or above the reading wins; past the last stop the last color stays.
gradientfalseBlend between stops (stops given as #rgb or #rrggbb; other color forms fall back to step).
font_stylenoneCSS for the value: color, font-size, font-family, font-weight, font-style, text-shadow, letter-spacing, text-transform. Other properties are ignored.
tap_actionmore-infomore-info, navigate (navigation_path), url (url_path), call-service / perform-action (service or perform_action, data, target), or none.

The editor covers the common options; color_stops and font_style are YAML only.

Example dashboard

A small sample view you can paste into the raw configuration editor (replace the placeholder entity ids with your own):

title: Climate
path: climate
type: sections
max_columns: 2
sections:
  - type: grid
    cards:
      - type: heading
        heading: Temperatures
      - type: grid
        columns: 2
        square: false
        cards:
          - type: custom:round-sensor-card
            entity: sensor.living_room_temperature
            name: Living
            min: 10
            max: 35
            show_card: true
            gradient: true
            color_stops:
              10: "#4aa3ff"
              21: "#43a047"
              28: "#ffb300"
              35: "#e53935"
          - type: custom:round-sensor-card
            entity: sensor.living_room_humidity
            name: Humidity
            min: 0
            max: 100
            show_card: true
            gradient: true
            color_stops:
              20: "#ffb300"
              40: "#43a047"
              80: "#4aa3ff"
      - type: tile
        entity: climate.thermostat

8 more ready-made views (living room, bedroom, kitchen, cameras, security, energy, mobile) are in the Home Dashboard Layout Pack ($9): https://dashpack.strahmdigital.com/

Migrating from custom:circle-sensor-card

Change type: custom:circle-sensor-card to type: custom:round-sensor-card and the resource URL to this card's file. These keys carry over with the same meaning: entity, name, min, max, show_card, stroke_width, stroke_color, stroke_bg_width, stroke_bg_color, color_stops, gradient, units, attribute, attribute_max, show_max, font_style (restricted to the properties above), fill.

Differences to know about:

All free cards · Dashboard guides