Selaa lähdekoodia

Configuration for all available sensors

Alfred 3 vuotta sitten
vanhempi
commit
203f3ffd63

+ 15 - 5
custom_components/tuya_local/devices/beok_tgr81_thermostat_c.yaml

@@ -54,14 +54,11 @@ primary_entity:
           range:
           range:
             min: 5
             min: 5
             max: 20
             max: 20
-    - id: 45
-      type: integer
-      name: Error Code
     - id: 101
     - id: 101
       type: integer
       type: integer
       name: unknown_101
       name: unknown_101
     - id: 102
     - id: 102
-      type: integer
+      type: string
       name: unknown_102
       name: unknown_102
 
 
 secondary_entities:
 secondary_entities:
@@ -71,9 +68,10 @@ secondary_entities:
     dps:
     dps:
       - id: 24
       - id: 24
         type: integer
         type: integer
-        name: current_temp
+        name: sensor
         unit: C
         unit: C
         class: measurement
         class: measurement
+        readonly: true
         mapping:
         mapping:
           - scale: 10
           - scale: 10
   - entity: number
   - entity: number
@@ -113,7 +111,19 @@ secondary_entities:
         mapping:
         mapping:
           - dps_val: "in"
           - dps_val: "in"
             icon: "mdi:gauge"
             icon: "mdi:gauge"
+            value: "Internal"
           - dps_val: "out"
           - dps_val: "out"
             icon: "mdi:thermometer-chevron-down"
             icon: "mdi:thermometer-chevron-down"
+            value: "External"
           - dps_val: "all"
           - dps_val: "all"
             icon: "mdi:thermometer"
             icon: "mdi:thermometer"
+            value: "Both"
+  - entity: sensor
+    name: Error Code
+    category: diagnostic
+    icon: mdi:alert-circle
+    dps:
+      - id: 45
+        type: integer
+        name: sensor
+        readonly: true