Skip to content

Lovelace card, like a gauge but only in six degrees

Notifications You must be signed in to change notification settings

krissen/sixdegrees-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sixdegrees-card

Lovelace card, like a gauge but only in six degrees. As seen in pollenprognos-card.

notitle_value_name

Install with HACS

Add https://github.com/krissen/sixdegrees-card/ as a custom integration. See more info: https://hacs.xyz/docs/faq/custom_repositories

hacs_badge

Options

Name Type Default Description
type string Required custom:sixdegrees-card
entity string Required Entity (sensor) to show
min integer Required Minimal value of entity (sensor). Used to calculate degrees.
max integer Required Maximum value of entity (sensor). Used to calculate degrees.
title string Optional Custom title if string, boolean value if generated or not to show. Default is generated text based of entity's friendly name.
name string Optional Custom name below image if string, boolean value if generated or not to show. Default is entity's friendly name.
show_value  boolean  Optional  If value of sensor is to be shown below image.

Examples

Title, value, no name title_value_noname
 - type: 'custom:sixdegrees-card'
    entity: sensor.fibaro_luminance_hall_uppe
    title: "Ljus, uppe"
    name: false
    show_value: true
    min: 0
    max: 60
No title, with value and name notitle_value_name
  - type: 'custom:sixdegrees-card'
    entity: sensor.fibaro_luminance_hall_uppe
    title: false
    name: "Uppe"
    show_value: true
    min: 0
    max: 60
Mixed with/without title, value, and name. Using `horizontal-stack` and `vertical-stack` (light) horizontal_vertical_mixed--light
 - type: vertical-stack
    title: Six degrees of
    cards:
      - type: horizontal-stack
        cards:
          - type: 'custom:sixdegrees-card'
            entity: sensor.ljusniva
            title: false
            name: false
            show_value: false
            min: 0
            max: 5
          - type: 'custom:sixdegrees-card'
            entity: sensor.fibaro_luminance_hall_uppe
            title: false
            name: false
            show_value: false
            min: 0
            max: 60
          - type: 'custom:sixdegrees-card'
            entity: sensor.fibaro_luminance_hall_nere
            title: false
            name: false
            show_value: false
            min: 0
            max: 60
      - type: horizontal-stack
        cards:
          - type: 'custom:sixdegrees-card'
            entity: sensor.ljusniva
            title: false
            show_value: false
            min: 0
            max: 5
          - type: 'custom:sixdegrees-card'
            entity: sensor.fibaro_luminance_hall_uppe
            title: false
            name: "Lux"
            show_value: true
            min: 0
            max: 60
          - type: 'custom:sixdegrees-card'
            entity: sensor.fibaro_luminance_hall_nere
            title: false
            name: false
            show_value: true
            min: 0
            max: 60
    - type: horizontal-stack
        cards:
          - type: 'custom:sixdegrees-card'
            entity: sensor.pollen_forshaga_ambrosia
            title: false
            show_value: true
            min: 0
            max: 5
      - type: horizontal-stack
        cards:
          - type: 'custom:sixdegrees-card'
            entity: sensor.pollen_forshaga_al
            title: false
            show_value: true
            min: 0
            max: 5
          - type: 'custom:sixdegrees-card'
            entity: sensor.pollen_forshaga_gras
            title: false
            show_value: true
            min: 0
            max: 5
          - type: 'custom:sixdegrees-card'
            entity: sensor.pollen_forshaga_bjork
            title: false
            name: "Björk"
            show_value: true
            min: 0
            max: 7

Credits

Using gauges from pollen-card by @nidayand , who in turn rewrote @isabellaalstrom's pollenprognos-card.