diff --git a/lovelace/batteries.yaml b/lovelace/batteries.yaml index 1b403d6..b7e9176 100644 --- a/lovelace/batteries.yaml +++ b/lovelace/batteries.yaml @@ -1,11 +1,15 @@ -- type: 'custom:button-card' +- view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_title name: Batteries - type: "horizontal-stack" cards: - - type: 'custom:button-card' + - view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_battery entity: sensor.iphone_battery_level variables: @@ -14,7 +18,9 @@ ulm_card_battery_battery_level_warning: 80 ulm_card_battery_name: iPhone - - type: 'custom:button-card' + - view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_battery entity: sensor.ipad_battery_level variables: diff --git a/lovelace/climate.yaml b/lovelace/climate.yaml index fc87aca..9e71630 100644 --- a/lovelace/climate.yaml +++ b/lovelace/climate.yaml @@ -1,13 +1,19 @@ -- type: 'custom:button-card' +- view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_title name: Climate -- type: custom:button-card +- view_layout: + grid-area: "card1" + type: custom:button-card template: custom_card_httpedo13_sun -- type: "custom:button-card" +- view_layout: + grid-area: "card1" + type: "custom:button-card" template: card_weather entity: weather.dark_sky variables: @@ -19,7 +25,9 @@ fade: true -- type: 'custom:button-card' +- view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_graph entity: sensor.temperature_kai_temperature variables: @@ -34,13 +42,17 @@ - type: "horizontal-stack" cards: - - type: 'custom:button-card' + - view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_generic entity: sensor.temperature_kai_humidity variables: ulm_card_generic_name: Humidity - - type: 'custom:button-card' + - view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_generic entity: sensor.temperature_kai_pressure variables: diff --git a/lovelace/energy.yaml b/lovelace/energy.yaml index 8629107..4a296f6 100644 --- a/lovelace/energy.yaml +++ b/lovelace/energy.yaml @@ -1,9 +1,13 @@ -- type: 'custom:button-card' +- view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_title name: Energy -- type: 'custom:button-card' +- view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_graph entity: sensor.schreibtisch_current_consumption variables: @@ -16,14 +20,18 @@ - type: "horizontal-stack" cards: - - type: 'custom:button-card' + - view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_generic entity: sensor.schreibtisch_today_s_consumption variables: ulm_card_generic_name: Today ulm_card_generic_icon: "mdi:home-lightning-bolt" - - type: 'custom:button-card' + - view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_generic entity: sensor.schreibtisch_total_consumption variables: diff --git a/lovelace/lights.yaml b/lovelace/lights.yaml index 56f513d..3a13f96 100644 --- a/lovelace/lights.yaml +++ b/lovelace/lights.yaml @@ -1,19 +1,27 @@ -- type: 'custom:button-card' +- view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_title name: Lights - type: "horizontal-stack" cards: - - type: 'custom:button-card' + - view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_light_slider_collapse variables: ulm_card_light_slider_collapse_name: Indirect ulm_card_light_enable_collapse: false ulm_card_light_name: Indirect + ulm_input_select_option: light indirect + ulm_input_select: input_select.minimalist_ui_switch entity: light.all_indirect - - type: 'custom:button-card' + - view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_light_slider_collapse variables: ulm_card_light_slider_collapse_name: Direct @@ -22,7 +30,9 @@ entity: light.all_direct -- type: 'custom:button-card' +- view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_input_boolean entity: switch.circadian_lighting_circadian_lighting variables: diff --git a/lovelace/nas.yaml b/lovelace/nas.yaml index 87e3295..5b35e6c 100644 --- a/lovelace/nas.yaml +++ b/lovelace/nas.yaml @@ -1,11 +1,15 @@ -- type: 'custom:button-card' +- view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_title name: NAS - type: "horizontal-stack" cards: - - type: 'custom:button-card' + - view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_script variables: ulm_card_script_title: WOL @@ -16,7 +20,9 @@ service_data: entity_id: switch.server - - type: 'custom:button-card' + - view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_binary_sensor variables: ulm_card_binary_sensor_alert: true diff --git a/lovelace/popup.yaml b/lovelace/popup.yaml new file mode 100644 index 0000000..fb6bec9 --- /dev/null +++ b/lovelace/popup.yaml @@ -0,0 +1,16 @@ +- type: custom:state-switch + view_layout: + grid-area: popup + show: + mediaquery: "(min-width: 1100px)" + entity: input_select.minimalist_ui + default: default + transition: slide-down + transition_time: 500 + states: + ## Lights + light indirect: + type: "custom:button-card" + template: "popup_light_brightness" + variables: + ulm_popup_light_entity: lights.all_indirect \ No newline at end of file diff --git a/lovelace/welcome.yaml b/lovelace/welcome.yaml index 84b71a5..3d7d21d 100644 --- a/lovelace/welcome.yaml +++ b/lovelace/welcome.yaml @@ -1,7 +1,11 @@ -- type: 'custom:button-card' +- view_layout: + grid-area: "card1" + type: 'custom:button-card' template: card_title name: Home Assistant -- type: "custom:button-card" +- view_layout: + grid-area: "card1" + type: "custom:button-card" template: "card_welcome_scenes" triggers_update: input_boolean.welcome_collapse entity: input_boolean.welcome_collapse diff --git a/packages/homeassistant/lovelace.yaml b/packages/homeassistant/lovelace.yaml index 5805482..35fcfac 100644 --- a/packages/homeassistant/lovelace.yaml +++ b/packages/homeassistant/lovelace.yaml @@ -19,4 +19,9 @@ lovelace: - url: /hacsfiles/simple-weather-card/simple-weather-card-bundle.js type: module - url: /hacsfiles/home-assistant-sun-card/home-assistant-sun-card.js - type: module \ No newline at end of file + type: module + - url: /hacsfiles/lovelace-layout-card/layout-card.js + type: module + - url: /hacsfiles/lovelace-state-switch/state-switch.js + type: module + \ No newline at end of file diff --git a/packages/minimalist/custom_entities.yaml b/packages/minimalist/custom_entities.yaml index 75b321b..c273303 100644 --- a/packages/minimalist/custom_entities.yaml +++ b/packages/minimalist/custom_entities.yaml @@ -1,3 +1,11 @@ input_boolean: welcome_collapse: - name: welcome_collapse \ No newline at end of file + name: welcome_collapse + + +input_select: + minimalist_ui_switch: + name: Select popup/view + options: + - light.all_indirect + - light.all_direct \ No newline at end of file diff --git a/ui-lovelace.yaml b/ui-lovelace.yaml index 089828e..6ece867 100644 --- a/ui-lovelace.yaml +++ b/ui-lovelace.yaml @@ -34,4 +34,8 @@ views: - type: "vertical-stack" cards: - !include lovelace/nas.yaml \ No newline at end of file + !include lovelace/nas.yaml + + - type: "vertical-stack" + cards: + !include lovelace/popup.yaml \ No newline at end of file