From a111c98669cd02bb6ec2c12a2e8073d7e7bf0210 Mon Sep 17 00:00:00 2001 From: dmatik Date: Thu, 15 Feb 2024 08:26:51 +0200 Subject: [PATCH] Adjusting cards to take the name from entity friendly name --- .../templates/cards/card_ac/card_ac.yaml | 26 ++++- .../templates/cards/card_pc/card_pc.yaml | 20 +++- .../cards/card_printer/card_printer.yaml | 20 +++- .../cards/card_switcher/card_switcher.yaml | 22 +++- .../lovelace_tiles/views/view_basement.yaml | 2 +- .../lovelace_tiles/views/view_bedroom.yaml | 2 +- .../lovelace_tiles/views/view_climate.yaml | 12 +- .../lovelace_tiles/views/view_floor_2.yaml | 2 +- .../lovelace_tiles/views/view_home.yaml | 6 +- .../views/view_homeassistant.yaml | 105 ++++++++++-------- .../lovelace_tiles/views/view_kfir_room.yaml | 2 +- .../views/view_living_room.yaml | 2 +- .../lovelace_tiles/views/view_ronen_room.yaml | 2 +- .../lovelace_tiles/views/view_work_room.yaml | 6 +- .../views_wallpanel/view_basement.yaml | 8 +- .../views_wallpanel/view_climate.yaml | 15 +-- .../views_wallpanel/view_floor_2.yaml | 8 +- .../views_wallpanel/view_home.yaml | 6 +- .../hass_agent/switches_hass_agent.yaml | 1 + 19 files changed, 171 insertions(+), 96 deletions(-) diff --git a/homeassistant/config/lovelace_tiles/templates/cards/card_ac/card_ac.yaml b/homeassistant/config/lovelace_tiles/templates/cards/card_ac/card_ac.yaml index 2c28fb7e..26f26dcb 100644 --- a/homeassistant/config/lovelace_tiles/templates/cards/card_ac/card_ac.yaml +++ b/homeassistant/config/lovelace_tiles/templates/cards/card_ac/card_ac.yaml @@ -6,8 +6,7 @@ card_ac_buttons: ulm_card_ac_entity: climate.example ulm_card_ac_fan_mode_sensor: sensor.example #ulm_card_ac_curr_temp_sensor: sensor.example - x_ulm_card_ac_name: 'AC' - ulm_card_ac_display_name: '' + x_ulm_card_ac_name: null styles: card: - border-radius: "var(--ha-card-border-radius,12px);" @@ -23,7 +22,15 @@ card_ac_buttons: item1: card: entity: '[[[ return variables.ulm_card_ac_entity ]]]' - name: '[[[ return variables.x_ulm_card_ac_name ]]]' + #name: '[[[ return variables.x_ulm_card_ac_name ]]]' + name: | + [[[ + if (variables.x_ulm_card_ac_name != null) { + return variables.x_ulm_card_ac_name; + } else { + return states[variables.ulm_card_ac_entity].attributes.friendly_name; + } + ]]] template: - ac_text_info variables: @@ -108,8 +115,7 @@ card_ac_buttons_with_temp: ulm_card_ac_entity: climate.example ulm_card_ac_fan_mode_sensor: sensor.example #ulm_card_ac_curr_temp_sensor: sensor.example - x_ulm_card_ac_name: 'AC' - ulm_card_ac_display_name: '' + x_ulm_card_ac_name: null styles: card: - border-radius: "var(--ha-card-border-radius,12px);" @@ -125,7 +131,15 @@ card_ac_buttons_with_temp: item1: card: entity: '[[[ return variables.ulm_card_ac_entity ]]]' - name: '[[[ return variables.x_ulm_card_ac_name ]]]' + #name: '[[[ return variables.x_ulm_card_ac_name ]]]' + name: | + [[[ + if (variables.x_ulm_card_ac_name != null) { + return variables.x_ulm_card_ac_name; + } else { + return states[variables.ulm_card_ac_entity].attributes.friendly_name; + } + ]]] template: - ac_text_info variables: diff --git a/homeassistant/config/lovelace_tiles/templates/cards/card_pc/card_pc.yaml b/homeassistant/config/lovelace_tiles/templates/cards/card_pc/card_pc.yaml index 36a58fd4..1d032226 100644 --- a/homeassistant/config/lovelace_tiles/templates/cards/card_pc/card_pc.yaml +++ b/homeassistant/config/lovelace_tiles/templates/cards/card_pc/card_pc.yaml @@ -1,13 +1,29 @@ card_pc: variables: ulm_card_pc_entity: '[[[ return entity.entity_id ]]]' - x_ulm_card_pc_name: '[[[ return variables.x_ulm_card_pc_name ]]]' + #x_ulm_card_pc_name: '[[[ return variables.x_ulm_card_pc_name ]]]' + x_ulm_card_pc_name: | + [[[ + if (variables.x_ulm_card_pc_name != null) { + return variables.x_ulm_card_pc_name; + } else { + return entity.attributes.friendly_name; + } + ]]] template: - 'icon_info_bg' - 'blue_on' - 'ulm_language_variables' - 'popup_pc' - name: '[[[ return variables.x_ulm_card_pc_name ]]]' + #name: '[[[ return variables.x_ulm_card_pc_name ]]]' + name: | + [[[ + if (variables.x_ulm_card_pc_name != null) { + return variables.x_ulm_card_pc_name; + } else { + return entity.attributes.friendly_name; + } + ]]] icon: 'mdi:desktop-classic' label: |- [[[ diff --git a/homeassistant/config/lovelace_tiles/templates/cards/card_printer/card_printer.yaml b/homeassistant/config/lovelace_tiles/templates/cards/card_printer/card_printer.yaml index 2a52ae1e..6966aacd 100644 --- a/homeassistant/config/lovelace_tiles/templates/cards/card_printer/card_printer.yaml +++ b/homeassistant/config/lovelace_tiles/templates/cards/card_printer/card_printer.yaml @@ -1,14 +1,30 @@ card_printer: variables: ulm_card_printer_entity: '[[[ return entity.entity_id ]]]' - x_ulm_card_printer_name: '[[[ return variables.x_ulm_card_printer_name ]]]' + #x_ulm_card_printer_name: '[[[ return variables.x_ulm_card_printer_name ]]]' + x_ulm_card_printer_name: | + [[[ + if (variables.x_ulm_card_printer_name != null) { + return variables.x_ulm_card_printer_name; + } else { + return entity.attributes.friendly_name; + } + ]]] template: - 'icon_info_bg' - 'ulm_language_variables' - 'popup_printer' #- 'badge_notification_alt' icon: 'mdi:printer-wireless' - name: '[[[ return variables.x_ulm_card_printer_name ]]]' + #name: '[[[ return variables.x_ulm_card_printer_name ]]]' + name: | + [[[ + if (variables.x_ulm_card_printer_name != null) { + return variables.x_ulm_card_printer_name; + } else { + return entity.attributes.friendly_name; + } + ]]] label: |- [[[ if (entity.state === "on") { diff --git a/homeassistant/config/lovelace_tiles/templates/cards/card_switcher/card_switcher.yaml b/homeassistant/config/lovelace_tiles/templates/cards/card_switcher/card_switcher.yaml index d3898831..e62a20d6 100644 --- a/homeassistant/config/lovelace_tiles/templates/cards/card_switcher/card_switcher.yaml +++ b/homeassistant/config/lovelace_tiles/templates/cards/card_switcher/card_switcher.yaml @@ -2,7 +2,7 @@ card_switcher: template: - ulm_language_variables variables: - x_ulm_card_switcher_name: "" + x_ulm_card_switcher_name: null ulm_card_switcher_icon: "" ulm_card_switcher_entity: "" ulm_card_switcher_timer_script: "" @@ -33,7 +33,15 @@ card_switcher: ulm_card_switcher_timer_minutes: '[[[ return variables.ulm_card_switcher_timer_minutes ]]]' ulm_card_switcher_timer_script: '[[[ return variables.ulm_card_switcher_timer_script ]]]' ulm_card_switcher_auto_off: '[[[ return variables.ulm_card_switcher_auto_off ]]]' - x_ulm_card_switcher_name: '[[[ return variables.x_ulm_card_switcher_name ]]]' + #x_ulm_card_switcher_name: '[[[ return variables.x_ulm_card_switcher_name ]]]' + x_ulm_card_switcher_name: | + [[[ + if (variables.x_ulm_card_switcher_name != null) { + return variables.x_ulm_card_switcher_name; + } else { + return states[variables.ulm_card_switcher_entity].attributes.friendly_name; + } + ]]] ulm_card_switcher_icon: '[[[ return variables.ulm_card_switcher_icon ]]]' type: "custom:button-card" template: @@ -42,7 +50,15 @@ card_switcher: - "switcher" - "popup_switcher" entity: "[[[ return variables.ulm_card_switcher_entity ]]]" - name: "[[[ return variables.x_ulm_card_switcher_name ]]]" + #name: "[[[ return variables.x_ulm_card_switcher_name ]]]" + name: | + [[[ + if (variables.x_ulm_card_switcher_name != null) { + return variables.x_ulm_card_switcher_name; + } else { + return states[variables.ulm_card_switcher_entity].attributes.friendly_name; + } + ]]] item2: card: type: "custom:button-card" diff --git a/homeassistant/config/lovelace_tiles/views/view_basement.yaml b/homeassistant/config/lovelace_tiles/views/view_basement.yaml index d07a8f9a..0c6d0d4d 100644 --- a/homeassistant/config/lovelace_tiles/views/view_basement.yaml +++ b/homeassistant/config/lovelace_tiles/views/view_basement.yaml @@ -175,7 +175,7 @@ cards: variables: ulm_card_ac_entity: climate.basement_template ulm_card_ac_curr_temp_sensor: sensor.climate_basement_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_basement; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_basement; ]]]" view_layout: grid-row-start: span 2 diff --git a/homeassistant/config/lovelace_tiles/views/view_bedroom.yaml b/homeassistant/config/lovelace_tiles/views/view_bedroom.yaml index 062c56e6..2d101c23 100644 --- a/homeassistant/config/lovelace_tiles/views/view_bedroom.yaml +++ b/homeassistant/config/lovelace_tiles/views/view_bedroom.yaml @@ -178,7 +178,7 @@ cards: variables: ulm_card_ac_entity: climate.bedroom_template ulm_card_ac_curr_temp_sensor: sensor.climate_bedroom_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_bedroom; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_bedroom; ]]]" view_layout: grid-row-start: span 2 diff --git a/homeassistant/config/lovelace_tiles/views/view_climate.yaml b/homeassistant/config/lovelace_tiles/views/view_climate.yaml index fe60365d..cda8215b 100644 --- a/homeassistant/config/lovelace_tiles/views/view_climate.yaml +++ b/homeassistant/config/lovelace_tiles/views/view_climate.yaml @@ -120,7 +120,7 @@ cards: variables: ulm_card_ac_entity: climate.living_room_template ulm_card_ac_curr_temp_sensor: sensor.climate_living_room_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_living_room; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_living_room; ]]]" view_layout: grid-row-start: span 2 @@ -130,7 +130,7 @@ cards: variables: ulm_card_ac_entity: climate.bedroom_template ulm_card_ac_curr_temp_sensor: sensor.climate_bedroom_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_bedroom; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_bedroom; ]]]" view_layout: grid-row-start: span 2 @@ -140,7 +140,7 @@ cards: variables: ulm_card_ac_entity: climate.ronen_template ulm_card_ac_curr_temp_sensor: sensor.climate_ronen_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_ronen; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_ronen; ]]]" view_layout: grid-row-start: span 2 @@ -150,7 +150,7 @@ cards: variables: ulm_card_ac_entity: climate.kfir_template ulm_card_ac_curr_temp_sensor: sensor.climate_kfir_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_kfir; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_kfir; ]]]" view_layout: grid-row-start: span 2 @@ -160,7 +160,7 @@ cards: variables: ulm_card_ac_entity: climate.basement_template ulm_card_ac_curr_temp_sensor: sensor.climate_basement_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_basement; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_basement; ]]]" view_layout: grid-row-start: span 2 @@ -290,7 +290,7 @@ cards: template: - card_switcher variables: - x_ulm_card_switcher_name: "[[[ return variables.ulm_boiler; ]]]" + #x_ulm_card_switcher_name: "[[[ return variables.ulm_boiler; ]]]" ulm_card_switcher_icon: "mdi:waves" ulm_card_switcher_entity: switch.switcher_boiler ulm_card_switcher_timer_script: script.switcher_boiler_turn_on_timer_script diff --git a/homeassistant/config/lovelace_tiles/views/view_floor_2.yaml b/homeassistant/config/lovelace_tiles/views/view_floor_2.yaml index 1ab95ae6..81d8251e 100644 --- a/homeassistant/config/lovelace_tiles/views/view_floor_2.yaml +++ b/homeassistant/config/lovelace_tiles/views/view_floor_2.yaml @@ -138,7 +138,7 @@ cards: template: - card_switcher variables: - x_ulm_card_switcher_name: "[[[ return variables.ulm_boiler; ]]]" + #x_ulm_card_switcher_name: "[[[ return variables.ulm_boiler; ]]]" ulm_card_switcher_icon: "mdi:waves" ulm_card_switcher_entity: switch.switcher_boiler ulm_card_switcher_timer_script: script.switcher_boiler_turn_on_timer_script diff --git a/homeassistant/config/lovelace_tiles/views/view_home.yaml b/homeassistant/config/lovelace_tiles/views/view_home.yaml index 632978e6..41ed0572 100644 --- a/homeassistant/config/lovelace_tiles/views/view_home.yaml +++ b/homeassistant/config/lovelace_tiles/views/view_home.yaml @@ -257,7 +257,7 @@ cards: variables: ulm_card_ac_entity: climate.living_room_template ulm_card_ac_curr_temp_sensor: sensor.climate_living_room_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_living_room; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_living_room; ]]]" view_layout: grid-row-start: span 2 @@ -266,7 +266,7 @@ cards: template: - card_switcher variables: - x_ulm_card_switcher_name: "[[[ return variables.ulm_boiler; ]]]" + #x_ulm_card_switcher_name: "[[[ return variables.ulm_boiler; ]]]" ulm_card_switcher_icon: "mdi:waves" ulm_card_switcher_entity: switch.switcher_boiler ulm_card_switcher_timer_script: script.switcher_boiler_turn_on_timer_script @@ -318,7 +318,7 @@ cards: template: card_pc entity: switch.dimka_hass_agent variables: - x_ulm_card_pc_name: "[[[ return variables.ulm_dimka_pc; ]]]" + #x_ulm_card_pc_name: "[[[ return variables.ulm_dimka_pc; ]]]" ulm_card_pc_memoryusage: 'sensor.dimka_memoryusage' ulm_card_pc_cpuload: 'sensor.dimka_cpuload' ulm_card_pc_storage_1: 'sensor.dimka_disk_c_used_space' diff --git a/homeassistant/config/lovelace_tiles/views/view_homeassistant.yaml b/homeassistant/config/lovelace_tiles/views/view_homeassistant.yaml index 279a27bc..fe9070ca 100644 --- a/homeassistant/config/lovelace_tiles/views/view_homeassistant.yaml +++ b/homeassistant/config/lovelace_tiles/views/view_homeassistant.yaml @@ -104,67 +104,84 @@ cards: type: custom:layout-card layout_type: grid layout_options: - grid-template-columns: 1fr 1fr 1fr 1fr + grid-template-columns: 1fr 1fr grid-template-rows: auto grid-gap: 0px 2px mediaquery: "(max-width: 450px)": - grid-template-columns: 1fr 1fr + grid-template-columns: 1fr cards: - # Events - - type: 'custom:button-card' - template: card_graph - variables: - x_ulm_card_graph_name: Events - ulm_card_graph_entity: sensor.events_size - ulm_card_graph_icon: mdi:database - - # States - - type: 'custom:button-card' - template: card_graph - variables: - x_ulm_card_graph_name: States - ulm_card_graph_entity: sensor.states_size - ulm_card_graph_icon: mdi:database - - # State Attributes - - type: 'custom:button-card' - template: card_graph - variables: - x_ulm_card_graph_name: State Attributes - ulm_card_graph_entity: sensor.state_attributes_size - ulm_card_graph_icon: mdi:database - # Statistics + # DB File Size - type: 'custom:button-card' template: card_graph variables: - x_ulm_card_graph_name: Statistics - ulm_card_graph_entity: sensor.statistics_size + x_ulm_card_graph_name: db + ulm_card_graph_entity: sensor.home_assistant_v2_db_size ulm_card_graph_icon: mdi:database - # Statistics Short Term + # DB_WAL File Size - type: 'custom:button-card' template: card_graph variables: - x_ulm_card_graph_name: Stats Short Term - ulm_card_graph_entity: sensor.statistics_short_term_size + x_ulm_card_graph_name: db_wal + ulm_card_graph_entity: sensor.home_assistant_v2_db_wal_size ulm_card_graph_icon: mdi:database - # Full DB - - type: 'custom:button-card' - template: card_graph - variables: - x_ulm_card_graph_name: Full DB - ulm_card_graph_entity: sensor.db_size - ulm_card_graph_icon: mdi:database - - # Full DB Calculated - - type: 'custom:button-card' - template: card_generic - entity: sensor.db_size_calculated - name: Calculated + # # Events + # - type: 'custom:button-card' + # template: card_graph + # variables: + # x_ulm_card_graph_name: Events + # ulm_card_graph_entity: sensor.events_size + # ulm_card_graph_icon: mdi:database + + # # States + # - type: 'custom:button-card' + # template: card_graph + # variables: + # x_ulm_card_graph_name: States + # ulm_card_graph_entity: sensor.states_size + # ulm_card_graph_icon: mdi:database + + # # State Attributes + # - type: 'custom:button-card' + # template: card_graph + # variables: + # x_ulm_card_graph_name: State Attributes + # ulm_card_graph_entity: sensor.state_attributes_size + # ulm_card_graph_icon: mdi:database + + # # Statistics + # - type: 'custom:button-card' + # template: card_graph + # variables: + # x_ulm_card_graph_name: Statistics + # ulm_card_graph_entity: sensor.statistics_size + # ulm_card_graph_icon: mdi:database + + # # Statistics Short Term + # - type: 'custom:button-card' + # template: card_graph + # variables: + # x_ulm_card_graph_name: Stats Short Term + # ulm_card_graph_entity: sensor.statistics_short_term_size + # ulm_card_graph_icon: mdi:database + + # # Full DB + # - type: 'custom:button-card' + # template: card_graph + # variables: + # x_ulm_card_graph_name: Full DB + # ulm_card_graph_entity: sensor.db_size + # ulm_card_graph_icon: mdi:database + + # # Full DB Calculated + # - type: 'custom:button-card' + # template: card_generic + # entity: sensor.db_size_calculated + # name: Calculated - type: custom:button-card template: spacer diff --git a/homeassistant/config/lovelace_tiles/views/view_kfir_room.yaml b/homeassistant/config/lovelace_tiles/views/view_kfir_room.yaml index 2cad0e04..1dfe54d9 100644 --- a/homeassistant/config/lovelace_tiles/views/view_kfir_room.yaml +++ b/homeassistant/config/lovelace_tiles/views/view_kfir_room.yaml @@ -150,7 +150,7 @@ cards: variables: ulm_card_ac_entity: climate.kfir_template ulm_card_ac_curr_temp_sensor: sensor.climate_kfir_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_kfir; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_kfir; ]]]" view_layout: grid-row-start: span 2 diff --git a/homeassistant/config/lovelace_tiles/views/view_living_room.yaml b/homeassistant/config/lovelace_tiles/views/view_living_room.yaml index f90d1db7..5bed05e0 100644 --- a/homeassistant/config/lovelace_tiles/views/view_living_room.yaml +++ b/homeassistant/config/lovelace_tiles/views/view_living_room.yaml @@ -148,7 +148,7 @@ cards: variables: ulm_card_ac_entity: climate.living_room_template ulm_card_ac_curr_temp_sensor: sensor.climate_living_room_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_living_room; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_living_room; ]]]" view_layout: grid-row-start: span 2 diff --git a/homeassistant/config/lovelace_tiles/views/view_ronen_room.yaml b/homeassistant/config/lovelace_tiles/views/view_ronen_room.yaml index d8bb974a..ed45ae35 100644 --- a/homeassistant/config/lovelace_tiles/views/view_ronen_room.yaml +++ b/homeassistant/config/lovelace_tiles/views/view_ronen_room.yaml @@ -150,7 +150,7 @@ cards: variables: ulm_card_ac_entity: climate.ronen_template ulm_card_ac_curr_temp_sensor: sensor.climate_ronen_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_ronen; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_ronen; ]]]" view_layout: grid-row-start: span 2 diff --git a/homeassistant/config/lovelace_tiles/views/view_work_room.yaml b/homeassistant/config/lovelace_tiles/views/view_work_room.yaml index fc2c65ad..16e67376 100644 --- a/homeassistant/config/lovelace_tiles/views/view_work_room.yaml +++ b/homeassistant/config/lovelace_tiles/views/view_work_room.yaml @@ -119,7 +119,7 @@ cards: template: card_pc entity: switch.dimka_hass_agent variables: - x_ulm_card_pc_name: "[[[ return variables.ulm_dimka_pc; ]]]" + #x_ulm_card_pc_name: "[[[ return variables.ulm_dimka_pc; ]]]" ulm_card_pc_memoryusage: 'sensor.dimka_memoryusage' ulm_card_pc_cpuload: 'sensor.dimka_cpuload' ulm_card_pc_storage_1: 'sensor.dimka_disk_c_used_space' @@ -133,8 +133,8 @@ cards: - type: 'custom:button-card' template: card_printer entity: sensor.mfc_j650dw_status - variables: - x_ulm_card_printer_name: "[[[ return variables.ulm_printer; ]]]" + # variables: + # x_ulm_card_printer_name: "[[[ return variables.ulm_printer; ]]]" diff --git a/homeassistant/config/lovelace_tiles/views_wallpanel/view_basement.yaml b/homeassistant/config/lovelace_tiles/views_wallpanel/view_basement.yaml index 7b52280a..6ecaf1b3 100644 --- a/homeassistant/config/lovelace_tiles/views_wallpanel/view_basement.yaml +++ b/homeassistant/config/lovelace_tiles/views_wallpanel/view_basement.yaml @@ -62,7 +62,7 @@ cards: variables: ulm_card_ac_entity: climate.basement_template ulm_card_ac_curr_temp_sensor: sensor.climate_basement_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_basement; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_basement; ]]]" view_layout: grid-row-start: span 3 @@ -95,7 +95,7 @@ cards: template: card_pc entity: switch.dimka_hass_agent variables: - x_ulm_card_pc_name: "[[[ return variables.ulm_dimka_pc; ]]]" + #x_ulm_card_pc_name: "[[[ return variables.ulm_dimka_pc; ]]]" ulm_card_pc_memoryusage: 'sensor.dimka_memoryusage' ulm_card_pc_cpuload: 'sensor.dimka_cpuload' ulm_card_pc_storage_1: 'sensor.dimka_disk_c_used_space' @@ -109,8 +109,8 @@ cards: - type: 'custom:button-card' template: card_printer entity: sensor.mfc_j650dw_status - variables: - x_ulm_card_printer_name: "[[[ return variables.ulm_printer; ]]]" + # variables: + # x_ulm_card_printer_name: "[[[ return variables.ulm_printer; ]]]" diff --git a/homeassistant/config/lovelace_tiles/views_wallpanel/view_climate.yaml b/homeassistant/config/lovelace_tiles/views_wallpanel/view_climate.yaml index 7d12c329..dd70a273 100644 --- a/homeassistant/config/lovelace_tiles/views_wallpanel/view_climate.yaml +++ b/homeassistant/config/lovelace_tiles/views_wallpanel/view_climate.yaml @@ -202,8 +202,7 @@ cards: variables: ulm_card_ac_entity: climate.living_room_template ulm_card_ac_curr_temp_sensor: sensor.climate_living_room_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_living_room; ]]]" - #ulm_card_ac_display_name: 'AC' + #x_ulm_card_ac_name: "[[[ return variables.ulm_living_room; ]]]" view_layout: grid-row-start: span 3 @@ -214,8 +213,7 @@ cards: variables: ulm_card_ac_entity: climate.bedroom_template ulm_card_ac_curr_temp_sensor: sensor.climate_bedroom_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_bedroom; ]]]" - #ulm_card_ac_display_name: 'AC' + #x_ulm_card_ac_name: "[[[ return variables.ulm_bedroom; ]]]" view_layout: grid-row-start: span 3 @@ -235,8 +233,7 @@ cards: variables: ulm_card_ac_entity: climate.kfir_template ulm_card_ac_curr_temp_sensor: sensor.climate_kfir_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_kfir; ]]]" - #ulm_card_ac_display_name: 'AC' + #x_ulm_card_ac_name: "[[[ return variables.ulm_kfir; ]]]" view_layout: grid-row-start: span 3 @@ -255,8 +252,7 @@ cards: variables: ulm_card_ac_entity: climate.ronen_template ulm_card_ac_curr_temp_sensor: sensor.climate_ronen_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_ronen; ]]]" - #ulm_card_ac_display_name: 'AC' + #x_ulm_card_ac_name: "[[[ return variables.ulm_ronen; ]]]" view_layout: grid-row-start: span 3 @@ -266,8 +262,7 @@ cards: variables: ulm_card_ac_entity: climate.basement_template ulm_card_ac_curr_temp_sensor: sensor.climate_basement_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_basement; ]]]" - #ulm_card_ac_display_name: 'AC' + #x_ulm_card_ac_name: "[[[ return variables.ulm_basement; ]]]" view_layout: grid-row-start: span 3 diff --git a/homeassistant/config/lovelace_tiles/views_wallpanel/view_floor_2.yaml b/homeassistant/config/lovelace_tiles/views_wallpanel/view_floor_2.yaml index 377f83b9..64eaebe5 100644 --- a/homeassistant/config/lovelace_tiles/views_wallpanel/view_floor_2.yaml +++ b/homeassistant/config/lovelace_tiles/views_wallpanel/view_floor_2.yaml @@ -68,7 +68,7 @@ cards: variables: ulm_card_ac_entity: climate.bedroom_template ulm_card_ac_curr_temp_sensor: sensor.climate_bedroom_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_bedroom; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_bedroom; ]]]" view_layout: grid-row-start: span 3 @@ -78,7 +78,7 @@ cards: variables: ulm_card_ac_entity: climate.kfir_template ulm_card_ac_curr_temp_sensor: sensor.climate_kfir_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_kfir; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_kfir; ]]]" view_layout: grid-row-start: span 3 @@ -88,7 +88,7 @@ cards: variables: ulm_card_ac_entity: climate.ronen_template ulm_card_ac_curr_temp_sensor: sensor.climate_ronen_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_ronen; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_ronen; ]]]" view_layout: grid-row-start: span 3 @@ -380,7 +380,7 @@ cards: template: - card_switcher variables: - x_ulm_card_switcher_name: "[[[ return variables.ulm_boiler; ]]]" + #x_ulm_card_switcher_name: "[[[ return variables.ulm_boiler; ]]]" ulm_card_switcher_icon: "mdi:waves" ulm_card_switcher_entity: switch.switcher_boiler ulm_card_switcher_timer_script: script.switcher_boiler_turn_on_timer_script diff --git a/homeassistant/config/lovelace_tiles/views_wallpanel/view_home.yaml b/homeassistant/config/lovelace_tiles/views_wallpanel/view_home.yaml index cfa60021..6120ff46 100644 --- a/homeassistant/config/lovelace_tiles/views_wallpanel/view_home.yaml +++ b/homeassistant/config/lovelace_tiles/views_wallpanel/view_home.yaml @@ -102,7 +102,7 @@ cards: variables: ulm_card_ac_entity: climate.living_room_template ulm_card_ac_curr_temp_sensor: sensor.climate_living_room_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_living_room; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_living_room; ]]]" view_layout: grid-row-start: span 3 @@ -112,7 +112,7 @@ cards: variables: ulm_card_ac_entity: climate.basement_template ulm_card_ac_curr_temp_sensor: sensor.climate_basement_temp - x_ulm_card_ac_name: "[[[ return variables.ulm_basement; ]]]" + #x_ulm_card_ac_name: "[[[ return variables.ulm_basement; ]]]" view_layout: grid-row-start: span 3 @@ -462,7 +462,7 @@ cards: template: - card_switcher variables: - x_ulm_card_switcher_name: "[[[ return variables.ulm_boiler; ]]]" + #x_ulm_card_switcher_name: "[[[ return variables.ulm_boiler; ]]]" ulm_card_switcher_icon: "mdi:waves" ulm_card_switcher_entity: switch.switcher_boiler ulm_card_switcher_timer_script: script.switcher_boiler_turn_on_timer_script diff --git a/homeassistant/config/packages/hass_agent/switches_hass_agent.yaml b/homeassistant/config/packages/hass_agent/switches_hass_agent.yaml index 8f446df6..b50fddce 100644 --- a/homeassistant/config/packages/hass_agent/switches_hass_agent.yaml +++ b/homeassistant/config/packages/hass_agent/switches_hass_agent.yaml @@ -4,6 +4,7 @@ switch: switches: dimka_hass_agent: + unique_id: dimka_hass_agent_switch friendly_name: "DIMKA" value_template: "{{ states('sensor.dimka_dummy') != 'unavailable' }}" icon_template: mdi:laptop