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

Tellur thermostat: convert to modern format

- merge entities into a single list
- use manufacturer for product list.
Jason Rumney 9 месяцев назад
Родитель
Сommit
d456322013
1 измененных файлов с 48 добавлено и 53 удалено
  1. 48 53
      custom_components/tuya_local/devices/tellur_thermostat.yaml

+ 48 - 53
custom_components/tuya_local/devices/tellur_thermostat.yaml

@@ -1,54 +1,52 @@
-name: Tellur thermostat
+name: Thermostat
 products:
   - id: y0ajxpunagisd9uj
-    name: Tellur thermostat
-primary_entity:
-  entity: climate
-  translation_only_key: thermostat
-  dps:
-    - id: 1
-      name: hvac_mode
-      type: boolean
-      mapping:
-        - dps_val: true
-          value: heat
-        - dps_val: false
-          value: "off"
-    - id: 2
-      name: preset_mode
-      type: string
-      mapping:
-        - dps_val: program
-          value: program
-        - dps_val: manual
-          value: manual
-        - dps_val: eco
-          value: eco  
-    - id: 3
-      type: string
-      name: hvac_action
-      mapping:
-        - dps_val: idle
-          value: idle
-        - dps_val: heating
-          value: heating
-    - id: 16
-      type: integer
-      name: temperature
-      unit: C
-      mapping:
-        - scale: 10
-          step: 5
-      range:
-        min: 150
-        max: 250
-    - id: 24
-      type: integer
-      name: current_temperature
-      mapping:
-        - scale: 10
-          
-secondary_entities:
+    manufacturer: Tellur
+entities:
+  - entity: climate
+    translation_only_key: thermostat
+    dps:
+      - id: 1
+        name: hvac_mode
+        type: boolean
+        mapping:
+          - dps_val: true
+            value: heat
+          - dps_val: false
+            value: "off"
+      - id: 2
+        name: preset_mode
+        type: string
+        mapping:
+          - dps_val: program
+            value: program
+          - dps_val: manual
+            value: manual
+          - dps_val: eco
+            value: eco  
+      - id: 3
+        type: string
+        name: hvac_action
+        mapping:
+          - dps_val: idle
+            value: idle
+          - dps_val: heating
+            value: heating
+      - id: 16
+        type: integer
+        name: temperature
+        unit: C
+        mapping:
+          - scale: 10
+            step: 5
+        range:
+          min: 150
+          max: 250
+      - id: 24
+        type: integer
+        name: current_temperature
+        mapping:
+          - scale: 10
   - entity: number
     name: Calibration offset
     category: config
@@ -78,8 +76,7 @@ secondary_entities:
       - id: 40
         optional: true
         type: boolean
-        name: lock
-  
+        name: lock  
   - entity: binary_sensor
     category: diagnostic
     class: problem
@@ -96,5 +93,3 @@ secondary_entities:
         name: fault_code
         optional: true
         type: bitfield
-  
-