Skip to content

A custom Lovelace UI of thermo valve usable in standard cards or picture-element cards.

Notifications You must be signed in to change notification settings

radimkeseg/lovelace-thermo-valve-gauge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lovelace thermo-valve-gauge

A Home Assistant lovelace custom gauge card for climate instantiated by a thermometer valve such as TuYa TS0601_thermostat.

thermo with temps and valve position thermo with temps and valve positions in a picture element

Usage

Add this card via HACS (recommended) HACS custom repositories add https://github.com/radimkeseg/lovelace-thermo-valve-gauge

Or manually : Add this custom card to your home assistant instance. Reference it into your lovelace configuration.

  - type: js
    url: /local/lovelace/mini-thermo-valve-gauge.js

Finally : Add it as a custom card to your lovelace : 'custom:thermo-valve-gauge'.

Options

Card options

Option Type Description
entity (required) string an entity to track, make sure it is a climate entity
temp_min (required) number minimum value of the temperature gauge
temp_max (required) number maximum value of the temperature gauge
measurement string custom unit of measurement
scale number sizing factor, default = 1
decimals number decimal precision of entity value.

An example for a picture-element:

type: picture-elements
elements:
  - type: custom:thermo-valve-gauge
    temp_max: 25
    temp_min: 15
    measurement: °C
    entity: climate.thermo_livingroom
    scale: 1.5
    style:
      top: 75%
      left: 38%

An example for a card:

type: custom:thermo-valve-gauge
temp_max: 25
temp_min: 15
measurement: °C
entity: climate.thermo_bathroom
scale: 2

Time to time upgrading, mainly for my own purpose, anyway feel free to reuse ! PRs are welcome ;).

Thanks to SNoof85 for inspiration.