Skip to content

Commit 7114bb8

Browse files
authored
Merge pull request #839 from UI-Lovelace-Minimalist/release
V1.0.3
2 parents 6660e99 + cc760ed commit 7114bb8

26 files changed

+203
-162
lines changed

custom_components/ui_lovelace_minimalist/lovelace/translations/default.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ulm_translation_engine:
4343
}
4444
var label = hass.resources[lang]["component." + domain + ".state._." + state];
4545
var translation = label ? label : state;
46-
return (entity.attributes.current_temperature ) + '°' + ' • ' + translation + (entity.state !='off' ? ' (' + mode + ')' : '');
46+
return (entity.attributes.current_temperature ) + '°' + ' • ' + translation + ((entity.state !='off' && mode !== undefined) ? ' (' + mode + ')' : '');
4747
}
4848
]]]
4949
ulm_translation_off: "[[[ return hass.resources[hass['language']]['state.default.off']; ]]]"

custom_components/ui_lovelace_minimalist/lovelace/translations/es.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ ulm_language_variables:
44
ulm_currency: ""
55
ulm_updates_available: "¡Actualización disponible!"
66
ulm_no_updates_available: "No hay actualizaciones"
7+
ulm_ophaling: "¡Recogida de basura!"
8+
ulm_geen_ophaling: "Sin recogida"
9+
ulm_volgende_ophaling: "Próxima recogida"
710
ulm_morning: "Buenos días"
811
ulm_afternoon: "Buenas tardes"
912
ulm_evening: "Buenas noches"

custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/actions/actions_card.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ulm_actions_card:
3030
3131
return action
3232
]]]
33+
navigation_path: "[[[ return variables.ulm_card_tap_action == 'navigate' ? variables.ulm_card_tap_navigate_path : '/0' ]]]"
3334
service: "input_select.select_option"
3435
service_data:
3536
option: "[[[ return variables.ulm_input_select_option ]]]"
@@ -84,6 +85,7 @@ ulm_actions_card:
8485
8586
return action
8687
]]]
88+
navigation_path: "[[[ return variables.ulm_card_hold_action == 'navigate' ? variables.ulm_card_hold_navigate_path : '/0' ]]]"
8789
service: "input_select.select_option"
8890
service_data:
8991
option: "[[[ return variables.ulm_input_select_option ]]]"
@@ -137,6 +139,7 @@ ulm_actions_card:
137139
138140
return action
139141
]]]
142+
navigation_path: "[[[ return variables.ulm_card_double_tap_action == 'navigate' ? variables.ulm_card_double_tap_navigate_path : '/0' ]]]"
140143
service: "input_select.select_option"
141144
service_data:
142145
option: "[[[ return variables.ulm_input_select_option ]]]"

custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/actions/actions_icon.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ulm_actions_icon:
3030
3131
return action
3232
]]]
33+
navigation_path: "[[[ return variables.ulm_icon_tap_action == 'navigate' ? variables.ulm_icon_tap_navigate_path : '/0' ]]]"
3334
service: "input_select.select_option"
3435
service_data:
3536
option: "[[[ return variables.ulm_input_select_option ]]]"
@@ -84,6 +85,7 @@ ulm_actions_icon:
8485
8586
return action
8687
]]]
88+
navigation_path: "[[[ return variables.ulm_icon_hold_action == 'navigate' ? variables.ulm_icon_hold_navigate_path : '/0' ]]]"
8789
service: "input_select.select_option"
8890
service_data:
8991
option: "[[[ return variables.ulm_input_select_option ]]]"
@@ -137,6 +139,7 @@ ulm_actions_icon:
137139
138140
return action
139141
]]]
142+
navigation_path: "[[[ return variables.ulm_icon_double_tap_action == 'navigate' ? variables.ulm_icon_double_tap_navigate_path : '/0' ]]]"
140143
service: "input_select.select_option"
141144
service_data:
142145
option: "[[[ return variables.ulm_input_select_option ]]]"

custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/actions/actions_name.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ulm_actions_name:
3030
3131
return action
3232
]]]
33+
navigation_path: "[[[ return variables.ulm_name_tap_action == 'navigate' ? variables.ulm_name_tap_navigate_path : '/0' ]]]"
3334
service: "input_select.select_option"
3435
service_data:
3536
option: "[[[ return variables.ulm_input_select_option ]]]"
@@ -84,6 +85,7 @@ ulm_actions_name:
8485
8586
return action
8687
]]]
88+
navigation_path: "[[[ return variables.ulm_name_hold_action == 'navigate' ? variables.ulm_name_hold_navigate_path : '/0' ]]]"
8789
service: "input_select.select_option"
8890
service_data:
8991
option: "[[[ return variables.ulm_input_select_option ]]]"
@@ -137,6 +139,7 @@ ulm_actions_name:
137139
138140
return action
139141
]]]
142+
navigation_path: "[[[ return variables.ulm_name_double_tap_action == 'navigate' ? variables.ulm_name_double_tap_navigate_path : '/0' ]]]"
140143
service: "input_select.select_option"
141144
service_data:
142145
option: "[[[ return variables.ulm_input_select_option ]]]"

custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/2-line_cards/card_graph.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ card_graph:
3939
item1:
4040
card:
4141
type: "custom:button-card"
42-
template:
43-
- "icon_more_info"
4442
custom_fields:
4543
item1:
4644
card:

custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_battery.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ card_battery:
2020
item1:
2121
card:
2222
type: "custom:button-card"
23-
template:
24-
- "icon_more_info"
2523
custom_fields:
2624
item1:
2725
card:

custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_binary_sensor.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ card_binary_sensor:
1616
card:
1717
type: "custom:button-card"
1818
template:
19-
- "icon_more_info"
2019
- "blue"
2120
custom_fields:
2221
item1:

custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_binary_sensor_alert.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ card_binary_sensor_alert:
1616
card:
1717
type: "custom:button-card"
1818
template:
19-
- "icon_more_info"
2019
- "blue"
2120
custom_fields:
2221
item1:

custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_cover.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ card_cover:
8585
item1:
8686
card:
8787
type: "custom:button-card"
88-
template:
89-
- "icon_more_info"
9088
custom_fields:
9189
item1:
9290
card:

custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_generic.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ card_generic:
1212
item1:
1313
card:
1414
type: "custom:button-card"
15-
template:
16-
- "icon_more_info"
1715
custom_fields:
1816
item1:
1917
card:

custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_generic_swap.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ card_generic_swap:
1212
item1:
1313
card:
1414
type: "custom:button-card"
15-
template:
16-
- "icon_more_info"
1715
custom_fields:
1816
item1:
1917
card:

custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_input_boolean.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ card_input_boolean:
1414
card:
1515
type: "custom:button-card"
1616
template:
17-
- "icon_more_info"
1817
- "blue"
1918
custom_fields:
2019
item1:

custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_light.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ card_light:
9898
item1:
9999
card:
100100
type: "custom:button-card"
101-
template:
102-
- "icon_more_info"
103101
custom_fields:
104102
item1:
105103
card:

custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_media_player.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ card_media_player:
9090
item1:
9191
card:
9292
type: "custom:button-card"
93-
template:
94-
- "icon_more_info"
9593
custom_fields:
9694
item1:
9795
card:

custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_person.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ card_person:
2222
} else {
2323
let state = states[variables.ulm_card_person_entity].state;
2424
let option = ["home", "not_home", "unavailable", "unknown"]
25-
return (option.includes(state)) ? variables.ulm_translation_state : state
25+
return (option.includes(state)) ? variables.ulm_translation_state : (states["zone."+state]?.attributes?.friendly_name || state)
2626
}
2727
]]]
2828
name: "[[[ return states[variables.ulm_card_person_entity].attributes.friendly_name ]]]"
@@ -61,10 +61,10 @@ card_person:
6161
notification: >
6262
[[[
6363
if (states[variables.ulm_card_person_entity].state !== 'home') {
64-
if (states[variables.ulm_card_person_entity].state === states[variables.ulm_card_person_zone1]?.attributes?.friendly_name) {
64+
if (states[variables.ulm_card_person_zone1]?.attributes?.persons.includes(variables.ulm_card_person_entity)) {
6565
var icon = states[variables.ulm_card_person_zone1].attributes.icon !== null ? states[variables.ulm_card_person_zone1].attributes.icon : 'mdi:help-circle'
6666
return '<ha-icon icon="' + icon + '" style="width: 10px; height: 10px; color: var(--primary-background-color);"></ha-icon>';
67-
} else if (states[variables.ulm_card_person_entity].state === states[variables.ulm_card_person_zone2]?.attributes?.friendly_name) {
67+
} else if (states[variables.ulm_card_person_zone2]?.attributes?.persons.includes(variables.ulm_card_person_entity)) {
6868
var icon = states[variables.ulm_card_person_zone2].attributes.icon !== null ? states[variables.ulm_card_person_zone2].attributes.icon : 'mdi:help-circle'
6969
return '<ha-icon icon="' + icon + '" style="width: 10px; height: 10px; color: var(--primary-background-color);"></ha-icon>';
7070
} else {

custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_power_outlet.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ card_power_outlet:
1616
card:
1717
type: "custom:button-card"
1818
template:
19-
- "icon_more_info"
2019
- "yellow"
2120
custom_fields:
2221
item1:

0 commit comments

Comments
 (0)