Skip to content

Commit

Permalink
Merge pull request #676 from UI-Lovelace-Minimalist/release
Browse files Browse the repository at this point in the history
Release V0.0.9
  • Loading branch information
basbruss authored May 27, 2022
2 parents 87ea23e + 8a3d18e commit 0e03349
Show file tree
Hide file tree
Showing 42 changed files with 1,078 additions and 474 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
ulm_custom_card_damix48_power_details_language_variables:
variables:
ulm_custom_card_damix48_power_details_hour: "Stunde"
ulm_custom_card_damix48_power_details_hours: "Stunden"
ulm_custom_card_damix48_power_details_in_the_last: "In der letzten"
ulm_custom_card_damix48_power_details_in_the_lasts: "In den letzten"
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ card_esh_welcome_nav:
type: "custom:button-card"
tap_action:
action: "navigate"
navigation_path: "[[[ return variables.entity_1.nav; ]]]"
navigation_path: "[[[ return variables.entity_5.nav; ]]]"
name: "[[[ return variables.entity_5.name ]]]"

card_esh_welcome_pill_nav:
Expand Down
8 changes: 8 additions & 0 deletions custom_cards/custom_card_heat_pump/languages/de.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
custom_card_heat_pump_language_variables:
variables:
custom_card_heat_pump_dry: "Trocknen"
custom_card_heat_pump_heat: "Heizen"
custom_card_heat_pump_heat_cool: "Auto"
custom_card_heat_pump_cool: "Kühlen"
custom_card_heat_pump_fan_only: "Nur Lüften"
1 change: 0 additions & 1 deletion custom_cards/custom_card_heat_pump/languages/en.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
custom_card_heat_pump_language_variables:
variables:
custom_card_heat_pump_off: "Off"
custom_card_heat_pump_dry: "Dry"
custom_card_heat_pump_heat: "Heat"
custom_card_heat_pump_heat_cool: "Auto"
Expand Down
1 change: 0 additions & 1 deletion custom_cards/custom_card_heat_pump/languages/pl.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
custom_card_heat_pump_language_variables:
variables:
custom_card_heat_pump_off: "Wyłączone"
custom_card_heat_pump_dry: "Osuszanie"
custom_card_heat_pump_heat: "Grzanie"
custom_card_heat_pump_heat_cool: "Automatycznie"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
custom_card_httpedo13_thermostat:
template:
- "ulm_language_variables"
- "custom_card_httpedo13_thermostat_language_variables"
tap_action:
action: "toggle"
icon: |
Expand All @@ -15,11 +14,11 @@ custom_card_httpedo13_thermostat:
label: >-
[[[
if (entity.state =='off') {
return variables.custom_card_httpedo13_thermostat_off;
return variables.ulm_off;
} else if (entity.state =='heat') {
return variables.custom_card_httpedo13_thermostat_on;
return variables.ulm_on;
} else if (entity.attributes.hvac_action == 'heating') {
return variables.custom_card_httpedo13_thermostat_heating;
return variables.ulm_heating;
}
return entity.state;
]]]
Expand Down Expand Up @@ -195,7 +194,6 @@ custom_card_httpedo13_thermostat_with_buttons:
entity_id: "[[[ return variables.entity ]]]"
icon: "mdi:plus"


custom_card_httpedo13_thermostat_with_buttons_collapse:
triggers_update: "all"
styles:
Expand Down Expand Up @@ -330,7 +328,6 @@ custom_card_httpedo13_thermostat_with_buttons_collapse:
entity_id: "[[[ return variables.entity ]]]"
icon: "mdi:plus"


