-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from basbruss/popup
Add files and python framework
- Loading branch information
Showing
17 changed files
with
415 additions
and
7 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
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
40 changes: 40 additions & 0 deletions
40
custom_components/ui_lovelace_minimalist/lovelace/advanced-dash/advanced-ui.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,40 @@ | ||
--- | ||
button_card_templates: !include_dir_merge_named "../../../custom_components/ui_lovelace_minimalist/__ui_minimalist__/ulm_templates/" | ||
|
||
title: "UI Lovelace Minimalist" | ||
theme: "minimalist-desktop" | ||
background: "var(--background-image)" | ||
views: | ||
- type: "custom:grid-layout" | ||
title: "home" | ||
icon: "mdi:home" | ||
path: "0" | ||
layout: | ||
grid-template-columns: "1fr 1fr" | ||
grid-template-rows: "min-content" | ||
grid-template-areas: | | ||
"main popup" | ||
mediaquery: | ||
"(max-width: 1100px), (orientation: portrait)": | ||
grid-template-columns: "100%" | ||
grid-template-areas: "main" | ||
cards: | ||
- !include "views/main.yaml" | ||
- !include "popup/popup-view.yaml" | ||
|
||
- type: "custom:grid-layout" | ||
title: "Livingroom" | ||
icon: "mdi:sofa" | ||
path: "Livingroom" | ||
layout: | ||
grid-template-columns: "1fr 1fr" | ||
grid-template-rows: "min-content" | ||
grid-template-areas: | | ||
"livingroom popup" | ||
mediaquery: | ||
"(max-width: 1100px), (orientation: portrait)": | ||
grid-template-columns: "100%" | ||
grid-template-areas: "livingroom" | ||
cards: | ||
- !include "views/livingroom.yaml" | ||
- !include "popup/popup-view.yaml" |
159 changes: 159 additions & 0 deletions
159
custom_components/ui_lovelace_minimalist/lovelace/advanced-dash/popup/popup.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,159 @@ | ||
--- | ||
type: "custom:state-switch" | ||
view_layout: | ||
grid-area: "popup" | ||
show: | ||
mediaquery: "(min-width: 1100px)" | ||
entity: | ||
default: "default" | ||
transition: "slide-down" | ||
transition_time: 500 | ||
states: | ||
# Devices | ||
## Lights | ||
light 1: | ||
type: "custom:button-card" | ||
template: "popup_light_brightness" | ||
variables: | ||
ulm_popup_light_entity: | ||
light 2: | ||
type: "custom:button-card" | ||
template: "popup_light_brightness" | ||
variables: | ||
ulm_popup_light_entity: | ||
light 3: | ||
type: "custom:button-card" | ||
template: "popup_light_brightness" | ||
variables: | ||
ulm_popup_light_entity: | ||
light 4: | ||
type: "custom:button-card" | ||
template: "popup_light_brightness" | ||
variables: | ||
ulm_popup_light_entity: | ||
light 5: | ||
type: "custom:button-card" | ||
template: "popup_light_brightness" | ||
variables: | ||
ulm_popup_light_entity: | ||
light 6: | ||
type: "custom:button-card" | ||
template: "popup_light_brightness" | ||
variables: | ||
ulm_popup_light_entity: | ||
light 7: | ||
type: "custom:button-card" | ||
template: "popup_light_brightness" | ||
variables: | ||
ulm_popup_light_entity: | ||
light 8: | ||
type: "custom:button-card" | ||
template: "popup_light_brightness" | ||
variables: | ||
ulm_popup_light_entity: | ||
light 9: | ||
type: "custom:button-card" | ||
template: "popup_light_brightness" | ||
variables: | ||
ulm_popup_light_entity: | ||
light 10: | ||
type: "custom:button-card" | ||
template: "popup_light_brightness" | ||
variables: | ||
ulm_popup_light_entity: | ||
|
||
## Mediaplayers | ||
mediaplayer 1: | ||
type: "custom:button-card" | ||
template: "popup_media_player_infos" | ||
variables: | ||
ulm_popup_media_player_entity: | ||
mediaplayer 2: | ||
type: "custom:button-card" | ||
template: "popup_media_player_infos" | ||
variables: | ||
ulm_popup_media_player_entity: | ||
mediaplayer 3: | ||
type: "custom:button-card" | ||
template: "popup_media_player_infos" | ||
variables: | ||
ulm_popup_media_player_entity: | ||
mediaplayer 4: | ||
type: "custom:button-card" | ||
template: "popup_media_player_infos" | ||
variables: | ||
ulm_popup_media_player_entity: | ||
mediaplayer 5: | ||
type: "custom:button-card" | ||
template: "popup_media_player_infos" | ||
variables: | ||
ulm_popup_media_player_entity: | ||
|
||
## Thermostats | ||
climate 1: | ||
type: "custom:button-card" | ||
template: "popup_thermostat_temperature" | ||
variables: | ||
ulm_popup_thermostat_entity: | ||
climate 2: | ||
type: "custom:button-card" | ||
template: "popup_thermostat_temperature" | ||
variables: | ||
ulm_popup_thermostat_entity: | ||
climate 3: | ||
type: "custom:button-card" | ||
template: "popup_thermostat_temperature" | ||
variables: | ||
ulm_popup_thermostat_entity: | ||
climate 4: | ||
type: "custom:button-card" | ||
template: "popup_thermostat_temperature" | ||
variables: | ||
ulm_popup_thermostat_entity: | ||
climate 5: | ||
type: "custom:button-card" | ||
template: "popup_thermostat_temperature" | ||
variables: | ||
ulm_popup_thermostat_entity: | ||
|
||
## Power | ||
power 1: | ||
type: "custom:button-card" | ||
template: "popup_power_outlet_stats" | ||
variables: | ||
ulm_popup_power_outlet_entity: | ||
ulm_popup_power_outlet_sensor1: | ||
ulm_popup_power_outlet_sensor2: | ||
ulm_popup_power_outlet_graph_sensor: | ||
power 2: | ||
type: "custom:button-card" | ||
template: "popup_power_outlet_stats" | ||
variables: | ||
ulm_popup_power_outlet_entity: | ||
ulm_popup_power_outlet_sensor1: | ||
ulm_popup_power_outlet_sensor2: | ||
ulm_popup_power_outlet_graph_sensor: | ||
power 3: | ||
type: "custom:button-card" | ||
template: "popup_power_outlet_stats" | ||
variables: | ||
ulm_popup_power_outlet_entity: | ||
ulm_popup_power_outlet_sensor1: | ||
ulm_popup_power_outlet_sensor2: | ||
ulm_popup_power_outlet_graph_sensor: | ||
power 4: | ||
type: "custom:button-card" | ||
template: "popup_power_outlet_stats" | ||
variables: | ||
ulm_popup_power_outlet_entity: | ||
ulm_popup_power_outlet_sensor1: | ||
ulm_popup_power_outlet_sensor2: | ||
ulm_popup_power_outlet_graph_sensor: | ||
power 5: | ||
type: "custom:button-card" | ||
template: "popup_power_outlet_stats" | ||
variables: | ||
ulm_popup_power_outlet_entity: | ||
ulm_popup_power_outlet_sensor1: | ||
ulm_popup_power_outlet_sensor2: | ||
ulm_popup_power_outlet_graph_sensor: |
34 changes: 34 additions & 0 deletions
34
custom_components/ui_lovelace_minimalist/lovelace/advanced-dash/views/living_room.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,34 @@ | ||
--- | ||
type: "custom:layout-card" | ||
layout_type: "custom:grid-layout" | ||
layout: | ||
grid-template-rows: "min-content" | ||
grid-template-columns: "1fr 1fr 1fr" | ||
grid-template-areas: > | ||
"title title title" | ||
"card1 card1 card1" | ||
"card2 card3 card4" | ||
"card5 card6 ." | ||
"card7 card8 card9" | ||
"card10 card11 card12" | ||
"card13 card14 card15" | ||
"card16 card17 card18" | ||
mediaquery: | ||
# Mobile | ||
"(max-width: 800px)": | ||
grid-template-columns: "1fr 1fr" | ||
grid-template-areas: | | ||
"title title" | ||
"card1 card1" | ||
"card2 card3" | ||
"card4 card5" | ||
"card6 card7" | ||
"card8 card9" | ||
"card10 card11" | ||
"card12 card13" | ||
"card14 card15" | ||
"card16 card17" | ||
"card18 card19" | ||
view_layout: | ||
grid-area: "livingroom" | ||
cards: |
30 changes: 30 additions & 0 deletions
30
custom_components/ui_lovelace_minimalist/lovelace/advanced-dash/views/main.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 @@ | ||
--- | ||
type: "custom:layout-card" | ||
layout_type: "custom:grid-layout" | ||
layout: | ||
# Tablet portrait | ||
grid-template-columns: "1fr 1fr 1fr 1fr 1fr 1fr" | ||
grid-template-areas: | | ||
"text text text weather weather weather" | ||
"person person person weather weather weather" | ||
"welcome welcome welcome welcome welcome welcome" | ||
"title1 title1 title1 title1 title1 title1" | ||
"card1 card1 card2 card2 card3 card3" | ||
"title2 title2 title2 title2 title2 title2" | ||
"card4 card4 card5 card5 card6 card6" | ||
mediaquery: | ||
# Mobile | ||
"(max-width: 800px)": | ||
grid-template-columns: "1fr 1fr" | ||
grid-template-areas: | | ||
"welcome welcome" | ||
"person person" | ||
"title1 title1" | ||
"card1 card2" | ||
"card3 card4" | ||
"title2 title2" | ||
"card5 card6" | ||
"card7 card8" | ||
view_layout: | ||
grid-area: "main" | ||
cards: |
Oops, something went wrong.