mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-23 16:04:25 +01:00
implemented localization for popup pages
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
HMI/nspanel.HMI
BIN
HMI/nspanel.HMI
Binary file not shown.
BIN
HMI/nspanel.tft
BIN
HMI/nspanel.tft
Binary file not shown.
@@ -17,6 +17,9 @@ translations = {
|
|||||||
'run': "Hardloop",
|
'run': "Hardloop",
|
||||||
'lock': "Sluit toe",
|
'lock': "Sluit toe",
|
||||||
'unlock': "Sluit oop",
|
'unlock': "Sluit oop",
|
||||||
|
'brightness': "Helderheid",
|
||||||
|
'color_temperature': "Kleur temperatuur",
|
||||||
|
'position': "Posisie",
|
||||||
},
|
},
|
||||||
'ar': {
|
'ar': {
|
||||||
'ACTIVATE': "تفعيل",
|
'ACTIVATE': "تفعيل",
|
||||||
@@ -36,6 +39,9 @@ translations = {
|
|||||||
'run': "تشغيل",
|
'run': "تشغيل",
|
||||||
'lock': "قفل",
|
'lock': "قفل",
|
||||||
'unlock': "فتح",
|
'unlock': "فتح",
|
||||||
|
'brightness': "السطوع",
|
||||||
|
'color_temperature': "درجة حرارة اللون",
|
||||||
|
'position': "موضع",
|
||||||
},
|
},
|
||||||
'bg': {
|
'bg': {
|
||||||
'ACTIVATE': "Активирай",
|
'ACTIVATE': "Активирай",
|
||||||
@@ -56,6 +62,9 @@ translations = {
|
|||||||
'run': "Изпълни",
|
'run': "Изпълни",
|
||||||
'lock': "Заключване",
|
'lock': "Заключване",
|
||||||
'unlock': "Отключване",
|
'unlock': "Отключване",
|
||||||
|
'brightness': "Яркост",
|
||||||
|
'color_temperature': "Цветова температура",
|
||||||
|
'position': "Позиция",
|
||||||
},
|
},
|
||||||
'ca': {
|
'ca': {
|
||||||
'PRESS': "Prem",
|
'PRESS': "Prem",
|
||||||
@@ -77,6 +86,9 @@ translations = {
|
|||||||
'run': "Executa",
|
'run': "Executa",
|
||||||
'lock': "Bloquejar",
|
'lock': "Bloquejar",
|
||||||
'unlock': "Desbloquejar",
|
'unlock': "Desbloquejar",
|
||||||
|
'brightness': "Brillantor",
|
||||||
|
'color_temperature': "Temperatura de color",
|
||||||
|
'position': "Posició",
|
||||||
},
|
},
|
||||||
'cs': {
|
'cs': {
|
||||||
'PRESS': "Stisknutí",
|
'PRESS': "Stisknutí",
|
||||||
@@ -98,6 +110,9 @@ translations = {
|
|||||||
'run': "Spustit",
|
'run': "Spustit",
|
||||||
'lock': "Zamknout",
|
'lock': "Zamknout",
|
||||||
'unlock': "Odemknout",
|
'unlock': "Odemknout",
|
||||||
|
'brightness': "Jas",
|
||||||
|
'color_temperature': "Teplota barvy",
|
||||||
|
'position': "Pozice",
|
||||||
},
|
},
|
||||||
'da': {
|
'da': {
|
||||||
'PRESS': "Tryk",
|
'PRESS': "Tryk",
|
||||||
@@ -119,6 +134,9 @@ translations = {
|
|||||||
'run': "Kør",
|
'run': "Kør",
|
||||||
'lock': "Lås",
|
'lock': "Lås",
|
||||||
'unlock': "Lås op",
|
'unlock': "Lås op",
|
||||||
|
'brightness': "Lysstyrke",
|
||||||
|
'color_temperature': "Farvetemperatur",
|
||||||
|
'position': "Position",
|
||||||
},
|
},
|
||||||
'de': {
|
'de': {
|
||||||
'PRESS': "Drücken",
|
'PRESS': "Drücken",
|
||||||
@@ -140,6 +158,9 @@ translations = {
|
|||||||
'run': "Ausführen",
|
'run': "Ausführen",
|
||||||
'lock': "Verriegeln",
|
'lock': "Verriegeln",
|
||||||
'unlock': "Entriegeln",
|
'unlock': "Entriegeln",
|
||||||
|
'brightness': "Helligkeit",
|
||||||
|
'color_temperature': "Farbtemperatur",
|
||||||
|
'position': "Position",
|
||||||
},
|
},
|
||||||
'el': {
|
'el': {
|
||||||
'PRESS': "Πατήστε",
|
'PRESS': "Πατήστε",
|
||||||
@@ -161,6 +182,9 @@ translations = {
|
|||||||
'run': "Εκτέλεση",
|
'run': "Εκτέλεση",
|
||||||
'lock': "Κλείδωμα",
|
'lock': "Κλείδωμα",
|
||||||
'unlock': "Ξεκλείδωμα",
|
'unlock': "Ξεκλείδωμα",
|
||||||
|
'brightness': "Φωτεινότητα",
|
||||||
|
'color_temperature': "Θερμοκρασία χρώματος",
|
||||||
|
'position': "Θέση",
|
||||||
},
|
},
|
||||||
'en': {
|
'en': {
|
||||||
'PRESS': "Press",
|
'PRESS': "Press",
|
||||||
@@ -182,6 +206,9 @@ translations = {
|
|||||||
'run': "Run",
|
'run': "Run",
|
||||||
'lock': "Lock",
|
'lock': "Lock",
|
||||||
'unlock': "Unlock",
|
'unlock': "Unlock",
|
||||||
|
'brightness': "Brightness",
|
||||||
|
'color_temperature': "Color temperature",
|
||||||
|
'position': "Position",
|
||||||
},
|
},
|
||||||
'es': {
|
'es': {
|
||||||
'PRESS': "Pulsa",
|
'PRESS': "Pulsa",
|
||||||
@@ -203,6 +230,9 @@ translations = {
|
|||||||
'run': "Ejecutar",
|
'run': "Ejecutar",
|
||||||
'lock': "Bloquear",
|
'lock': "Bloquear",
|
||||||
'unlock': "Desbloquear",
|
'unlock': "Desbloquear",
|
||||||
|
'brightness': "Brillo",
|
||||||
|
'color_temperature': "Temperatura del color",
|
||||||
|
'position': "Posición",
|
||||||
},
|
},
|
||||||
'et': {
|
'et': {
|
||||||
'PRESS': "Vajuta nuppu",
|
'PRESS': "Vajuta nuppu",
|
||||||
@@ -224,6 +254,9 @@ translations = {
|
|||||||
'run': "Käivita",
|
'run': "Käivita",
|
||||||
'lock': "Lukusta",
|
'lock': "Lukusta",
|
||||||
'unlock': "Ava",
|
'unlock': "Ava",
|
||||||
|
'brightness': "Heledus",
|
||||||
|
'color_temperature': "Värvustemperatuur",
|
||||||
|
'position': "Asend",
|
||||||
},
|
},
|
||||||
'fa': {
|
'fa': {
|
||||||
'ACTIVATE': "فعال سازی",
|
'ACTIVATE': "فعال سازی",
|
||||||
@@ -243,6 +276,9 @@ translations = {
|
|||||||
'run': "اجرا",
|
'run': "اجرا",
|
||||||
'lock': "قفل",
|
'lock': "قفل",
|
||||||
'unlock': "باز کردن",
|
'unlock': "باز کردن",
|
||||||
|
'brightness': "روشنایی",
|
||||||
|
'color_temperature': "دمای رنگ",
|
||||||
|
'position': "موقعیت",
|
||||||
},
|
},
|
||||||
'fi': {
|
'fi': {
|
||||||
'PRESS': "Paina",
|
'PRESS': "Paina",
|
||||||
@@ -264,6 +300,9 @@ translations = {
|
|||||||
'run': "Suorita",
|
'run': "Suorita",
|
||||||
'lock': "Lukitse",
|
'lock': "Lukitse",
|
||||||
'unlock': "Avaa lukitus",
|
'unlock': "Avaa lukitus",
|
||||||
|
'brightness': "Kirkkaus",
|
||||||
|
'color_temperature': "Värilämpötila",
|
||||||
|
'position': "Sijainti",
|
||||||
},
|
},
|
||||||
'fr': {
|
'fr': {
|
||||||
'PRESS': "Appui",
|
'PRESS': "Appui",
|
||||||
@@ -285,6 +324,9 @@ translations = {
|
|||||||
'run': "Exécuter",
|
'run': "Exécuter",
|
||||||
'lock': "Verrouiller",
|
'lock': "Verrouiller",
|
||||||
'unlock': "Déverrouiller",
|
'unlock': "Déverrouiller",
|
||||||
|
'brightness': "Luminosité",
|
||||||
|
'color_temperature': "Température de couleur",
|
||||||
|
'position': "Position",
|
||||||
},
|
},
|
||||||
'he': {
|
'he': {
|
||||||
'PRESS': "לחיצה",
|
'PRESS': "לחיצה",
|
||||||
@@ -306,6 +348,9 @@ translations = {
|
|||||||
'run': "רוץ",
|
'run': "רוץ",
|
||||||
'lock': "נעילה",
|
'lock': "נעילה",
|
||||||
'unlock': "ביטול נעילה",
|
'unlock': "ביטול נעילה",
|
||||||
|
'brightness': "בהירות",
|
||||||
|
'color_temperature': "טמפרטורת הצבע",
|
||||||
|
'position': "מיקום",
|
||||||
},
|
},
|
||||||
'hr': {
|
'hr': {
|
||||||
'ACTIVATE': "Aktivirati",
|
'ACTIVATE': "Aktivirati",
|
||||||
@@ -325,6 +370,9 @@ translations = {
|
|||||||
'run': "Pokreni",
|
'run': "Pokreni",
|
||||||
'lock': "zaključati",
|
'lock': "zaključati",
|
||||||
'unlock': "Otključati",
|
'unlock': "Otključati",
|
||||||
|
'brightness': "Svjetlina",
|
||||||
|
'color_temperature': "Temperatura boje",
|
||||||
|
'position': "Pozicija",
|
||||||
},
|
},
|
||||||
'hu': {
|
'hu': {
|
||||||
'PRESS': "Gombnyomás",
|
'PRESS': "Gombnyomás",
|
||||||
@@ -346,6 +394,9 @@ translations = {
|
|||||||
'run': "Futtatás",
|
'run': "Futtatás",
|
||||||
'lock': "Bezár",
|
'lock': "Bezár",
|
||||||
'unlock': "Kinyit",
|
'unlock': "Kinyit",
|
||||||
|
'brightness': "Fényerő",
|
||||||
|
'color_temperature': "Színhőmérséklet",
|
||||||
|
'position': "Pozíció",
|
||||||
},
|
},
|
||||||
'hy': {
|
'hy': {
|
||||||
'ACTIVATE': "Ակտիվացնել",
|
'ACTIVATE': "Ակտիվացնել",
|
||||||
@@ -364,6 +415,9 @@ translations = {
|
|||||||
'disarm': "Զինաթափել",
|
'disarm': "Զինաթափել",
|
||||||
'lock': "Կողպեք",
|
'lock': "Կողպեք",
|
||||||
'unlock': "Բացել",
|
'unlock': "Բացել",
|
||||||
|
'brightness': "Պայծառություն",
|
||||||
|
'color_temperature': "Գունային ջերմաստիճան",
|
||||||
|
'position': "Դիրք",
|
||||||
},
|
},
|
||||||
'id': {
|
'id': {
|
||||||
'PRESS': "Tekan",
|
'PRESS': "Tekan",
|
||||||
@@ -385,6 +439,9 @@ translations = {
|
|||||||
'run': "Jalankan",
|
'run': "Jalankan",
|
||||||
'lock': "Kunci",
|
'lock': "Kunci",
|
||||||
'unlock': "Buka",
|
'unlock': "Buka",
|
||||||
|
'brightness': "Kecerahan",
|
||||||
|
'color_temperature': "Temperatur warna",
|
||||||
|
'position': "Posisi",
|
||||||
},
|
},
|
||||||
'is': {
|
'is': {
|
||||||
'PRESS': "Ýttu á",
|
'PRESS': "Ýttu á",
|
||||||
@@ -405,6 +462,9 @@ translations = {
|
|||||||
'run': "Keyra",
|
'run': "Keyra",
|
||||||
'lock': "Læsa",
|
'lock': "Læsa",
|
||||||
'unlock': "Aflæsa",
|
'unlock': "Aflæsa",
|
||||||
|
'brightness': "Birtustig",
|
||||||
|
'color_temperature': "Litastig",
|
||||||
|
'position': "Staðsetning",
|
||||||
},
|
},
|
||||||
'it': {
|
'it': {
|
||||||
'PRESS': "Premi",
|
'PRESS': "Premi",
|
||||||
@@ -426,6 +486,9 @@ translations = {
|
|||||||
'run': "Esegui",
|
'run': "Esegui",
|
||||||
'lock': "Blocca",
|
'lock': "Blocca",
|
||||||
'unlock': "Sblocca",
|
'unlock': "Sblocca",
|
||||||
|
'brightness': "Luminosità",
|
||||||
|
'color_temperature': "Temperatura colore",
|
||||||
|
'position': "Apertura",
|
||||||
},
|
},
|
||||||
'lb': {
|
'lb': {
|
||||||
'ACTIVATE': "Aktivéieren",
|
'ACTIVATE': "Aktivéieren",
|
||||||
@@ -445,6 +508,9 @@ translations = {
|
|||||||
'run': "Ausféieren",
|
'run': "Ausféieren",
|
||||||
'lock': "Spären",
|
'lock': "Spären",
|
||||||
'unlock': "Entspären",
|
'unlock': "Entspären",
|
||||||
|
'brightness': "Hellegkeet",
|
||||||
|
'color_temperature': "Faarf Temperatur",
|
||||||
|
'position': "Positioun",
|
||||||
},
|
},
|
||||||
'lt': {
|
'lt': {
|
||||||
'ACTIVATE': "Suaktyvinti",
|
'ACTIVATE': "Suaktyvinti",
|
||||||
@@ -463,6 +529,9 @@ translations = {
|
|||||||
'run': "Paleisti",
|
'run': "Paleisti",
|
||||||
'lock': "Užrakinti",
|
'lock': "Užrakinti",
|
||||||
'unlock': "Atrakinti",
|
'unlock': "Atrakinti",
|
||||||
|
'brightness': "Ryškumas",
|
||||||
|
'color_temperature': "Spalvos temperatūra",
|
||||||
|
'position': "Padėtis",
|
||||||
},
|
},
|
||||||
'lv': {
|
'lv': {
|
||||||
'ACTIVATE': "Aktivizēt",
|
'ACTIVATE': "Aktivizēt",
|
||||||
@@ -481,6 +550,9 @@ translations = {
|
|||||||
'disarm': "Atslēgt",
|
'disarm': "Atslēgt",
|
||||||
'lock': "Aizslēgt",
|
'lock': "Aizslēgt",
|
||||||
'unlock': "Atslēgt",
|
'unlock': "Atslēgt",
|
||||||
|
'brightness': "Spilgtums",
|
||||||
|
'color_temperature': "Krāsu temperatūra",
|
||||||
|
'position': "Pozīcija",
|
||||||
},
|
},
|
||||||
'nb': {
|
'nb': {
|
||||||
'PRESS': "trykk",
|
'PRESS': "trykk",
|
||||||
@@ -502,6 +574,9 @@ translations = {
|
|||||||
'run': "Kjør",
|
'run': "Kjør",
|
||||||
'lock': "Lås",
|
'lock': "Lås",
|
||||||
'unlock': "Lås opp",
|
'unlock': "Lås opp",
|
||||||
|
'brightness': "Lysstyrke",
|
||||||
|
'color_temperature': "Fargetemperatur",
|
||||||
|
'position': "Posisjon",
|
||||||
},
|
},
|
||||||
'nl': {
|
'nl': {
|
||||||
'PRESS': "Klik",
|
'PRESS': "Klik",
|
||||||
@@ -523,6 +598,9 @@ translations = {
|
|||||||
'run': "Uitvoeren",
|
'run': "Uitvoeren",
|
||||||
'lock': "Vergrendelen",
|
'lock': "Vergrendelen",
|
||||||
'unlock': "Ontgrendelen",
|
'unlock': "Ontgrendelen",
|
||||||
|
'brightness': "Helderheid",
|
||||||
|
'color_temperature': "Kleurtemperatuur",
|
||||||
|
'position': "Positie",
|
||||||
},
|
},
|
||||||
'nn': {
|
'nn': {
|
||||||
'ACTIVATE': "Aktiver",
|
'ACTIVATE': "Aktiver",
|
||||||
@@ -543,6 +621,9 @@ translations = {
|
|||||||
'run': "Køyr",
|
'run': "Køyr",
|
||||||
'lock': "Lås",
|
'lock': "Lås",
|
||||||
'unlock': "Lås opp",
|
'unlock': "Lås opp",
|
||||||
|
'brightness': "Lysstyrke",
|
||||||
|
'color_temperature': "Fargetemperatur",
|
||||||
|
'position': "Posisjon",
|
||||||
},
|
},
|
||||||
'pl': {
|
'pl': {
|
||||||
'PRESS': "Naciśnij",
|
'PRESS': "Naciśnij",
|
||||||
@@ -564,6 +645,9 @@ translations = {
|
|||||||
'run': "Uruchom",
|
'run': "Uruchom",
|
||||||
'lock': "Zablokuj",
|
'lock': "Zablokuj",
|
||||||
'unlock': "Odblokuj",
|
'unlock': "Odblokuj",
|
||||||
|
'brightness': "Jasność",
|
||||||
|
'color_temperature': "Temperatura barwy",
|
||||||
|
'position': "Pozycja",
|
||||||
},
|
},
|
||||||
'pt': {
|
'pt': {
|
||||||
'PRESS': "Pressione",
|
'PRESS': "Pressione",
|
||||||
@@ -584,6 +668,9 @@ translations = {
|
|||||||
'run': "Executar",
|
'run': "Executar",
|
||||||
'lock': "Bloquear",
|
'lock': "Bloquear",
|
||||||
'unlock': "Desbloquear",
|
'unlock': "Desbloquear",
|
||||||
|
'brightness': "Brilho",
|
||||||
|
'color_temperature': "Temperatura de cor",
|
||||||
|
'position': "Posição",
|
||||||
},
|
},
|
||||||
'ro': {
|
'ro': {
|
||||||
'ACTIVATE': "Activați",
|
'ACTIVATE': "Activați",
|
||||||
@@ -604,6 +691,9 @@ translations = {
|
|||||||
'run': "Rulați",
|
'run': "Rulați",
|
||||||
'lock': "Blocat",
|
'lock': "Blocat",
|
||||||
'unlock': "Deblocare",
|
'unlock': "Deblocare",
|
||||||
|
'brightness': "Luminozitate",
|
||||||
|
'color_temperature': "Temperatură de culoare",
|
||||||
|
'position': "Poziţie",
|
||||||
},
|
},
|
||||||
'ru': {
|
'ru': {
|
||||||
'PRESS': "Нажать",
|
'PRESS': "Нажать",
|
||||||
@@ -625,6 +715,9 @@ translations = {
|
|||||||
'run': "Запустить",
|
'run': "Запустить",
|
||||||
'lock': "Закрыть",
|
'lock': "Закрыть",
|
||||||
'unlock': "Открыть",
|
'unlock': "Открыть",
|
||||||
|
'brightness': "Яркость",
|
||||||
|
'color_temperature': "Цветовая температура",
|
||||||
|
'position': "Положение",
|
||||||
},
|
},
|
||||||
'sk': {
|
'sk': {
|
||||||
'ACTIVATE': "Aktivovať",
|
'ACTIVATE': "Aktivovať",
|
||||||
@@ -645,6 +738,9 @@ translations = {
|
|||||||
'run': "Spustiť",
|
'run': "Spustiť",
|
||||||
'lock': "Zamknúť",
|
'lock': "Zamknúť",
|
||||||
'unlock': "Odomknúť",
|
'unlock': "Odomknúť",
|
||||||
|
'brightness': "Jas",
|
||||||
|
'color_temperature': "Teplota farby",
|
||||||
|
'position': "Poloha",
|
||||||
},
|
},
|
||||||
'sl': {
|
'sl': {
|
||||||
'PRESS': "Pritisnite",
|
'PRESS': "Pritisnite",
|
||||||
@@ -665,6 +761,9 @@ translations = {
|
|||||||
'run': "Poženi",
|
'run': "Poženi",
|
||||||
'lock': "Zakleni",
|
'lock': "Zakleni",
|
||||||
'unlock': "Odkleni",
|
'unlock': "Odkleni",
|
||||||
|
'brightness': "Svetlost",
|
||||||
|
'color_temperature': "Temperatura barve",
|
||||||
|
'position': "Položaj",
|
||||||
},
|
},
|
||||||
'sv': {
|
'sv': {
|
||||||
'PRESS': "Tryck",
|
'PRESS': "Tryck",
|
||||||
@@ -686,6 +785,9 @@ translations = {
|
|||||||
'run': "Kör",
|
'run': "Kör",
|
||||||
'lock': "Lås",
|
'lock': "Lås",
|
||||||
'unlock': "Lås upp",
|
'unlock': "Lås upp",
|
||||||
|
'brightness': "Ljusstyrka",
|
||||||
|
'color_temperature': "Färgtemperatur",
|
||||||
|
'position': "Position",
|
||||||
},
|
},
|
||||||
'th': {
|
'th': {
|
||||||
'PRESS': "กด",
|
'PRESS': "กด",
|
||||||
@@ -705,6 +807,9 @@ translations = {
|
|||||||
'disarm': "ปิดระบบสัญญาณกันขโมย",
|
'disarm': "ปิดระบบสัญญาณกันขโมย",
|
||||||
'lock': "ล็อค",
|
'lock': "ล็อค",
|
||||||
'unlock': "ปลดล็อค",
|
'unlock': "ปลดล็อค",
|
||||||
|
'brightness': "ความสว่าง",
|
||||||
|
'color_temperature': "อุณหภูมิสี",
|
||||||
|
'position': "ตำแหน่ง",
|
||||||
},
|
},
|
||||||
'tr': {
|
'tr': {
|
||||||
'PRESS': "Basınız",
|
'PRESS': "Basınız",
|
||||||
@@ -726,6 +831,9 @@ translations = {
|
|||||||
'run': "Çalıştır",
|
'run': "Çalıştır",
|
||||||
'lock': "Kilitle",
|
'lock': "Kilitle",
|
||||||
'unlock': "Kilidi aç",
|
'unlock': "Kilidi aç",
|
||||||
|
'brightness': "Parlaklık",
|
||||||
|
'color_temperature': "Renk sıcaklığı",
|
||||||
|
'position': "Pozisyon",
|
||||||
},
|
},
|
||||||
'uk': {
|
'uk': {
|
||||||
'PRESS': "Натисніть",
|
'PRESS': "Натисніть",
|
||||||
@@ -746,6 +854,9 @@ translations = {
|
|||||||
'run': "Запустити",
|
'run': "Запустити",
|
||||||
'lock': "Блокувати",
|
'lock': "Блокувати",
|
||||||
'unlock': "Розблокувати",
|
'unlock': "Розблокувати",
|
||||||
|
'brightness': "Яскравість",
|
||||||
|
'color_temperature': "Кольорова температура",
|
||||||
|
'position': "Положення",
|
||||||
},
|
},
|
||||||
'vi': {
|
'vi': {
|
||||||
'ACTIVATE': "Kích hoạt",
|
'ACTIVATE': "Kích hoạt",
|
||||||
@@ -765,6 +876,9 @@ translations = {
|
|||||||
'run': "Chạy",
|
'run': "Chạy",
|
||||||
'lock': "Khóa",
|
'lock': "Khóa",
|
||||||
'unlock': "Mở khóa",
|
'unlock': "Mở khóa",
|
||||||
|
'brightness': "Độ sáng",
|
||||||
|
'color_temperature': "Nhiệt độ màu",
|
||||||
|
'position': "Vị trí",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -774,4 +888,3 @@ def get_translation(locale, input):
|
|||||||
return translations.get(locale).get(input, en_fallback_res)
|
return translations.get(locale).get(input, en_fallback_res)
|
||||||
else:
|
else:
|
||||||
return en_fallback_res
|
return en_fallback_res
|
||||||
|
|
||||||
|
|||||||
@@ -402,12 +402,16 @@ class LuiPagesGen(object):
|
|||||||
color = "enable"
|
color = "enable"
|
||||||
else:
|
else:
|
||||||
color = "disable"
|
color = "disable"
|
||||||
|
brightness_translation = get_translation(self._locale, "brightness")
|
||||||
|
color_temp_translation = get_translation(self._locale, "color_temperature")
|
||||||
|
color_translation = "Color"
|
||||||
self._send_mqtt_msg(f"entityUpdateDetail~{get_icon_id('lightbulb')}~{icon_color}~{switch_val}~{brightness}~{color_temp}~{color}")
|
self._send_mqtt_msg(f"entityUpdateDetail~{get_icon_id('lightbulb')}~{icon_color}~{switch_val}~{brightness}~{color_temp}~{color}")
|
||||||
|
|
||||||
def generate_shutter_detail_page(self, entity):
|
def generate_shutter_detail_page(self, entity):
|
||||||
entity = self._ha_api.get_entity(entity)
|
entity = self._ha_api.get_entity(entity)
|
||||||
pos = int(entity.attributes.get("current_position", 50))
|
pos = int(entity.attributes.get("current_position", 50))
|
||||||
self._send_mqtt_msg(f"entityUpdateDetail~{pos}")
|
pos_translation = get_translation(self._locale, "position")
|
||||||
|
self._send_mqtt_msg(f"entityUpdateDetail~{pos}~{pos_translation}")
|
||||||
|
|
||||||
def send_message_page(self, id, heading, msg, b1, b2):
|
def send_message_page(self, id, heading, msg, b1, b2):
|
||||||
self._send_mqtt_msg(f"pageType~popupNotify")
|
self._send_mqtt_msg(f"pageType~popupNotify")
|
||||||
|
|||||||
Reference in New Issue
Block a user