All Projects â†’ benct â†’ lovelace-attribute-entity-row

benct / lovelace-attribute-entity-row

Licence: MIT license
Show attribute(s) on entity rows in Home Assistant's Lovelace UI

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to lovelace-attribute-entity-row

lovelace-battery-entity-row
Show battery states or attributes with dynamic icon on entity rows in Home Assistant's Lovelace UI
Stars: ✭ 49 (+133.33%)
Mutual labels:  attribute, lovelace, home-assistant-frontend, lovelace-ui
tv-card
đŸ“ē TV Remote Card
Stars: ✭ 139 (+561.9%)
Mutual labels:  lovelace, home-assistant-frontend, lovelace-ui
google home timers card
Card for Home Assistant Google Home integration.
Stars: ✭ 29 (+38.1%)
Mutual labels:  lovelace, home-assistant-frontend, lovelace-ui
lovelace-roomba-vacuum-card
HA Lovelace Card for iRobot Roomba Vacuum Cleaner leveraging the rest980 Docker Image
Stars: ✭ 34 (+61.9%)
Mutual labels:  lovelace, home-assistant-frontend, lovelace-ui
MeteoalarmCard
Meteoalarm, MÊtÊo-France and DWD severe weather warnings card for Home Assistant Lovelace UI ⛈ī¸
Stars: ✭ 48 (+128.57%)
Mutual labels:  lovelace, lovelace-ui
mini-humidifier
Minimalistic humidifier card for Home Assistant Lovelace UI
Stars: ✭ 129 (+514.29%)
Mutual labels:  lovelace, lovelace-ui
lovelace-collapsable-cards
A custom Lovelace card that hides other cards behind a dropdown toggle
Stars: ✭ 83 (+295.24%)
Mutual labels:  lovelace, lovelace-ui
Home-Assistant-Main
My Home Assistant Configuration Be sure to ⭐ my repo so you can keep up to date on the daily progress!
Stars: ✭ 54 (+157.14%)
Mutual labels:  lovelace, home-assistant-frontend
light-card
Lovelace light-card for home assistant
Stars: ✭ 18 (-14.29%)
Mutual labels:  lovelace, lovelace-ui
myconfig
My Home Assistant config
Stars: ✭ 143 (+580.95%)
Mutual labels:  lovelace, lovelace-ui
numberbox-card
Replace input_number sliders with plus and minus buttons
Stars: ✭ 61 (+190.48%)
Mutual labels:  lovelace, lovelace-ui
bom-radar-card
A rain radar card using the new tiled images from the Australian BOM
Stars: ✭ 52 (+147.62%)
Mutual labels:  lovelace, lovelace-ui
sun-card
Lovelace card for sun component - Home Assistant
Stars: ✭ 50 (+138.1%)
Mutual labels:  lovelace, lovelace-ui
score-zeroshot
Semantically consistent regularizer for zero-shot learning
Stars: ✭ 65 (+209.52%)
Mutual labels:  attributes
charger-card
A lovelace card for electrical vehicle (EV) home chargers and charging robots.
Stars: ✭ 57 (+171.43%)
Mutual labels:  lovelace
xml.nim
Simple XML parser in pure Nim
Stars: ✭ 16 (-23.81%)
Mutual labels:  attribute
attributes
PHP Attributes Reader. Subtree split of the Spiral Attributes component (see spiral/framework)
Stars: ✭ 22 (+4.76%)
Mutual labels:  attributes
OpendTect-External-Attributes
External Attribute scripts for the open source seismic interpretation system - OpendTect
Stars: ✭ 22 (+4.76%)
Mutual labels:  attributes
lovelace-fan-xiaomi
Xiaomi Smartmi Fan Lovelace card with CSS fan animation
Stars: ✭ 60 (+185.71%)
Mutual labels:  lovelace
bootstrap-grid-card
Bootstrap grid in Lovelace UI
Stars: ✭ 25 (+19.05%)
Mutual labels:  lovelace

attribute-entity-row

Show entity attribute value(s) on entity rows in Home Assistant's Lovelace UI.

GH-release GH-last-commit GH-code-size

Note: Semi-deprecated in favor of multiple-entity-row card, so this card will most likely not be further worked upon.

Setup

