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

Rectec RT700 grill: update config to latest schema

- combined primary and secondary entities into a single list
- split product name into components
Other review changes:
- Remove branding from top level name
- add icon to climate entity

PR #2741
Jason Rumney 1 год назад
Родитель
Сommit
64ccd2001c
1 измененных файлов с 25 добавлено и 24 удалено
  1. 25 24
      custom_components/tuya_local/devices/rectec_rt700_grill.yaml

+ 25 - 24
custom_components/tuya_local/devices/rectec_rt700_grill.yaml

@@ -1,29 +1,30 @@
-name: RecTeq RT-700 Grill
+name: Grill
 products:
   - id: 5518137548fda419c2e
-    name: RecTeq RT-700
-primary_entity:
-  entity: climate
-  dps:
-    - id: 1
-      type: boolean
-      mapping:
-        - dps_val: false
-          value: "off"
-        - dps_val: true
-          value: heat
-    - id: 102
-      type: integer
-      name: temperature
-      range:
-        min: 180
-        max: 500
-      unit: F
-    - id: 103
-      type: integer
-      name: current_temperature
-      unit: F
-secondary_entities:
+    manufacturer: RecTeq
+    model: RT-700
+entities:
+  - entity: climate
+    icon: "mdi:grill"
+    dps:
+      - id: 1
+        type: boolean
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            value: heat
+      - id: 102
+        type: integer
+        name: temperature
+        range:
+          min: 180
+          max: 500
+        unit: F
+      - id: 103
+        type: integer
+        name: current_temperature
+        unit: F
   - entity: sensor
     name: Probe A Temperature
     class: temperature