Преглед изворни кода

Added product id and name from Tuya Download Diagnostics (product name adapted). Remove unnecessary icons.

Ben Soares пре 2 година
родитељ
комит
5db3559429

+ 7 - 9
custom_components/tuya_local/devices/solaire_vitra_wifi_electric_panel_heater.yaml

@@ -1,4 +1,7 @@
-name: Sol*Aire Vitra WiFi Electric Panel Heater
+name: Smart Heater S2
+products:
+  - id: 8fczfuyd5dknvltq
+    name: Solaire Vitra smart heater S2
 primary_entity:
 primary_entity:
   entity: climate
   entity: climate
   dps:
   dps:
@@ -21,6 +24,9 @@ primary_entity:
     - id: 3
     - id: 3
       name: current_temperature
       name: current_temperature
       type: integer
       type: integer
+      range:
+        min: 0
+        max: 50
     - id: 4
     - id: 4
       name: preset_mode
       name: preset_mode
       type: string
       type: string
@@ -41,7 +47,6 @@ secondary_entities:
   - entity: number
   - entity: number
     name: Temperature calibration
     name: Temperature calibration
     category: config
     category: config
-    icon: "mdi:thermometer-lines"
     dps:
     dps:
       - id: 103
       - id: 103
         type: integer
         type: integer
@@ -56,13 +61,6 @@ secondary_entities:
       - id: 6
       - id: 6
         type: boolean
         type: boolean
         name: lock
         name: lock
-        mapping:
-          - dps_val: true
-            value: true
-            icon: "mdi:account-lock"
-          - dps_val: false
-            value: false
-            icon: "mdi:account-lock-open"
   - entity: light
   - entity: light
     name: Display
     name: Display
     category: config
     category: config