Преглед на файлове

Myuet ME82: final changes from review

- use a light entity for the backlight
- merge mode into climate entity

PR #2526
Jason Rumney преди 1 година
родител
ревизия
3b8aecf3d7
променени са 1 файла, в които са добавени 19 реда и са изтрити 21 реда
  1. 19 21
      custom_components/tuya_local/devices/myuet_me82_thermostat.yaml

+ 19 - 21
custom_components/tuya_local/devices/myuet_me82_thermostat.yaml

@@ -4,6 +4,7 @@ products:
     name: Myuet ME82
 primary_entity:
   entity: climate
+  translation_key: thermostat
   dps:
     - id: 1
       type: boolean
@@ -48,20 +49,15 @@ primary_entity:
           value: heating
         - dps_val: close
           value: idle
+    - id: 2
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: auto
+          value: program
+        - dps_val: manual
+          value: manual
 secondary_entities:
-  - entity: select
-    name: Mode
-    icon: "mdi:thermostat-auto"
-    category: config
-    dps:
-      - id: 2
-        type: string
-        name: option
-        mapping:
-          - dps_val: auto
-            value: Auto
-          - dps_val: manual
-            value: Manual
   - entity: switch
     translation_key: anti_frost
     category: config
@@ -192,21 +188,23 @@ secondary_entities:
             value: Six working days
           - dps_val: "no_day_off"
             value: Daily
-  - entity: select
-    name: Backlight
-    icon: "mdi:lightbulb-on"
+  - entity: light
+    translation_key: backlight
     category: config
     dps:
       - id: 52
         type: string
         optional: true
-        name: option
+        name: brightness
         mapping:
           - dps_val: "closed"
-            value: Off
+            value: 0
           - dps_val: "20_bright"
-            value: 20%
+            value: 51
           - dps_val: "50_bright"
-            value: 50%
+            value: 128
           - dps_val: "100_bright"
-            value: 100%
+            value: 255
+          - dps_val: null
+            value: 0
+            hidden: true