Skip to content
Control any light entity through lovelace for Home Assistant
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.eslintrc.yaml update linter errors Feb 19, 2019
.gitignore fix for ha v0.88; moved to rollup Feb 19, 2019
.nvmrc fix for ha v0.88; moved to rollup Feb 19, 2019
README.md fixed css issue; added booleans fo inputs Mar 4, 2019
custom_updater.json
light-entity-card.js automated commit 04/03/2019 11:49:37 Mar 4, 2019
main.js automated commit 04/03/2019 11:49:37 Mar 4, 2019
package.json fixed css issue; added booleans fo inputs Mar 4, 2019
rollup.config.js
style.js fixed css issue; added booleans fo inputs Mar 4, 2019

README.md

Light Entity Card

Control any light/switch entity through lovelace

Features

  • Works on any light and switch based entity
  • Toggle on/off
  • HS Color wheel
  • Color temperature and white value support
  • Support for configured language
  • Compact card support for grouped entities
  • use persist_features: true to always show entity features
  • use effects_list to add custom effects list or use input_select entity
  • always show or hide header and each input

Track Updates

This custom card can be tracked with the help of custom-updater.

In your configuration.yaml

custom_updater:
  card_urls:
    - https://raw.githubusercontent.com/ljmerza/light-entity-card/master/custom_updater.json

Minimal Usage

- type: custom:light-entity-card
  entity: light.downstairs

Options

Name Type Requirement Default value Description
type string Required custom:light-entity-card
entity string Required The entity name of the light entity to control
group boolean Optional false Compacts card
colorWheel boolean Optional true Show color-picker if entity has support
persist_features boolean Optional false always show entity features
effects_list list string boolean
header boolean string Optional
brightness boolean Optional true show brightness slider if available
color_temp boolean Optional true show color temp slider if available
white_value boolean Optional true show white value slider if available
color_picker boolean Optional true show color picker wheel if available

Configuration

Download light-entity-card.js from the latest release and upload it your /www folder of your Home Assistant config directory.

In your ui-lovelace.yaml

resources:
  - url: /local/light-entity-card.js?track=true
    type: js

Example lovelace configurations:

views:
  - type: custom:light-entity-card
    entity: light.downstairs
views:
  - type: custom:light-entity-card
    entity: light.downstairs
    effects_list:
      - effect1
      - effect2
views:
  - type: custom:light-entity-card
    entity: light.downstairs
    effects_list: input_select.custom_effect_list
views:
  - type: custom:light-entity-card
    entity: light.downstairs
    group: true
    persist_features: true
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.