Add attribute-entity-row.js to your <config>/www/ folder. Add the following to your ui-lovelace.yaml file:

resources:
  - url: /local/attribute-entity-row.js?v=1.1.2
    type: js

Options

Name Type Default Description
type string Required custom:attribute-entity-row
entity string Required sensor.my_sensor
name string Override entity name / friendly_name
name_attribute string Use an attribute as the entity name
unit string Override state unit_of_measurement
toggle bool false Display a toogle instead of state
hide_state bool false Hide the entity state
primary object see below Primary attribute object
secondary object see below Secondary attribute object

Primary/secondary object

Name Type Default Description
key string Required A valid attribute key within the entity
name string Name / prefix for attribute
unit string Unit / postfix for attribute
entity string Use attribute from another entity

Example

attribute-entity-row

type: entities
title: attribute-entity-row
show_header_toggle: false
entities:
  - type: section
    label: Primary attribute

  - entity: sensor.smoke_sensor_livingroom_temperature
    type: custom:attribute-entity-row
    primary:
      key: battery_level
      name: Battery
      unit: '%'
  - entity: light.living_room
    type: custom:attribute-entity-row
    primary:
      key: min_mireds
      name: 'Attribute:'
  - entity: media_player.spotify
    type: custom:attribute-entity-row
    primary:
      key: media_title

  - type: section
    label: Toggle

  - entity: light.living_room
    type: custom:attribute-entity-row
    name: Light with Toggle
    toggle: true
    primary:
      key: min_mireds
      name: Mireds
  - entity: switch.power_office_pc
    type: custom:attribute-entity-row
    toggle: true
    primary:
      key: friendly_name

  - type: section
    label: Customization

  - entity: sensor.smoke_sensor_livingroom_temperature
    type: custom:attribute-entity-row
    name: Custom Name
    primary:
      key: battery_level
      name: Battery
      unit: '%'
  - entity: sensor.motion_hall_temperature
    type: custom:attribute-entity-row
    name: Sensor
    primary:
      key: battery_level
      name: 'Value:'
      unit: units
  - entity: sensor.motion_hall_temperature
    type: custom:attribute-entity-row
    name: Sensor
    unit: Unit
    primary:
      key: battery_level
      name: Battery
      unit: '%'

  - type: section
    label: Secondary attribute

  - entity: sensor.magnet_door_main_temperature
    type: custom:attribute-entity-row
    secondary:
      key: battery_level
      name: Battery
      unit: '%'
  - entity: vacuum.xiaomi_vacuum_cleaner
    type: custom:attribute-entity-row
    primary:
      key: battery_level
      name: Battery
      unit: '%'
    secondary:
      key: status
  - entity: vacuum.xiaomi_vacuum_cleaner
    type: custom:attribute-entity-row
    primary:
      key: status
      name: 'Status:'
    secondary:
      key: battery_level
      name: Battery
      unit: '%'

  - type: section
    label: Alternative entity

  - entity: sensor.smoke_sensor_livingroom_temperature
    type: 'custom:attribute-entity-row'
    primary:
      key: fan_speed
      name: 'Vacuum fan:'
      entity: vacuum.xiaomi_vacuum_cleaner
  - entity: sensor.template_smoke_sensor_livingroom
    type: custom:attribute-entity-row
    primary:
      key: battery_level
      name: Other entity attribute
      entity: sensor.smoke_sensor_livingroom_temperature
    secondary:
      key: status
      name: Another entity -
      entity: vacuum.xiaomi_vacuum_cleaner

  - type: section
    label: Hide State

  - entity: sensor.smoke_sensor_livingroom_temperature
    type: custom:attribute-entity-row
    hide_state: true
    primary:
      key: battery_level
      name: Battery
      unit: '%'
  - entity: sensor.smoke_sensor_livingroom_temperature
    type: custom:attribute-entity-row
    name: With secondary
    hide_state: true
    primary:
      key: battery_level
      name: Battery
      unit: '%'
    secondary:
      key: status
      entity: vacuum.xiaomi_vacuum_cleaner

Partially based on @thomasloven's slider-entity-row lovelace card.

My cards

xiaomi-vacuum-card | github-entity-row | multiple-entity-row | attribute-entity-row

BMC

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].