widget_current_temperature:
color: "var(--google-grey-500)"
show_icon: false
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
custom_card_paddy_welcome:
template:
- "ulm_custom_card_paddy_welcome_language_variables"
show_icon: false
show_name: false
show_label: false
Expand All @@ -25,13 +23,13 @@ custom_card_paddy_welcome:
let welcome = '';
if (time > '18:00'){
welcome = variables.ulm_custom_card_paddy_welcome_evening;
welcome = variables.ulm_evening;
} else if (time > '12:00'){
welcome = variables.ulm_custom_card_paddy_welcome_afternoon;
welcome = variables.ulm_afternoon;
} else if (time > '05:00'){
welcome = variables.ulm_custom_card_paddy_welcome_morning;
welcome = variables.ulm_morning;
} else {
welcome = variables.ulm_custom_card_paddy_welcome_hello;
welcome = variables.ulm_hello;
}
return welcome + ',<br>' + user.name + '!';
Expand All @@ -47,8 +45,6 @@ custom_card_paddy_welcome:
}
custom_card_paddy_welcome_with_weather:
template:
- "ulm_custom_card_paddy_welcome_language_variables"
show_icon: false
show_name: false
show_label: false
Expand All @@ -72,14 +68,13 @@ custom_card_paddy_welcome_with_weather:
let welcome = '';
if (time > '18:00'){
welcome = variables.ulm_custom_card_paddy_welcome_evening;
welcome = variables.ulm_evening;
} else if (time > '12:00'){
welcome = variables.ulm_custom_card_paddy_welcome_afternoon;
welcome = variables.ulm_afternoon;
} else if (time > '05:00'){
welcome = variables.ulm_custom_card_paddy_welcome_morning;
welcome = variables.ulm_morning;
} else {
welcome = variables.ulm_custom_card_paddy_welcome_hello;
}
welcome = variables.ulm_hello;
return welcome + ',<br>' + user.name + '!';
]]]
Expand Down Expand Up @@ -132,8 +127,6 @@ custom_card_paddy_welcome_with_weather:
}
custom_card_paddy_welcome_with_news:
template:
- "ulm_custom_card_paddy_welcome_language_variables"
show_icon: false
show_name: false
show_label: false
Expand All @@ -157,14 +150,13 @@ custom_card_paddy_welcome_with_news:
let welcome = '';
if (time > '18:00'){
welcome = variables.ulm_custom_card_paddy_welcome_evening;
welcome = variables.ulm_evening;
} else if (time > '12:00'){
welcome = variables.ulm_custom_card_paddy_welcome_afternoon;
welcome = variables.ulm_afternoon;
} else if (time > '05:00'){
welcome = variables.ulm_custom_card_paddy_welcome_morning;
welcome = variables.ulm_morning;
} else {
welcome = variables.ulm_custom_card_paddy_welcome_hello;
}
welcome = variables.ulm_hello;
return welcome + ',<br>' + user.name + '!';
]]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ custom_card_tpx01_aircondition:
if (entity.state =='off') {
return variables.ulm_off;
} else if (entity.state =='dry') {
return variables.custom_card_tpx01_aircondition_dry;
return variables.ulm_dry;
} else if (entity.state =='heat') {
return variables.custom_card_tpx01_aircondition_heat;
return variables.ulm_heating;
} else if (entity.state =='heat_cool') {
return variables.custom_card_tpx01_aircondition_heat_cool;
return variables.ulm_heat_cool;
} else if (entity.state =='cool') {
return variables.custom_card_tpx01_aircondition_cool;
return variables.ulm_cooling;
} else if (entity.state =='fan_only') {
return variables.custom_card_tpx01_aircondition_fan_only;
return variables.ulm_fan_only;
}
return entity.state;
]]]
Expand Down
10 changes: 10 additions & 0 deletions custom_cards/custom_card_wsly_pollen/languages/de.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# EN.yaml for custom_card_wsly_pollen
---
custom_card_wsly_pollen_language_variables:
variables:
custom_card_wsly_pollen_none: "Keine"
custom_card_wsly_pollen_very_low: "Sehr niedrig"
custom_card_wsly_pollen_low: "Niedrig"
custom_card_wsly_pollen_medium: "Mittel"
custom_card_wsly_pollen_high: "Hoch"
custom_card_wsly_pollen_very_high: "Sehr hoch"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
ulm_custom_card_yagrasdemonde_lights_count_language_variables:
variables:
ulm_custom_card_yagrasdemonde_lights_count_light_0: "Keine Lampen an"
ulm_custom_card_yagrasdemonde_lights_count_light_1: "1 Lampe an"
ulm_custom_card_yagrasdemonde_lights_count_light_many: "Lampen an"
ulm_custom_card_yagrasdemonde_lights_count_cover_0: "Keine Rollos offen"
ulm_custom_card_yagrasdemonde_lights_count_cover_1: "1 Rollo offen"
ulm_custom_card_yagrasdemonde_lights_count_cover_many: "Rollos offen"
1 change: 1 addition & 0 deletions custom_components/ui_lovelace_minimalist/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"Slovak": "sk",
"Swedish": "sv",
"Turkish": "tr",
"Russian": "ru",
}


