📊 Piotras Value Bar

:bar_chart: Piotras Value Bar

Clean and modern sensor value bars with color gradients, scale labels, and alarm indicators.
Designed for readability and flexibility — supports 3 bar orientations and 3 name/value layout modes.




3 bar orientations (layout):

  • Horizontal stepped — sharp color zones, ideal for battery levels and percentages
  • Horizontal smooth — gradual color transition, ideal for temperature and continuous metrics
  • Vertical — side-by-side columns with a shared scale, great for comparing multiple sensors at a glance

3 name/value placement modes (card_layout):

  • Classic row — device name on the left, bar in the center, value on the right
  • Name + value above bar — compact layout ideal for narrow columns
  • Value inside bar — value rendered directly on the bar, works best with a taller bar

Key features:

  • Fully customizable color gradient — up to 13 colors per bar, stepped or smooth
  • Independent min/max range per device — mix units freely (%, °C, W, kWh)
  • Scale labels below each bar (horizontal) or on a shared left column (vertical)
  • Alarm indicators — animated arrows appear when a value crosses alarm_min or alarm_max
  • White pin marker shows current value position, or switch to progress fill mode
  • Click any row to open the entity detail in Home Assistant
  • Responsive — automatically adapts to card width
  • Horizontal Scroll Navigation

Visual Editor: Full GUI editor — add devices, set color gradients, adjust fonts and layout without touching YAML.

:gear: Installation

Method 1: Via HACS (Recommended)

  1. Click the button below to automatically add the repository to your HACS:
Open your Home Assistant instance
  1. Click Add in the pop-up window.
  2. Once the repository page opens, click Download.
  3. After downloading, do a Hard reload of your browser.

Method 2: Manual Installation

  1. Download this repository as a ZIP file and extract it.
  2. Inside your Home Assistant config/www/ directory, create a new folder named piotras-value-bar.
  3. Copy the compiled files (from dist/ folder) into config/www/piotras-value-bar/.
  4. Go to Settings → Dashboards → Resources.
  5. Click Add Resource and enter:
/local/piotras-value-bar/piotras-value-bar-loader.js?v=1.1.0
  • Resource type: JavaScript Module
  1. Hard reload your browser (Ctrl+Shift+R).
4 Likes