-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding INFO.md for better HACS support
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
![demo](./demo.gif) | ||
|
||
## Usage | ||
|
||
After installation you will need to add the resource in `lovelace.yaml`: | ||
|
||
```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`: | ||
|
||
```yaml | ||
light_profiles: | ||
bright: '0.457,0.408,254' | ||
dimmed: '0.457,0.408,77' | ||
nightlight: '0.509,0.411,1' | ||
``` | ||
|
||
Now your ready to add the custom card: | ||
|
||
```yaml | ||
type: 'custom:light-with-profiles' | ||
title: Lys | ||
entities: | ||
- entity: light.spisestuen | ||
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 | ||
``` | ||
|
||
--- | ||
<a href="https://www.buymeacoffee.com/tcarlsen" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/white_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a> |