Skip to content

Commit

Permalink
Adjusting cards to take the name from entity friendly name
Browse files Browse the repository at this point in the history
dmatik committed Feb 15, 2024

Verified

This commit was signed with the committer’s verified signature.
jjohannes Jendrik Johannes
1 parent 1f37161 commit a111c98
Showing 19 changed files with 171 additions and 96 deletions.
Original file line number Diff line number Diff line change
@@ -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:
Original file line number Diff line number Diff line change
@@ -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: |-
[[[
Original file line number Diff line number Diff line change
@@ -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") {
Original file line number Diff line number Diff line change
@@ -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"
Original file line number Diff line number Diff line change
@@ -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

Original file line number Diff line number Diff line change
@@ -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

12 changes: 6 additions & 6 deletions homeassistant/config/lovelace_tiles/views/view_climate.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions homeassistant/config/lovelace_tiles/views/view_home.yaml
Original file line number Diff line number Diff line change
@@ -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'
105 changes: 61 additions & 44 deletions homeassistant/config/lovelace_tiles/views/view_homeassistant.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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

Original file line number Diff line number Diff line change
@@ -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

Original file line number Diff line number Diff line change
@@ -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

6 changes: 3 additions & 3 deletions homeassistant/config/lovelace_tiles/views/view_work_room.yaml
Original file line number Diff line number Diff line change
@@ -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; ]]]"



Original file line number Diff line number Diff line change
@@ -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; ]]]"



Original file line number Diff line number Diff line change
@@ -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

Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a111c98

Please sign in to comment.