Skip to content

Commit 0e03349

Browse files
authored
Merge pull request #676 from UI-Lovelace-Minimalist/release
Release V0.0.9
2 parents 87ea23e + 8a3d18e commit 0e03349

File tree

42 files changed

+1078
-474
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1078
-474
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
ulm_custom_card_damix48_power_details_language_variables:
3+
variables:
4+
ulm_custom_card_damix48_power_details_hour: "Stunde"
5+
ulm_custom_card_damix48_power_details_hours: "Stunden"
6+
ulm_custom_card_damix48_power_details_in_the_last: "In der letzten"
7+
ulm_custom_card_damix48_power_details_in_the_lasts: "In den letzten"

custom_cards/custom_card_esh_welcome/custom_card_esh_welcome.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ card_esh_welcome_nav:
332332
type: "custom:button-card"
333333
tap_action:
334334
action: "navigate"
335-
navigation_path: "[[[ return variables.entity_1.nav; ]]]"
335+
navigation_path: "[[[ return variables.entity_5.nav; ]]]"
336336
name: "[[[ return variables.entity_5.name ]]]"
337337

338338
card_esh_welcome_pill_nav:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
custom_card_heat_pump_language_variables:
3+
variables:
4+
custom_card_heat_pump_dry: "Trocknen"
5+
custom_card_heat_pump_heat: "Heizen"
6+
custom_card_heat_pump_heat_cool: "Auto"
7+
custom_card_heat_pump_cool: "Kühlen"
8+
custom_card_heat_pump_fan_only: "Nur Lüften"

custom_cards/custom_card_heat_pump/languages/en.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
custom_card_heat_pump_language_variables:
33
variables:
4-
custom_card_heat_pump_off: "Off"
54
custom_card_heat_pump_dry: "Dry"
65
custom_card_heat_pump_heat: "Heat"
76
custom_card_heat_pump_heat_cool: "Auto"

custom_cards/custom_card_heat_pump/languages/pl.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
custom_card_heat_pump_language_variables:
33
variables:
4-
custom_card_heat_pump_off: "Wyłączone"
54
custom_card_heat_pump_dry: "Osuszanie"
65
custom_card_heat_pump_heat: "Grzanie"
76
custom_card_heat_pump_heat_cool: "Automatycznie"

custom_cards/custom_card_httpedo13_thermostat/custom_card_httpedo13_thermostat.yaml

+3-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
custom_card_httpedo13_thermostat:
33
template:
44
- "ulm_language_variables"
5-
- "custom_card_httpedo13_thermostat_language_variables"
65
tap_action:
76
action: "toggle"
87
icon: |
@@ -15,11 +14,11 @@ custom_card_httpedo13_thermostat:
1514
label: >-
1615
[[[
1716
if (entity.state =='off') {
18-
return variables.custom_card_httpedo13_thermostat_off;
17+
return variables.ulm_off;
1918
} else if (entity.state =='heat') {
20-
return variables.custom_card_httpedo13_thermostat_on;
19+
return variables.ulm_on;
2120
} else if (entity.attributes.hvac_action == 'heating') {
22-
return variables.custom_card_httpedo13_thermostat_heating;
21+
return variables.ulm_heating;
2322
}
2423
return entity.state;
2524
]]]
@@ -195,7 +194,6 @@ custom_card_httpedo13_thermostat_with_buttons:
195194
entity_id: "[[[ return variables.entity ]]]"
196195
icon: "mdi:plus"
197196

198-
199197
custom_card_httpedo13_thermostat_with_buttons_collapse:
200198
triggers_update: "all"
201199
styles:
@@ -330,7 +328,6 @@ custom_card_httpedo13_thermostat_with_buttons_collapse:
330328
entity_id: "[[[ return variables.entity ]]]"
331329
icon: "mdi:plus"
332330

333-
334331
widget_current_temperature:
335332
color: "var(--google-grey-500)"
336333
show_icon: false

