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

feat (beok_tgm50_thermometer): add compatible Avatto WT410

This model has the same dp layout with minor differences:

- external sensor limit is listed as 25 - 95 (config is limited to 35 - 60)
- backlight does not list "0" (off) as a valid value
- three additional dps:
     - 111 dormant_switch (bool),
     - 112: dormant_time_set (raw)
     - 113: week_up_btn (bool, write-only)

Some changes to other ranges made, where the Query Things Data Model
from the original PR agrees with the Avatto WT410 info and it isn't clear
why the original PR used narrower ranges.

Issue #4138
Jason Rumney 2 месяцев назад
Родитель
Сommit
4ab9746b78
1 измененных файлов с 18 добавлено и 3 удалено
  1. 18 3
      custom_components/tuya_local/devices/beok_tgm50_thermostat.yaml

+ 18 - 3
custom_components/tuya_local/devices/beok_tgm50_thermostat.yaml

@@ -3,6 +3,9 @@ products:
   - id: m3j5wouhgsvjlma9
     manufacturer: Beok / Avatto
     model: TGM50 / WT200 / M3-GE
+  - id: dbfzaljrysqt7vth
+    manufacturer: Avatto
+    model: WT410
 entities:
   - entity: climate
     translation_only_key: thermostat
@@ -96,7 +99,7 @@ entities:
         unit: °
         range:
           min: 5
-          max: 95
+          max: 100
         mapping:
           - scale: 10
   - entity: number
@@ -120,8 +123,8 @@ entities:
         name: value
         unit: °
         range:
-          min: -90
-          max: 90
+          min: -99
+          max: 99
         mapping:
           - scale: 10
   - entity: number
@@ -137,6 +140,8 @@ entities:
         range:
           min: 35
           max: 60
+          # Avatto WT410 is 25-95, but this is the only difference with
+          # the original
   - entity: switch
     translation_key: anti_frost
     category: config
@@ -215,3 +220,13 @@ entities:
       - id: 109
         type: boolean
         name: switch
+  - entity: text
+    name: Schedule
+    category: config
+    icon: "mdi:calendar-clock"
+    hidden: true
+    dps:
+      - id: 105
+        type: base64
+        optional: true
+        name: value