Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.2 KB

info.md

File metadata and controls

43 lines (35 loc) · 1.2 KB

demo

Usage

After installation you will need to add the resource in lovelace.yaml:

resources:
  - type: module
    url: /local/community/lovelace-light-with-profiles/light-with-profiles.js

If you then like the card to be able to show wich profiles are active (change color) you will need to add your profiles defined in light_profiles.csv in your lovelace.yaml:

light_profiles:
  bright: '0.457,0.408,254'
  dimmed: '0.457,0.408,77'
  nightlight: '0.509,0.411,1'

Now you're ready to add the custom card:

type: 'custom:light-with-profiles'
title: Lys
entities:
  - entity: light.spisestuen
    name: 'Override Light Name'
    profiles:
      - name: bright
        icon: 'mdi:brightness-5'
      - name: dimmed
        icon: 'mdi:brightness-4'
      - name: nightlight
        icon: 'mdi:brightness-3'
  ...
  - entity: light.entreen
  - entity: light.kokken

Buy Me A Coffee