custom_cards/custom_card_httpedo13_thermostat/languages/en.yaml

-6
This file was deleted.

custom_cards/custom_card_httpedo13_thermostat/languages/pl.yaml

-6
This file was deleted.

custom_cards/custom_card_httpedo13_thermostat/languages/pt.yaml

-6
This file was deleted.

custom_cards/custom_card_paddy_welcome/custom_card_paddy_welcome.yaml

+12-20
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
22
custom_card_paddy_welcome:
3-
template:
4-
- "ulm_custom_card_paddy_welcome_language_variables"
53
show_icon: false
64
show_name: false
75
show_label: false
@@ -25,13 +23,13 @@ custom_card_paddy_welcome:
2523
let welcome = '';
2624
2725
if (time > '18:00'){
28-
welcome = variables.ulm_custom_card_paddy_welcome_evening;
26+
welcome = variables.ulm_evening;
2927
} else if (time > '12:00'){
30-
welcome = variables.ulm_custom_card_paddy_welcome_afternoon;
28+
welcome = variables.ulm_afternoon;
3129
} else if (time > '05:00'){
32-
welcome = variables.ulm_custom_card_paddy_welcome_morning;
30+
welcome = variables.ulm_morning;
3331
} else {
34-
welcome = variables.ulm_custom_card_paddy_welcome_hello;
32+
welcome = variables.ulm_hello;
3533
}
3634
3735
return welcome + ',<br>' + user.name + '!';
@@ -47,8 +45,6 @@ custom_card_paddy_welcome:
4745
}
4846
4947
custom_card_paddy_welcome_with_weather:
50-
template:
51-
- "ulm_custom_card_paddy_welcome_language_variables"
5248
show_icon: false
5349
show_name: false
5450
show_label: false
@@ -72,14 +68,13 @@ custom_card_paddy_welcome_with_weather:
7268
let welcome = '';
7369
7470
if (time > '18:00'){
75-
welcome = variables.ulm_custom_card_paddy_welcome_evening;
71+
welcome = variables.ulm_evening;
7672
} else if (time > '12:00'){
77-
welcome = variables.ulm_custom_card_paddy_welcome_afternoon;
73+
welcome = variables.ulm_afternoon;
7874
} else if (time > '05:00'){
79-
welcome = variables.ulm_custom_card_paddy_welcome_morning;
75+
welcome = variables.ulm_morning;
8076
} else {
81-
welcome = variables.ulm_custom_card_paddy_welcome_hello;
82-
}
77+
welcome = variables.ulm_hello;
8378
8479
return welcome + ',<br>' + user.name + '!';
8580
]]]
@@ -132,8 +127,6 @@ custom_card_paddy_welcome_with_weather:
132127
}
133128
134129
custom_card_paddy_welcome_with_news:
135-
template:
136-
- "ulm_custom_card_paddy_welcome_language_variables"
137130
show_icon: false
138131
show_name: false
139132
show_label: false
@@ -157,14 +150,13 @@ custom_card_paddy_welcome_with_news:
157150
let welcome = '';
158151
159152
if (time > '18:00'){
160-
welcome = variables.ulm_custom_card_paddy_welcome_evening;
153+
welcome = variables.ulm_evening;
161154
} else if (time > '12:00'){
162-
welcome = variables.ulm_custom_card_paddy_welcome_afternoon;
155+
welcome = variables.ulm_afternoon;
163156
} else if (time > '05:00'){
164-
welcome = variables.ulm_custom_card_paddy_welcome_morning;
157+
welcome = variables.ulm_morning;
165158
} else {
166-
welcome = variables.ulm_custom_card_paddy_welcome_hello;
167-
}
159+
welcome = variables.ulm_hello;
168160
169161
return welcome + ',<br>' + user.name + '!';
170162
]]]

