-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh: added template as dynamic code and added a announcement bar
- Loading branch information
1 parent
5f1af58
commit 739221f
Showing
19 changed files
with
302 additions
and
69 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
dashboard/HaCasa/templates/custom_card_camera/custom_card_camera.yaml
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 @@ | ||
custom_card_camera: | ||
show_state: true | ||
show_label: true | ||
label: Live | ||
icon: mdi:record | ||
show_icon: true | ||
styles: | ||
grid: | ||
- grid-template-areas: | | ||
's i l' | ||
'n n n' | ||
'camera camera camera' | ||
- grid-template-rows: min-content min-content min-content | ||
- row-gap: 3px | ||
card: | ||
- padding: 20px | ||
name: | ||
- justify-self: start | ||
- font-family: montserrat | ||
- padding-bottom: 20px | ||
- font-size: 12px | ||
- font-weight: 500px | ||
- color: var(--color-dark-gray) | ||
label: | ||
- font-family: montserrat | ||
- font-weight: 500 | ||
icon: | ||
- width: 15px | ||
- color: var(--color-red) | ||
state: | ||
- justify-self: start | ||
- font-family: montserrat | ||
- font-size: 1.5rem | ||
- font-weight: 600 | ||
custom_fields: | ||
camera: | ||
card: | ||
show_state: false | ||
show_name: false | ||
camera_view: auto | ||
type: picture-entity | ||
entity: camera.wifi_videodeurbel |
30 changes: 30 additions & 0 deletions
30
dashboard/HaCasa/templates/custom_card_chip/custom_card_chip.yaml
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,30 @@ | ||
custom_card_chip: | ||
show_name: false | ||
show_state: true | ||
show_label: false | ||
styles: | ||
grid: | ||
- grid-template-areas: | | ||
'i s' | ||
- grid-template-columns: min-content min-content | ||
- grid-template-rows: 1fr | ||
- column-gap: 0.3rem | ||
icon: | ||
- width: 18px | ||
img_cell: | ||
- width: 18px | ||
- justify-self: start | ||
state: | ||
- font-family: montserrat | ||
- font-weight: 600 | ||
- font-size: 10px | ||
card: | ||
- border-radius: 12px | ||
- width: auto | ||
- height: auto | ||
- border-radius: 8px | ||
- padding: 10px | ||
- margin-bottom: 10px | ||
state: | ||
- value: 'on' | ||
icon: fapro:door-open |
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
--- | ||
hide_table_of_contents: true | ||
title: Security Card | ||
--- | ||
|
||
The Alarm Card is used for enabling or disabling your alarm. It's configured to set the `Arm Away`, `Arm Home` or `Disarmed`. | ||
|
||
There is a small spinning icon animation when the alarm is enabled. | ||
|
||
 | ||
 | ||
|
||
## Template | ||
|
||
import CodeBlock from '@theme/CodeBlock'; | ||
import MyComponentSource from '!!raw-loader!/dashboard/HaCasa/templates/custom_card_security/custom_card_security.yaml'; | ||
|
||
<details> | ||
<summary>Template</summary> | ||
<CodeBlock language="yaml" title="/dashboard/HaCasa/templates/custom_card_security/custom_card_security.yaml">{MyComponentSource}</CodeBlock> | ||
</details> |
This file was deleted.
Oops, something went wrong.
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,17 @@ | ||
--- | ||
hide_table_of_contents: true | ||
title: Camera Card | ||
--- | ||
|
||
The `Camera Card` is a fairly easy card. Just shows a live camera view and the state. | ||
|
||
 | ||
 | ||
|
||
import CodeBlock from '@theme/CodeBlock'; | ||
import MyComponentSource from '!!raw-loader!/dashboard/HaCasa/templates/custom_card_camera/custom_card_camera.yaml'; | ||
|
||
<details> | ||
<summary>Template</summary> | ||
<CodeBlock language="yaml" title="/dashboard/HaCasa/templates/custom_card_camera/custom_card_camera.yaml">{MyComponentSource}</CodeBlock> | ||
</details> |
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
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,25 @@ | ||
--- | ||
icon: flame | ||
hide_table_of_contents: true | ||
title: Climate | ||
--- | ||
The `climate-card`, used for a climate entity, displays the current temperature (if available) and the set temperature. With the buttons on the right the temperature can be set higher or lower. | ||
|
||
 | ||
 | ||
|
||
## Usage | ||
|
||
```yaml | ||
type: custom:button-card | ||
template: custom_card_climate | ||
entity: climate.hvac | ||
``` | ||
import CodeBlock from '@theme/CodeBlock'; | ||
import MyComponentSource from '!!raw-loader!/dashboard/HaCasa/templates/custom_card_climate/custom_card_climate.yaml'; | ||
<details> | ||
<summary>Template</summary> | ||
<CodeBlock language="yaml" title="/dashboard/HaCasa/templates/custom_card_climate/custom_card_climate.yaml">{MyComponentSource}</CodeBlock> | ||
</details> |
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.