Skip to content

Home Assistant custom card to change input_text value as a color

Notifications You must be signed in to change notification settings

bessarabov/color-entity-row

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

color-entity-row

This is a repo with Home Assistant custom ui card color-entity-row.

This card is used inside entities. It shows input_text value as a color and make it possible to change the value.

Installation

There are several ways, you can add this card to your Home Assistant.

Manual installation

Installation with HACS

If you use HACS, you can install this card with HACS (but HACS is not required, if you don't use HACS you can install this card using the steps described in the previous section)

To install this card with HACS just use the standart HACS way to install cards from the custom GitHub repository.

Configuration

When you have this card installed in your Home Assistant you can use it. Add to your lovelace ui:

      - type: custom:color-entity-row
        entity: input_text.c1
        name: Text 1
        icon: mdi:text-box

The field entity is required, name and icon are optional.

This card can work only with entities that are in domain input_text.

This card must be part of entities card. Here a full example:

title: Home
views:
  - path: default_view
    title: Home
    badges: null
    cards:
      - type: entities
        entities:
          - input_text.c1
          - input_text.c2

          - type: custom:color-entity-row
            entity: input_text.c1
            name: Text 1
            icon: mdi:text-box

          - type: custom:color-entity-row
            entity: input_text.c1
            name: Text 2
            icon: mdi:text-box-outline

          - type: custom:color-entity-row
            entity: input_text.c2