custom_cards/custom_card_tpx01_aircondition/custom_card_tpx01_aircondition.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ custom_card_tpx01_aircondition:
2323
if (entity.state =='off') {
2424
return variables.ulm_off;
2525
} else if (entity.state =='dry') {
26-
return variables.custom_card_tpx01_aircondition_dry;
26+
return variables.ulm_dry;
2727
} else if (entity.state =='heat') {
28-
return variables.custom_card_tpx01_aircondition_heat;
28+
return variables.ulm_heating;
2929
} else if (entity.state =='heat_cool') {
30-
return variables.custom_card_tpx01_aircondition_heat_cool;
30+
return variables.ulm_heat_cool;
3131
} else if (entity.state =='cool') {
32-
return variables.custom_card_tpx01_aircondition_cool;
32+
return variables.ulm_cooling;
3333
} else if (entity.state =='fan_only') {
34-
return variables.custom_card_tpx01_aircondition_fan_only;
34+
return variables.ulm_fan_only;
3535
}
3636
return entity.state;
3737
]]]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# EN.yaml for custom_card_wsly_pollen
2+
---
3+
custom_card_wsly_pollen_language_variables:
4+
variables:
5+
custom_card_wsly_pollen_none: "Keine"
6+
custom_card_wsly_pollen_very_low: "Sehr niedrig"
7+
custom_card_wsly_pollen_low: "Niedrig"
8+
custom_card_wsly_pollen_medium: "Mittel"
9+
custom_card_wsly_pollen_high: "Hoch"
10+
custom_card_wsly_pollen_very_high: "Sehr hoch"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
ulm_custom_card_yagrasdemonde_lights_count_language_variables:
3+
variables:
4+
ulm_custom_card_yagrasdemonde_lights_count_light_0: "Keine Lampen an"
5+
ulm_custom_card_yagrasdemonde_lights_count_light_1: "1 Lampe an"
6+
ulm_custom_card_yagrasdemonde_lights_count_light_many: "Lampen an"
7+
ulm_custom_card_yagrasdemonde_lights_count_cover_0: "Keine Rollos offen"
8+
ulm_custom_card_yagrasdemonde_lights_count_cover_1: "1 Rollo offen"
9+
ulm_custom_card_yagrasdemonde_lights_count_cover_many: "Rollos offen"

custom_components/ui_lovelace_minimalist/configure.py

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"Slovak": "sk",
3131
"Swedish": "sv",
3232
"Turkish": "tr",
33+
"Russian": "ru",
3334
}
3435

3536

custom_components/ui_lovelace_minimalist/const.py

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"Slovak",
2727
"Swedish",
2828
"Turkish",
29+
"Russian",
2930
]
3031
CONF_SIDEPANEL_ENABLED = "sidepanel_enabled"
3132
CONF_SIDEPANEL_TITLE = "sidepanel_title"

custom_components/ui_lovelace_minimalist/lovelace/themefiles/minimalist-mobile-tapbar/minimalist-mobile-tapbar.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ minimalist-mobile-tapbar:
131131
# text
132132
primary-text-color: "#212121"
133133
# slider
134-
slider-color: "rgb(var(--google-blue))"
135-
slider-bar-color: "rgba(var(--google-blue),0.38)"
134+
slider-color: "rgb(var(--color-blue))"
135+
slider-bar-color: "rgba(var(--color-blue),0.38)"
136136
# cards
137137
box-shadow: "0px 2px 4px 0px rgba(0,0,0,0.16)"
138138
ha-card-box-shadow: "var(--box-shadow)"

