kekkutya 3 лет назад
Родитель
Сommit
d98681daea
1 измененных файлов с 30 добавлено и 18 удалено
  1. 30 18
      custom_components/tuya_local/devices/beok_tol47_thermostat.yaml

+ 30 - 18
custom_components/tuya_local/devices/beok_tol47_thermostat.yaml

@@ -24,11 +24,11 @@ primary_entity:
       type: string
       name: preset_mode
       mapping:
-        - dps_val: cold
+        - dps_val: "cold"
           value: Manual mode
-        - dps_val: hot
+        - dps_val: "hot"
           value: Program mode
-        - dps_val: wind
+        - dps_val: "wind"
           value: Temporary program mode
     - id: 5
       type: string
@@ -70,6 +70,18 @@ secondary_entities:
       - id: 13
         type: boolean
         name: switch
+  - entity: binary_sensor
+    name: Fault alarm
+    category: diagnostic
+    class: problem
+    dps:
+      - id: 16
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: False
+          - value: True
   - entity: number
     name: Calibration offset
     category: config
@@ -101,16 +113,16 @@ secondary_entities:
     category: config
     dps:
       - id: 25
-        type: integer
+        type: string
         name: option
         mapping:
-          - dps_val: 1
+          - dps_val: "1"
             icon: "mdi:gauge"
             value: Internal
-          - dps_val: 2
+          - dps_val: "2"
             icon: "mdi:thermometer-chevron-down"
             value: External
-          - dps_val: 3
+          - dps_val: "3"
             icon: "mdi:thermometer"
             value: Both
   - entity: switch
@@ -126,19 +138,19 @@ secondary_entities:
     category: config
     dps:
       - id: 41
-        type: integer
+        type: string
         name: option
         mapping:
-          - dps_val: 0
+          - dps_val: "0"
             icon: "mdi:lightbulb-on-10"
             value: None
-          - dps_val: 1
+          - dps_val: "1"
             icon: "mdi:lightbulb-on-40"
             value: Low
-          - dps_val: 2
+          - dps_val: "2"
             icon: "mdi:lightbulb-on-70"
             value: Middle
-          - dps_val: 3
+          - dps_val: "3"
             icon: "mdi:lightbulb-on"
             value: High
   - entity: select
@@ -147,14 +159,14 @@ secondary_entities:
     icon: "mdi:calendar-clock"
     dps:
       - id: 42
-        type: integer
+        type: string
         name: option
         mapping:
-          - dps_val: 1
+          - dps_val: "1"
             value: "Weekday+Weekend"
-          - dps_val: 2 
+          - dps_val: "2" 
             value: "Mon-Sat+Sun"
-          - dps_val: 3
+          - dps_val: "3"
             value: "Daily"	 
   - entity: switch
     name: Output main reverse
@@ -179,7 +191,7 @@ secondary_entities:
         mapping:
           - scale: 10
   - entity: number
-    name: External Sensor temperature limit
+    name: External sensor temperature limit
     category: config
     icon: "mdi:thermometer"
     dps:
@@ -189,4 +201,4 @@ secondary_entities:
         unit: C
         range:
           min: 5
-          max: 60
+          max: 60