-
-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b39bc73
commit 9405da9
Showing
2 changed files
with
77 additions
and
82 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
86 changes: 44 additions & 42 deletions
86
custom_components/dwains_dashboard/lovelace/views/main/rooms/room/addon.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 |
---|---|---|
@@ -1,43 +1,45 @@ | ||
# dwains_dashboard | ||
|
||
#Room addon view | ||
|
||
{% for room in _dd_config.rooms %} | ||
{% if room["addons"] %} | ||
{% for addon in room["addons"] %} | ||
- title: {{ addon["name"] }} | ||
path: room_{{ room["name"]|lower|replace("'", "_")|replace(" ", "_") }}_addon_{{ addon["name"]|lower|replace("'", "_")|replace(" ", "_") }} | ||
panel: true | ||
visible: false | ||
cards: | ||
- type: custom:dwains-wrapper-card | ||
css: | | ||
max-width: 1465px; | ||
padding-bottom: 50px; | ||
margin: 0 auto; | ||
font-family: "Open Sans", sans-serif !important; | ||
card: | ||
type: vertical-stack | ||
cards: | ||
#Header | ||
- type: custom:dwains-header-card | ||
title: {{ addon["name"] }} | ||
subtitle: {{ room["name"] }} | ||
navigation_path: room_{{ room["name"]|lower|replace("'", "_")|replace(" ", "_") }} | ||
icon: {{ _dd_icons.menu_back|default('mdi:chevron-left') }} | ||
#Start for a custom more page | ||
- type: custom:dwains-wrapper-card | ||
css: | | ||
padding: 11px; | ||
card: | ||
type: vertical-stack | ||
cards: | ||
!include | ||
- ../../../../../../../{{ addon["path"] }} | ||
- name: {{ addon["name"] }} | ||
{% if addon["data"] %} | ||
data: '{{ addon["data"]|tojson }}' | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
# dwains_dashboard | ||
|
||
#Room addon view | ||
|
||
{% for room in _dd_config.rooms %} | ||
{% if room["addons"] %} | ||
{% for addon in room["addons"] %} | ||
- title: {{ addon["name"] }} | ||
path: room_{{ room["name"]|lower|replace("'", "_")|replace(" ", "_") }}_addon_{{ addon["name"]|lower|replace("'", "_")|replace(" ", "_") }} | ||
panel: true | ||
visible: false | ||
cards: | ||
- type: custom:dwains-wrapper-card | ||
css: | | ||
max-width: 1465px; | ||
padding-bottom: 50px; | ||
margin: 0 auto; | ||
font-family: "Open Sans", sans-serif !important; | ||
card: | ||
type: vertical-stack | ||
cards: | ||
{% if addon["show_header"] != 'false' %} | ||
#Header | ||
- type: custom:dwains-header-card | ||
title: {{ addon["name"] }} | ||
subtitle: {{ room["name"] }} | ||
navigation_path: room_{{ room["name"]|lower|replace("'", "_")|replace(" ", "_") }} | ||
icon: {{ _dd_icons.menu_back|default('mdi:chevron-left') }} | ||
{% endif %} | ||
#Start for a custom more page | ||
- type: custom:dwains-wrapper-card | ||
css: | | ||
padding: 11px; | ||
card: | ||
type: vertical-stack | ||
cards: | ||
!include | ||
- ../../../../../../../{{ addon["path"] }} | ||
- name: {{ addon["name"] }} | ||
{% if addon["data"] %} | ||
data: '{{ addon["data"]|tojson }}' | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
{% endfor %} |