custom_components/ui_lovelace_minimalist/lovelace/translations/de.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ ulm_language_variables:
4646
ulm_hello: "Hallo"
4747
ulm_cleaning: "Staubsaugen"
4848
ulm_returning: "Auf dem Heimweg"
49-
ulm_docked: "Docked"
49+
ulm_docked: "Angedockt"
5050
ulm_mopping: "Wischen"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
ulm_language_variables:
3+
variables:
4+
ulm_on: "включено"
5+
ulm_off: "выключено"
6+
ulm_open: "открыто"
7+
ulm_closed: "закрыто"
8+
ulm_unavailable: "недоступно"
9+
ulm_standby: "ожидание"
10+
ulm_idle: "бездействие"
11+
ulm_currency: "RUB"
12+
ulm_auto: "Авто"
13+
ulm_heat: "Нагрев"
14+
ulm_cool: "Охлаждение"
15+
ulm_dry: "Осушение"
16+
ulm_fan_only: "Вентиляция"
17+
ulm_heat_cool: "Нагрев/Охлаждение"
18+
ulm_heating: "Нагрев"
19+
ulm_cooling: "Охлаждение"
20+
ulm_person_state_home: "дома"
21+
ulm_person_state_away: "на улице"
22+
ulm_person_state_not_home: "вне дома"
23+
ulm_device_state_home: "В сети"
24+
ulm_device_state_not_home: "Не в сети"
25+
ulm_popups_back: "Назад"
26+
ulm_popups_toggle: "Переключить"
27+
ulm_popups_statistics: "Статистика"
28+
ulm_popups_history: "История"
29+
ulm_popups_brightness: "Яркость"
30+
ulm_popups_color_temp: "Цветовая температура"
31+
ulm_popups_color: "Цвет"
32+
ulm_unknown: "неизвестно"
33+
ulm_alarm_armed_home: "Режим охраны (дом)"
34+
ulm_alarm_armed_away: "Режим охраны (вне дома)"
35+
ulm_alarm_armed_night: "Режим охраны (ночной)"
36+
ulm_alarm_disarmed: "Режим охраны (отключен)"
37+
ulm_alarm_arming: "Режим охраны (постановка)"
38+
ulm_alarm_triggered: "СРАБАТЫВАНИЕ"
39+
ulm_playing: "Воспроизведение"
40+
ulm_paused: "На паузе"
41+
ulm_updates_available: "Доступны обновления!"
42+
ulm_no_updates_available: "Нет доступных обновлений"
43+
ulm_morning: "Доброе утро"
44+
ulm_afternoon: "Добрый день"
45+
ulm_evening: "Добрый вечер"
46+
ulm_hello: "Здравствуйте"
47+
ulm_cleaning: "Идет уборка"
48+
ulm_returning: "Возвращение на базу"
49+
ulm_docked: "На базе"
50+
ulm_mopping: "Влажная уборка"

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

+9-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
card_battery:
44
template:
55
- "icon_info_bg"
6+
- "ulm_language_variables"
67
tap_action:
78
action: "more-info"
89
variables:
@@ -55,6 +56,8 @@ card_battery:
5556
icon = "mdi:battery";
5657
} else if (battery_level < 10) {
5758
icon = "mdi:battery" + infix + "-outline";
59+
} else if (battery_level == "unknown" || battery_level == "unavailable") {
60+
icon = "mdi:battery-off";
5861
} else {
5962
icon = "mdi:battery" + infix + "-" + Math.floor(battery_level / 10) * 10;
6063
}
@@ -66,7 +69,10 @@ card_battery:
6669
const battery_level = variables.ulm_card_battery_attribute !== null
6770
? states[entity.entity_id].attributes[variables.ulm_card_battery_attribute]
6871
: states[entity.entity_id].state;
69-
return battery_level + "%";
72+
if(battery_level == "unknown")
73+
{ return variables.ulm_unavailable; }
74+
else
75+
{ return battery_level + "%"; }
7076
]]]
7177
name: |
7278
[[[
@@ -87,6 +93,8 @@ card_battery:
8793
color = variables.ulm_card_battery_color_battery_level_danger;
8894
} else if (battery_level <= variables.ulm_card_battery_battery_level_warning) {
8995
color = variables.ulm_card_battery_color_battery_level_warning;
96+
} else if (battery_level == "unknown" || battery_level == "unavailable") {
97+
color = variables.ulm_card_battery_color_battery_level_danger;
9098
} else {
9199
color = variables.ulm_card_battery_color_battery_level_ok;
92100
}

0 commit comments

Comments
 (0)