瀏覽代碼

Changed Working_status, Anti-frost, Fault

zrcz180 2 年之前
父節點
當前提交
911708c8d6
共有 1 個文件被更改,包括 15 次插入22 次删除
  1. 15 22
      custom_components/tuya_local/devices/ferroli_titano_twin.yaml

+ 15 - 22
custom_components/tuya_local/devices/ferroli_titano_twin.yaml

@@ -35,6 +35,18 @@ primary_entity:
     - id: 10
     - id: 10
       type: integer
       type: integer
       name: current_temperature
       name: current_temperature
+    - id: 101
+      type: bitfield
+      name: fault_code
+      mapping:
+        - dps_val: 1
+          value: E2 Operating without water
+        - dps_val: 2
+          value: E3 NTC temperature sensor
+        - dps_val: 4
+          value: E4 Water overheating 
+        - dps_val: 16
+          value: E6 clock RTC failure
 secondary_entities:
 secondary_entities:
   - entity: switch
   - entity: switch
     name: Anti-Legionella
     name: Anti-Legionella
@@ -60,40 +72,22 @@ secondary_entities:
           - dps_val: 0
           - dps_val: 0
             value: false
             value: false
           - value: true
           - value: true
-            icon: "mdi:water-boiler-alert"
-          - dps_val: 1
-            value: E2 Operating without water
-          - dps_val: 2
-            value: E3 NTC temperature sensor
-          - dps_val: 4
-            value: E4 Water overheating 
-          - dps_val: 16
-            value: E6 clock RTC failure
-  - entity: sensor
+  - entity: binary_sensor
     name: Working status
     name: Working status
+    class: running
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 102
       - id: 102
         type: string
         type: string
         name: sensor
         name: sensor
-        mapping:
-          - dps_val: "Heating"
-            icon: "mdi:water-boiler"
-          - dps_val: "Standby"
-            icon: "mdi:water-boiler-off"            
   - entity: binary_sensor
   - entity: binary_sensor
-    name: Antifreeze
+    name: Anti-frost
     class: cold
     class: cold
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 103
       - id: 103
         type: boolean
         type: boolean
         name: sensor
         name: sensor
-        mapping:
-          - dps_val: true
-            icon: "mdi:snowflake-alert"
-          - dps_val: false
-            icon: "mdi:snowflake-off"
   - entity: sensor
   - entity: sensor
     name: Target temperature
     name: Target temperature
     class: temperature
     class: temperature
@@ -104,4 +98,3 @@ secondary_entities:
         name: sensor
         name: sensor
         unit: C
         unit: C
         class: measurement
         class: measurement
-