Skip to content

Latest commit

 

History

History

barometer-gauge

barometer-gauge-card

A custom card for air pressure sensors in Home Assistant, styled as a barometer. Based on the standard gauge card. The blue/red markers indicate the recently recorded low/high. When hovered they show the actual values. Comes in 2 styles:

Standard style Needle style
standard style needle style

Prerequisites

This card relies on the home assistant api. Make sure you have created an api token and set the apitoken option (see options)

Usage

Upload to your custom cards folder of your home assistant instance. Add these lines to the resources section of your ui-lovelace.yaml (adapt the folder name if necessary)

- url: /local/custom_cards/barometer-gauge-card.js
  type: js

Add a custom card in your lovelace view yaml and set its options:

- type: "custom:barometer-gauge-card"
  entity: ...
  apitoken: "..."
  apiBaseUrl: "..." 
  minmaxhistory: 3
  ...

Options

Name Type Needed? Value
type string Required custom:"barometer-gauge-card"
entity string Required sensor.xyz
minmaxhistory number Required e.g.: 3 (Number of days to go back in history for the blue and red markers. What value works for you also depends on other settings you might have in your config.)
apitoken string Required "api-token" request a Long Lived Access Token via your profile page
apiBaseUrl string Required The url your Home Assistant instance is running on e.g. 'http://hassio.local:8123' or 'http://192.168.1.2:8123'
attribute string optional If set, this attribute of the entity is used, instead of its state
title string optional Name to display on card
measurement string optional If not set, uses the unit_of_measurement on the entity
needle bool optional false or true set to true for the alternative styling
scale string optional Base value for graph visual size

⚠ This card no longer supports the severity map option ⚠