Kaynağa Gözat

Summary: KCL M1803A: swap "big" and "small" spray modes

- swap speeds (for spray level)
- add translation key for aroma_diffuser presets
- add timer preset to translations

Issue #2756
Jason Rumney 1 yıl önce
ebeveyn
işleme
1a14ed4d0f

+ 3 - 2
custom_components/tuya_local/devices/kcl_m1803a_diffuser.yaml

@@ -5,6 +5,7 @@ products:
     model: KCL-M1803A-M
     model: KCL-M1803A-M
 entities:
 entities:
   - entity: fan
   - entity: fan
+    translation_only_key: aroma_diffuser
     dps:
     dps:
       - id: 2
       - id: 2
         type: string
         type: string
@@ -32,9 +33,9 @@ entities:
         optional: true
         optional: true
         name: speed
         name: speed
         mapping:
         mapping:
-          - dps_val: "2"
-            value: 50
           - dps_val: "1"
           - dps_val: "1"
+            value: 50
+          - dps_val: "2"
             value: 100
             value: 100
   - entity: sensor
   - entity: sensor
     translation_key: time_remaining
     translation_key: time_remaining

+ 2 - 1
custom_components/tuya_local/icons.json

@@ -65,7 +65,8 @@
                             "medium": "mdi:signal-cellular-2",
                             "medium": "mdi:signal-cellular-2",
                             "high": "mdi:signal-cellular-3",
                             "high": "mdi:signal-cellular-3",
                             "continuous": "mdi:clock-start",
                             "continuous": "mdi:clock-start",
-                            "intermittent": "mdi:timer-settings-outline"
+                            "intermittent": "mdi:timer-settings-outline",
+                            "timer": "mdi:timer"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -304,7 +304,8 @@
                             "medium": "Средно",
                             "medium": "Средно",
                             "high": "Високо",
                             "high": "Високо",
                             "continuous": "Непрекъснато",
                             "continuous": "Непрекъснато",
-                            "intermittent": "Интервално"
+                            "intermittent": "Интервално",
+                            "timer": "Таймер"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -304,7 +304,8 @@
                             "medium": "Střední",
                             "medium": "Střední",
                             "high": "Vysoký",
                             "high": "Vysoký",
                             "continuous": "Nepřetržitý",
                             "continuous": "Nepřetržitý",
-                            "intermittent": "Přerušovaný"
+                            "intermittent": "Přerušovaný",
+                            "timer": "Časovač"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -303,7 +303,8 @@
                             "medium": "Mittel",
                             "medium": "Mittel",
                             "high": "Hoch",
                             "high": "Hoch",
                             "continuous": "Dauerbetrieb",
                             "continuous": "Dauerbetrieb",
-                            "intermittent": "Intervall"
+                            "intermittent": "Intervall",
+                            "timer": "Timer"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -304,7 +304,8 @@
                             "medium": "Μεσαία",
                             "medium": "Μεσαία",
                             "high": "Υψηλή",
                             "high": "Υψηλή",
                             "continuous": "Συνεχής",
                             "continuous": "Συνεχής",
-                            "intermittent": "Διακεκομμένη"
+                            "intermittent": "Διακεκομμένη",
+                            "timer": "Χρονοδιακόπτης"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -304,7 +304,8 @@
                             "medium": "Medium",
                             "medium": "Medium",
                             "high": "High",
                             "high": "High",
                             "continuous": "Continuous",
                             "continuous": "Continuous",
-                            "intermittent": "Intermittent"
+                            "intermittent": "Intermittent",
+                            "timer": "Timer"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -304,7 +304,8 @@
                             "medium": "Medio",
                             "medium": "Medio",
                             "high": "Alto",
                             "high": "Alto",
                             "continuous": "Continuo",
                             "continuous": "Continuo",
-                            "intermittent": "Intermitente"
+                            "intermittent": "Intermitente",
+                            "timer": "Temporizador"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -304,7 +304,8 @@
                             "medium": "Moyen",
                             "medium": "Moyen",
                             "high": "Fort",
                             "high": "Fort",
                             "continuous": "Continu",
                             "continuous": "Continu",
