Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dwainscheeren committed Dec 3, 2021
2 parents ba87ab4 + d5802b2 commit 26c9a2e
Show file tree
Hide file tree
Showing 8 changed files with 157 additions and 21 deletions.
3 changes: 2 additions & 1 deletion custom_components/dwains_dashboard/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"Romanian",
"Swedish",
"Dutch",
"Slovak"
]
SIDEPANEL_TITLE = "sidepanel_title"
SIDEPANEL_ICON = "sidepanel_icon"
Expand Down Expand Up @@ -67,4 +68,4 @@ async def async_step_init(self, user_input=None):
return self.async_show_form(
step_id="init",
data_schema=vol.Schema(schema)
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ homepage_device:
- color: var(--dwains-theme-accent)
- height: 50px
- width: 50px
- primary: var(--dwains-theme-accent)
- secondary: var(--dwains-theme-primary)
img_cell:
- padding-top: 20px
- padding-bottom: 5px
Expand All @@ -47,4 +49,4 @@ homepage_device:
- width: 40px
- height: 40px
- text-align: right
- color: var(--dwains-theme-grey)
- color: var(--dwains-theme-grey)
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ homepage_room:
- color: var(--dwains-theme-accent)
- height: 50px
- width: 50px
- primary: var(--dwains-theme-accent)
- secondary: var(--dwains-theme-primary)
img_cell:
- padding-top: 20px
- padding-bottom: 5px
Expand All @@ -47,4 +49,4 @@ homepage_room:
- width: 40px
- height: 40px
- text-align: right
- color: var(--dwains-theme-grey)
- color: var(--dwains-theme-grey)
26 changes: 13 additions & 13 deletions custom_components/dwains_dashboard/lovelace/translations/es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

es:
greetings:
good_morning: "Buenos Días"
good_afternoon: "Buenas Tardes"
good_evening: "Buena Noches"
good_morning: "Buenos días"
good_afternoon: "Buenas tardes"
good_evening: "Buenas noches"

house_information:
title: "Información de la Casa"
title: "Información de la casa"
favorites: "Favoritos"
activity: "Actividad (puertas, ventanas, movimiento)"

Expand All @@ -29,10 +29,10 @@ es:
climate:
title: "Temperatura"
title_plural: "Temperaturas"
inside: "adentro"
outside: "afuera"
inside: "Dentro"
outside: "Fuera"
idle: "En espera"
heating: "Calentar a"
heating: "Calentando"
off_text: "Apagado"
auto: "Automático"
heat: "Calentar"
Expand All @@ -51,7 +51,7 @@ es:
title_plural: "Dispositivos"

safety:
title_plural: 'Safties'
title_plural: 'Seguridad'

media_player:
title_plural: "Reproductores multimedia"
Expand Down Expand Up @@ -93,7 +93,7 @@ es:
title: "Configuración de temas"
reload_configuration: 'Recargar temas'
theme_docs: "Lista de temas"
support_paypal: "Done con PayPal"
support_paypal: "Dona con PayPal"
buy_coffee: "Cómprame un café"
by: "Por"
version: "Versión"
Expand All @@ -107,11 +107,11 @@ es:
title_plural: 'Cerraduras'

alarm:
title: 'Alarm'
title: 'Alarma'

vibration:
title: 'Vibration'
title_plural: "Vibration Sensors"
title: 'Vibración'
title_plural: "Sensores de vibración"

weather:
title: 'Weather'
title: 'Clima'
117 changes: 117 additions & 0 deletions custom_components/dwains_dashboard/lovelace/translations/sk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# Translation by pavolholes

sk:
greetings:
good_morning: 'Dobré Ráno'
good_afternoon: 'Dobré Popoludnie'
good_evening: 'Dobrý Večer'

house_information:
title: 'Informácie o domove'
favorites: 'Obľúbené'
activity: 'Aktivity (Dvere, okná, pohyb)'

motion:
title: 'Pohyb'
title_plural: 'Pohyby'

light:
title_plural: 'Svetlá'

door:
title: 'Dvere'
title_plural: 'Dverí'

window:
title: 'Okno'
title_plural: 'Okná'

climate:
title: 'Teplota'
title_plural: 'Teploty'
inside: 'vnútri'
outside: 'Vonku'
idle: 'nečinný'
heating: 'Ohrev na'
off_text: 'Vypnuté'
auto: 'Program'
heat: 'Ohrev'
cool: 'Chladenie'
heat_cool: 'Ohrev/Chladenie'
dry: 'Suchý'
fan_only: 'Iba ventilátor'
this_room: 'Táto izba'
temperature: 'Teplota'
humidity: 'Vlhkosť'

cover:
title_plural: 'Kryty'

device:
title_plural: 'Zariadenia'

safety:
title_plural: 'Bezpečnostné prvky'

media_player:
title_plural: 'Prehrávače'

vacuum:
title: 'Vysávač'
title_plural: 'Vysávače'

plant:
title_plural: 'Rastliny'

home:
title: 'Prehľad'

rooms:
title: 'Miestnosti'

all_lights:
title: 'Všetky svetlá'

scenes:
title: 'Scény'
not_defined: 'Žiadne scény nie sú definované'

cameras:
title: 'Kamery'
not_defined: 'Žiadne kamery nie sú definované'

more_page:
title: 'Viac'
house_info: 'Info o domácnosti'
house_data:
title: 'Dáta domácnosti'
all_sensors: 'Všetky senzory'
all_batteries: 'Všetky batérie'
config: 'Nastavenia'
developer_tools: 'Vývojárske nástroje'
settings:
title: 'Nastavenie témy'
reload_configuration: 'Obnoviť nastavenie témy'
theme_docs: 'Dokumentácia témy'
support_paypal: 'Podporiť/Darovať pomocu PayPal'
buy_coffee: 'Kúp mi kávu'
by: 'Od'
version: 'Verzia'
update_available: 'Je dostupná aktualizácia pre Dwains Theme!'
more_page_addons: 'Viac doplnkov'

more_entities:
title: 'Viac objektov'

lock:
title_plural: 'Zámky'

alarm:
title: 'Alarm'

weather:
title: 'Počasie'

vibration:
title: 'Vibrácie'
title_plural: 'Vibračné Senzory'
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# dwains_dashboard

- path: lights
{% if _dd_config.lights %}
{% if _dd_config.lights["main_menu"] and _dd_config.lights["main_menu"] == 'false' %}
visible: false
{% else %}
visible: true
{% endif %}
{% endif %}
icon: {{ _dd_icons.menu_lights|default('mdi:lightbulb-group') }}
title: {{ _dd_trans.all_lights.title }}
panel: true
Expand Down Expand Up @@ -169,4 +176,4 @@
items_classes: 'col-xs-12'
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
Original file line number Diff line number Diff line change
Expand Up @@ -862,9 +862,15 @@
item_classes: 'col-xs-12 col-sm-12 col-md-12 col-lg-12'
{% endif %}
{% for more_entity in room["page_entities"]["entities"] %}
- type: custom:button-card
entity: {{ more_entity["entity"] }}
template: room_more_entity
{% if more_entity["type"] and more_entity["type"] == 'graph' %}
- type: sensor
entity: {{ more_entity["entity"] }}
graph: line
{% else %}
- type: custom:button-card
entity: {{ more_entity["entity"] }}
template: room_more_entity
{% endif %}
{% if more_entity["entity"].split('.')[0] in ('switch', 'light') %}
tap_action:
action: toggle
Expand Down
3 changes: 2 additions & 1 deletion custom_components/dwains_dashboard/process_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def fromjson(value):
"Norwegian": "no",
"Romanian": "ro",
"Swedish": "se",
"Dutch": "nl"
"Dutch": "nl",
"Slovak": "sk"
}

def load_yamll(fname, secrets = None, args={}):
Expand Down

0 comments on commit 26c9a2e

Please sign in to comment.