Răsfoiți Sursa

Heatstorm HS1500: minor tweaks before merge

- move branding to products section
- move fault description to problem sensor
- add raw fault_code to problem sensor

PR #1763
Jason Rumney 1 an în urmă
părinte
comite
84ca0edc1b
1 a modificat fișierele cu 15 adăugiri și 12 ștergeri
  1. 15 12
      custom_components/tuya_local/devices/heatstorm_hs1500_heater.yaml

+ 15 - 12
custom_components/tuya_local/devices/heatstorm_hs1500_heater.yaml

@@ -1,7 +1,7 @@
-name: Heatstorm heater
+name: Heater
 products:
 products:
   - id: gifk0oubmovuz3ky
   - id: gifk0oubmovuz3ky
-    name: HS-1500
+    name: Heatstorm HS-1500
 primary_entity:
 primary_entity:
   entity: climate
   entity: climate
   translation_only_key: heater
   translation_only_key: heater
@@ -46,16 +46,6 @@ primary_entity:
           value: eco
           value: eco
         - dps_val: High
         - dps_val: High
           value: boost
           value: boost
-    - id: 13
-      type: bitfield
-      name: fault_code
-      mapping:
-        - dps_val: 1
-          value: Temp sensor fault
-        - dps_val: 2
-          value: Tilt over
-        - dps_val: 4
-          value: Over-voltage
     - id: 19
     - id: 19
       type: string
       type: string
       name: temperature_unit
       name: temperature_unit
@@ -115,6 +105,19 @@ secondary_entities:
           - dps_val: 0
           - dps_val: 0
             value: false
             value: false
           - value: true
           - value: true
+      - id: 13
+        type: bitfield
+        name: fault_code
+      - id: 13
+        type: bitfield
+        name: description
+        mapping:
+          - dps_val: 1
+            value: Temp sensor fault
+          - dps_val: 2
+            value: Tilt over
+          - dps_val: 4
+            value: Over-voltage
   - entity: select
   - entity: select
     translation_key: temperature_unit
     translation_key: temperature_unit
     category: config
     category: config