Expand Down
1 change: 1 addition & 0 deletions custom_components/ui_lovelace_minimalist/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"Slovak",
"Swedish",
"Turkish",
"Russian",
]
CONF_SIDEPANEL_ENABLED = "sidepanel_enabled"
CONF_SIDEPANEL_TITLE = "sidepanel_title"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ minimalist-mobile-tapbar:
# text
primary-text-color: "#212121"
# slider
slider-color: "rgb(var(--google-blue))"
slider-bar-color: "rgba(var(--google-blue),0.38)"
slider-color: "rgb(var(--color-blue))"
slider-bar-color: "rgba(var(--color-blue),0.38)"
# cards
box-shadow: "0px 2px 4px 0px rgba(0,0,0,0.16)"
ha-card-box-shadow: "var(--box-shadow)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ ulm_language_variables:
ulm_hello: "Hallo"
ulm_cleaning: "Staubsaugen"
ulm_returning: "Auf dem Heimweg"
ulm_docked: "Docked"
ulm_docked: "Angedockt"
ulm_mopping: "Wischen"
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
ulm_language_variables:
variables:
ulm_on: "включено"
ulm_off: "выключено"
ulm_open: "открыто"
ulm_closed: "закрыто"
ulm_unavailable: "недоступно"
ulm_standby: "ожидание"
ulm_idle: "бездействие"
ulm_currency: "RUB"
ulm_auto: "Авто"
ulm_heat: "Нагрев"
ulm_cool: "Охлаждение"
ulm_dry: "Осушение"
ulm_fan_only: "Вентиляция"
ulm_heat_cool: "Нагрев/Охлаждение"
ulm_heating: "Нагрев"
ulm_cooling: "Охлаждение"
ulm_person_state_home: "дома"
ulm_person_state_away: "на улице"
ulm_person_state_not_home: "вне дома"
ulm_device_state_home: "В сети"
ulm_device_state_not_home: "Не в сети"
ulm_popups_back: "Назад"
ulm_popups_toggle: "Переключить"
ulm_popups_statistics: "Статистика"
ulm_popups_history: "История"
ulm_popups_brightness: "Яркость"
ulm_popups_color_temp: "Цветовая температура"
ulm_popups_color: "Цвет"
ulm_unknown: "неизвестно"
ulm_alarm_armed_home: "Режим охраны (дом)"
ulm_alarm_armed_away: "Режим охраны (вне дома)"
ulm_alarm_armed_night: "Режим охраны (ночной)"
ulm_alarm_disarmed: "Режим охраны (отключен)"
ulm_alarm_arming: "Режим охраны (постановка)"
ulm_alarm_triggered: "СРАБАТЫВАНИЕ"
ulm_playing: "Воспроизведение"
ulm_paused: "На паузе"
ulm_updates_available: "Доступны обновления!"
ulm_no_updates_available: "Нет доступных обновлений"
ulm_morning: "Доброе утро"
ulm_afternoon: "Добрый день"
ulm_evening: "Добрый вечер"
ulm_hello: "Здравствуйте"
ulm_cleaning: "Идет уборка"
ulm_returning: "Возвращение на базу"
ulm_docked: "На базе"
ulm_mopping: "Влажная уборка"
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
card_battery:
template:
- "icon_info_bg"
- "ulm_language_variables"
tap_action:
action: "more-info"
variables:
Expand Down Expand Up @@ -55,6 +56,8 @@ card_battery:
icon = "mdi:battery";
} else if (battery_level < 10) {
icon = "mdi:battery" + infix + "-outline";
} else if (battery_level == "unknown" || battery_level == "unavailable") {
icon = "mdi:battery-off";
} else {
icon = "mdi:battery" + infix + "-" + Math.floor(battery_level / 10) * 10;
}
Expand All @@ -66,7 +69,10 @@ card_battery:
const battery_level = variables.ulm_card_battery_attribute !== null
? states[entity.entity_id].attributes[variables.ulm_card_battery_attribute]
: states[entity.entity_id].state;
return battery_level + "%";
if(battery_level == "unknown")
{ return variables.ulm_unavailable; }
else
{ return battery_level + "%"; }
]]]
name: |
[[[
Expand All @@ -87,6 +93,8 @@ card_battery:
color = variables.ulm_card_battery_color_battery_level_danger;
} else if (battery_level <= variables.ulm_card_battery_battery_level_warning) {
color = variables.ulm_card_battery_color_battery_level_warning;
} else if (battery_level == "unknown" || battery_level == "unavailable") {
color = variables.ulm_card_battery_color_battery_level_danger;
} else {
color = variables.ulm_card_battery_color_battery_level_ok;
}
Expand Down
Loading

0 comments on commit 0e03349

Please sign in to comment.