From dadae38bbfbd5f7351d16b976a38a097990102c0 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Wed, 29 Apr 2020 01:23:51 +0300 Subject: [PATCH] Adjust popup styles --- .../cards/titanium_card.yaml | 203 +++++++++--------- config/lovelace/popup_cards.yaml | 2 + 2 files changed, 101 insertions(+), 104 deletions(-) diff --git a/config/lovelace/decluttering_templates/cards/titanium_card.yaml b/config/lovelace/decluttering_templates/cards/titanium_card.yaml index 89d0717..d9907eb 100644 --- a/config/lovelace/decluttering_templates/cards/titanium_card.yaml +++ b/config/lovelace/decluttering_templates/cards/titanium_card.yaml @@ -10,112 +10,107 @@ titanium_card: icon: "[[icon]]" entities: - switch.titanium_power - - type: conditional - conditions: - - entity: switch.titanium_power - state: "on" - card: - type: vertical-stack - cards: - - type: entities - entities: - - sensor.titanium_uptime - - binary_sensor.titanium_playing - - sensor.titanium_volume - - type: custom:fold-entity-row - head: - type: custom:decluttering-card - template: percentage_card - variables: - - name: Memory - - entity: sensor.titanium_memory_used_percent - - icon: mdi:memory - - orange: 70 - - red: 85 - entities: - - entity: sensor.titanium_memory_used - name: Memory used - - entity: sensor.titanium_memory_available - name: Memory available - - entity: sensor.titanium_memory_total - name: Memory total + - type: vertical-stack + cards: + - type: entities + entities: + - sensor.titanium_uptime + - binary_sensor.titanium_playing + - sensor.titanium_volume + - type: custom:fold-entity-row + head: + type: custom:decluttering-card + template: percentage_card + variables: + - name: Memory + - entity: sensor.titanium_memory_used_percent + - icon: mdi:memory + - orange: 70 + - red: 85 + entities: + - entity: sensor.titanium_memory_used + name: Memory used + - entity: sensor.titanium_memory_available + name: Memory available + - entity: sensor.titanium_memory_total + name: Memory total - - type: custom:fold-entity-row - head: - type: custom:decluttering-card - template: percentage_card - variables: - - name: "C: Drive" - - entity: sensor.titanium_c_usage - - icon: mdi:harddisk - - orange: 70 - - red: 85 - entities: - - entity: sensor.titanium_c_used_space - name: "C: Drive used" - - entity: sensor.titanium_c_free_space - name: "C: Drive available" - - entity: sensor.titanium_c_total_space - name: "C: Drive total" + - type: custom:fold-entity-row + head: + type: custom:decluttering-card + template: percentage_card + variables: + - name: "C: Drive" + - entity: sensor.titanium_c_usage + - icon: mdi:harddisk + - orange: 70 + - red: 85 + entities: + - entity: sensor.titanium_c_used_space + name: "C: Drive used" + - entity: sensor.titanium_c_free_space + name: "C: Drive available" + - entity: sensor.titanium_c_total_space + name: "C: Drive total" - - type: horizontal-stack - cards: - - type: custom:button-card - template: default - entity: script.titanium_lock - name: Lock - icon: mdi:lock - tap_action: - action: toggle - - type: custom:button-card - template: default - entity: script.titanium_vol_mute - name: Mute - icon: mdi:volume-mute - tap_action: - action: toggle - - type: custom:button-card - template: default - entity: script.titanium_set_volume - name: Set volume - icon: mdi:volume-medium - tap_action: - action: toggle + - type: horizontal-stack + cards: + - type: custom:button-card + template: default + entity: script.titanium_lock + name: Lock + icon: mdi:lock + tap_action: + action: toggle + - type: custom:button-card + template: default + entity: script.titanium_vol_mute + name: Mute + icon: mdi:volume-mute + tap_action: + action: toggle + - type: custom:button-card + template: default + entity: script.titanium_set_volume + name: Set volume + icon: mdi:volume-medium + tap_action: + action: toggle - - type: horizontal-stack - cards: - - type: custom:button-card - template: default - entity: script.titanium_displays_on - name: Displays on - icon: mdi:monitor-dashboard - tap_action: - action: toggle - - type: custom:button-card - template: default - entity: script.titanium_displays_off - name: Displays off - icon: mdi:monitor-off - tap_action: - action: toggle - - type: custom:button-card - template: default - entity: script.titanium_refresh - name: Refresh - icon: mdi:refresh - tap_action: - action: toggle + - type: horizontal-stack + cards: + - type: custom:button-card + template: default + entity: script.titanium_displays_on + name: Displays on + icon: mdi:monitor-dashboard + tap_action: + action: toggle + - type: custom:button-card + template: default + entity: script.titanium_displays_off + name: Displays off + icon: mdi:monitor-off + tap_action: + action: toggle + - type: custom:button-card + template: default + entity: script.titanium_refresh + name: Refresh + icon: mdi:refresh + tap_action: + action: toggle - - type: horizontal-stack - cards: - - type: picture-entity - aspect_ratio: 50% - entity: camera.titanium_screen_1 - show_name: false - show_state: false + - type: horizontal-stack + cards: + - type: picture-entity + aspect_ratio: 50% + entity: camera.titanium_screen_1 + show_name: false + show_state: false - - type: picture-entity - aspect_ratio: 50% - entity: camera.titanium_screen_0 - show_name: false - show_state: false + - type: picture-entity + aspect_ratio: 50% + entity: camera.titanium_screen_0 + show_name: false + show_state: false diff --git a/config/lovelace/popup_cards.yaml b/config/lovelace/popup_cards.yaml index 3ec7e09..57ac4f5 100644 --- a/config/lovelace/popup_cards.yaml +++ b/config/lovelace/popup_cards.yaml @@ -5,6 +5,7 @@ binary_sensor.house_mode: border-radius: 0.8em opacity: 0.95 margin-bottom: 200px + min-width: 400px card: type: entities entities: @@ -18,6 +19,7 @@ sensor.synology_dsm_type_volume_1: opacity: 0.95 margin-bottom: 0 height: 80% + min-width: 400px card: type: custom:decluttering-card template: platinum_card