Skip to content

nboissel/light-entity-card

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Light Entity Card

Control any light/switch entity through lovelace

GitHub Release License Project Maintenance hacs_badge

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

Installation through HACS


Add the following to resources in your lovelace config:

resources:
  - url: /community_plugin/light-entity-card/light-entity-card.js
    type: js

Configurations:


type: custom:light-entity-card
entity: light.downstairs
type: custom:light-entity-card
entity: light.downstairs
effects_list:
  - effect1
  - effect2
type: custom:light-entity-card
entity: light.downstairs
effects_list: input_select.custom_effect_list
type: custom:light-entity-card
entity: light.downstairs
group: true

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
color_wheel boolean Optional true Show color-picker if entity has support
persist_features boolean Optional false always show entity features
effects_list list/string/boolean Optional custom list of effects, an input_select entity, or set false to always hide
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
full_width_sliders boolean Optional false makes slider the full width of card
brightness_icon string Optional weather-sunny change the brightness slider icon
white_icon string Optional file-word-box change the white slider icon
temperature_icon string Optional thermometer change the temperature slider icon
show_slider_percent boolean Optional false show percent next to sliders
smooth_color_wheel boolean Optional false smooth out color wheel for more colors

Enjoy my card? Help me out for a couple of 🍻 or a ☕!

coffee

About

Control any light or switch entity

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%