-                            "intermittent": "Intermittent"
+                            "intermittent": "Intermittent",
+                            "timer": "Minuteur"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -305,7 +305,8 @@
                             "medium": "Közepes",
                             "medium": "Közepes",
                             "high": "Magas",
                             "high": "Magas",
                             "continuous": "Folyamatos",
                             "continuous": "Folyamatos",
-                            "intermittent": "Időszakos"
+                            "intermittent": "Időszakos",
+                            "timer": "Időzítő"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -304,7 +304,8 @@
                             "medium": "Sedang",
                             "medium": "Sedang",
                             "high": "Tinggi",
                             "high": "Tinggi",
                             "continuous": "Terus menerus",
                             "continuous": "Terus menerus",
-                            "intermittent": "Intermiten"
+                            "intermittent": "Intermiten",
+                            "timer": "Pengatur waktu"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -305,7 +305,8 @@
                             "medium": "Medio",
                             "medium": "Medio",
                             "high": "Alto",
                             "high": "Alto",
                             "continuous": "Continuo",
                             "continuous": "Continuo",
-                            "intermittent": "Intermittente"
+                            "intermittent": "Intermittente",
+                            "timer": "Timer"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -304,7 +304,8 @@
                             "medium": "中",
                             "medium": "中",
                             "high": "高い",
                             "high": "高い",
                             "continuous": "連続",
                             "continuous": "連続",
-                            "intermittent": "間欠"
+                            "intermittent": "間欠",
+                            "timer": "タイマー"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -305,7 +305,8 @@
                             "medium": "Medium",
                             "medium": "Medium",
                             "high": "Høy",
                             "high": "Høy",
                             "continuous": "Kontinuerlig",
                             "continuous": "Kontinuerlig",
-                            "intermittent": "Intermitterende"
+                            "intermittent": "Intermitterende",
+                            "timer": "Timer"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -304,7 +304,8 @@
                             "medium": "Średni",
                             "medium": "Średni",
                             "high": "Wysoki",
                             "high": "Wysoki",
                             "continuous": "Ciągły",
                             "continuous": "Ciągły",
-                            "intermittent": "Przerywany"
+                            "intermittent": "Przerywany",
+                            "timer": "Regulator czasowy"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -304,7 +304,8 @@
                             "medium": "Médio",
                             "medium": "Médio",
                             "high": "Alto",
                             "high": "Alto",
                             "continuous": "Contínuo",
                             "continuous": "Contínuo",
-                            "intermittent": "Intermitente"
+                            "intermittent": "Intermitente",
+                            "timer": "Temporizador"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -304,7 +304,8 @@
                             "medium": "Средний",
                             "medium": "Средний",
                             "high": "Высокий",
                             "high": "Высокий",
                             "continuous": "Непрерывный",
                             "continuous": "Непрерывный",
-                            "intermittent": "Интервальный"
+                            "intermittent": "Интервальный",
+                            "timer": "Таймер"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -307,7 +307,8 @@
                             "medium": "Середній",
                             "medium": "Середній",
                             "high": "Високий",
                             "high": "Високий",
                             "continuous": "Постійний",
                             "continuous": "Постійний",
-                            "intermittent": "Інтермітентний"
+                            "intermittent": "Інтермітентний",
+                            "timer": "Таймер"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -307,7 +307,8 @@
                             "medium": "درمیانہ",
                             "medium": "درمیانہ",
                             "high": "زیادہ",
                             "high": "زیادہ",
                             "continuous": "مسلسل",
                             "continuous": "مسلسل",
-                            "intermittent": "منقطع"
+                            "intermittent": "منقطع",
+                            "timer": "ٹائمر"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -304,7 +304,8 @@
                             "medium": "中",
                             "medium": "中",
                             "high": "高",
                             "high": "高",
                             "continuous": "连续",
                             "continuous": "连续",
-                            "intermittent": "间歇"
+                            "intermittent": "间歇",
+                            "timer": "定时"
                         }
                         }
                     }
                     }
                 }
                 }

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

@@ -305,7 +305,8 @@
                             "medium": "中",
                             "medium": "中",
                             "high": "高",
                             "high": "高",
                             "continuous": "連續",
                             "continuous": "連續",
-                            "intermittent": "間歇"
+                            "intermittent": "間歇",
+                            "timer": "計時"
                         }
                         }
                     }
                     }
                 }
                 }