Просмотр исходного кода

Add support for Brilliant ceiling fan with light

Issue #2363

- add 10m to timer translations
Jason Rumney 1 год назад
Родитель
Сommit
3e2ac2156e

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -694,3 +694,4 @@ Further device support has been made with the assistance of users. Please consid
 - [OsaedYahya](https://github.com/OsaedYahya) for contributing support for MyQ TD8 vide doorbell.
 - [holgergrote](https://github.com/holgergrote) for contributing support for Sygonix Smarter dehumidifier.
 - [rmf1995](https://github.com/rmf1995) for contributing support for Giatsu VAW 2 heat pump water heater.
+- [murch1](https://github.com/murch1) for contributing support for Brilliant ceiling fan with light.

+ 1 - 0
DEVICES.md

@@ -212,6 +212,7 @@
 - Atomberg Gorilla fan V2
 - Atomi 52 inch ceiling fan
 - Breville AirDynamic 3D pedestal fan
+- Brilliant Ceiling fan with light
 - Carro ceiling fan with cool and warm white lights
 - Carro PN-04F02D fan with dimmable light
 - Casafan ECO Neo III ceiling fan with light

+ 79 - 0
custom_components/tuya_local/devices/briliant_fan_light.yaml

@@ -0,0 +1,79 @@
+name: Ceiling Fan
+products:
+  - id: q0czoqfxdjynmkgj
+    name: Brilliant Smart Ceiling Fan
+primary_entity:
+  entity: fan
+  translation_key: fan_with_presets
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 3
+      name: speed
+      type: string
+      mapping:
+        - dps_val: "1"
+          value: 33
+        - dps_val: "2"
+          value: 66
+        - dps_val: "3"
+          value: 100
+    - id: 2
+      name: preset_mode
+      type: string
+      mapping:
+        - dps_val: Normal
+          value: normal
+        - dps_val: Sleep
+          value: sleep
+        - dps_val: WakeUp
+          value: fresh
+        - dps_val: Nature
+          value: nature
+secondary_entities:
+  - entity: light
+    dps:
+      - id: 9
+        name: switch
+        type: boolean
+      - id: 10
+        name: brightness
+        type: integer
+        range:
+          min: 10
+          max: 100
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 6
+        type: string
+        optional: true
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: cancel
+          - dps_val: null
+            value: cancel
+            hidden: true
+          - dps_val: "1"
+            value: "10m"
+          - dps_val: "2"
+            value: "30m"
+          - dps_val: "3"
+            value: "1h"
+          - dps_val: "4"
+            value: "2h"
+          - dps_val: "5"
+            value: "3h"
+          - dps_val: "6"
+            value: "4h"
+  - entity: sensor
+    translation_key: time_remaining
+    category: diagnostic
+    dps:
+      - id: 7
+        type: integer
+        name: sensor
+        unit: min

+ 1 - 0
custom_components/tuya_local/translations/bg.json

@@ -440,6 +440,7 @@
                 "name": "Таймер",
                 "state": {
                     "cancel": "Отказ",
+                    "10m": "10 минути",
                     "30m": "30 минути",
                     "1h": "1 час",
                     "1h30m": "1 час 30 минути",

+ 1 - 0
custom_components/tuya_local/translations/cz.json

@@ -440,6 +440,7 @@
                 "name": "Časovač",
                 "state": {
                     "cancel": "Zrušit",
+                    "10m": "10 minut",
                     "30m": "30 minut",
                     "1h": "1 hodina",
                     "1h30m": "1 hodina 30 minut",

+ 1 - 0
custom_components/tuya_local/translations/de.json

@@ -439,6 +439,7 @@
                 "name": "Timer",
                 "state": {
                     "cancel": "Abbrechen",
+                    "10m": "10 Minuten",
                     "30m": "30 Minuten",
                     "1h": "1 Stunde",
                     "1h30m": "1 Stunde 30 Minuten",

+ 1 - 0
custom_components/tuya_local/translations/el.json

@@ -440,6 +440,7 @@
                 "name": "Χρονοδιακόπτης",
                 "state": {
                     "cancel": "Ακύρωση",
+                    "10m": "10 λεπτά",
                     "30m": "30 λεπτά",
                     "1h": "1 ώρα",
                     "1h30m": "1 ώρα 30 λεπτά",

+ 1 - 0
custom_components/tuya_local/translations/en.json

@@ -440,6 +440,7 @@
                 "name": "Timer",
                 "state": {
                     "cancel": "Cancel",
+                    "10m": "10 minutes",
                     "30m": "30 minutes",
                     "1h": "1 hour",
                     "1h30m": "1 hour 30 minutes",

+ 1 - 0
custom_components/tuya_local/translations/es.json

@@ -373,6 +373,7 @@
                 "name": "Temporizador",
                 "state": {
                     "cancel": "Cancelar",
+                    "10m": "10 minutos",
                     "30m": "30 minutos",
                     "1h": "1 hora",
                     "1h30m": "1 hora 30 minutos",

+ 1 - 0
custom_components/tuya_local/translations/fr.json

@@ -440,6 +440,7 @@
                 "name": "Minuteur",
                 "state": {
                     "cancel": "Annuler",
+                    "10m": "10 minutes",
                     "30m": "30 minutes",
                     "1h": "1 heure",
                     "1h30m": "1 heure 30 minutes",

+ 1 - 0
custom_components/tuya_local/translations/hu.json

@@ -440,6 +440,7 @@
                 "name": "Időzítő",
                 "state": {
                     "cancel": "Mégse",
+                    "10m": "10 perc",
                     "30m": "30 perc",
                     "1h": "1 óra",
                     "1h30m": "1 óra 30 perc",

+ 1 - 0
custom_components/tuya_local/translations/id.json

@@ -440,6 +440,7 @@
                 "name": "Pengatur waktu",
                 "state": {
                     "cancel": "Batal",
+                    "10m": "10 menit",
                     "30m": "30 menit",
                     "1h": "1 jam",
                     "1h30m": "1 jam 30 menit",

+ 1 - 0
custom_components/tuya_local/translations/it.json

@@ -440,6 +440,7 @@
                 "name": "Timer",
                 "state": {
                     "cancel": "Annulla",
+                    "10m": "10 minuti",
                     "30m": "30 minuti",
                     "1h": "1 ora",
                     "1h30m": "1 ora 30 minuti",

+ 1 - 0
custom_components/tuya_local/translations/ja.json

@@ -440,6 +440,7 @@
                 "name": "タイマー",
                 "state": {
                     "cancel": "キャンセル",
+                    "10m": "10分",
                     "30m": "30分",
                     "1h": "1時間",
                     "1h30m": "1時間30分",

+ 1 - 0
custom_components/tuya_local/translations/no-NB.json

@@ -440,6 +440,7 @@
                 "name": "Timer",
                 "state": {
                     "cancel": "Avbryt",
+                    "10m": "10 minutter",
                     "30m": "30 minutter",
                     "1h": "1 time",
                     "1h30m": "1 time 30 minutter",

+ 1 - 0
custom_components/tuya_local/translations/pl.json

@@ -440,6 +440,7 @@
                 "name": "Regulator czasowy",
                 "state": {
                     "cancel": "Anuluj",
+                    "10m": "10 minut",
                     "30m": "30 minut",
                     "1h": "1 godzina",
                     "1h30m": "1 godzina 30 minut",

+ 1 - 0
custom_components/tuya_local/translations/pt-BR.json

@@ -440,6 +440,7 @@
                 "name": "Cronômetro",
                 "state": {
                     "cancel": "Cancelar",
+                    "10m": "10 minutos",
                     "30m": "30 minutos",
                     "1h": "1 hora",
                     "1h30m": "1 hora e 30 minutos",

+ 1 - 0
custom_components/tuya_local/translations/ru.json

@@ -440,6 +440,7 @@
                 "name": "Таймер",
                 "state": {
                     "cancel": "Отмена",
+                    "10m": "10 минут",
                     "30m": "30 минут",
                     "1h": "1 час",
                     "1h30m": "1 час 30 минут",

+ 1 - 0
custom_components/tuya_local/translations/uk.json

@@ -441,6 +441,7 @@
                 "name": "Таймер",
                 "state": {
                     "cancel": "Скасувати",
+                    "10m": "10 хвилин",
                     "30m": "30 хвилин",
                     "1h": "1 година",
                     "1h30m": "1 година 30 хвилин",

+ 1 - 0
custom_components/tuya_local/translations/ur.json

@@ -440,6 +440,7 @@
                 "name": "ٹائمر",
                 "state": {
                     "cancel": "منسوخ کریں",
+                    "10m": "10 منٹ",
                     "30m": "30 منٹ",
                     "1h": "1 گھنٹہ",
                     "1h30m": "1 گھنٹہ 30 منٹ",

+ 1 - 0
custom_components/tuya_local/translations/zh-Hans.json

@@ -440,6 +440,7 @@
                 "name": "计时器",
                 "state": {
                     "cancel": "取消",
+                    "10m": "10分钟",
                     "30m": "30分钟",
                     "1h": "1小时",
                     "1h30m": "1小时30分钟",

+ 1 - 0
custom_components/tuya_local/translations/zh-Hant.json

@@ -441,6 +441,7 @@
                 "name": "計時器",
                 "state": {
                     "cancel": "取消",
+                    "10m": "10分鐘",
                     "30m": "30分鐘",
                     "1h": "1小時",
                     "1h30m": "1小時30分鐘",