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

Fisher summer: add compatible Tesla model

- group some extra attributes with their related entities.
- add some additional attributes from Tesla info.

It seems some additional functions are available in the "options" attribute
(boolCode in tuya docs), however making it accessible also involves parsing
the available features, making this too complex to implement.

Issue #2014
Jason Rumney 1 год назад
Родитель
Сommit
915bce1950
1 измененных файлов с 17 добавлено и 11 удалено
  1. 17 11
      custom_components/tuya_local/devices/fisher_summer_air_conditioner.yaml

+ 17 - 11
custom_components/tuya_local/devices/fisher_summer_air_conditioner.yaml

@@ -4,6 +4,8 @@ products:
     name: Fisher Summer
     name: Fisher Summer
   - id: u9jjsaluqe1trtxv
   - id: u9jjsaluqe1trtxv
     name: Daitsu DS-9KTP
     name: Daitsu DS-9KTP
+  - id: fcnlevuwfd1jgkvx
+    name: Tesla TT34TP21-1232IAWUV
 primary_entity:
 primary_entity:
   entity: climate
   entity: climate
   translation_only_key: aircon_extra
   translation_only_key: aircon_extra
@@ -67,9 +69,6 @@ primary_entity:
       name: current_humidity
       name: current_humidity
       type: integer
       type: integer
       optional: true
       optional: true
-    - id: 20
-      name: fault_code
-      type: bitfield
     - id: 110
     - id: 110
       name: functions_available
       name: functions_available
       type: bitfield
       type: bitfield
@@ -99,14 +98,6 @@ primary_entity:
       #   21. temperature scale switching, 1 is Fahrenheit, 0 is Celsius
       #   21. temperature scale switching, 1 is Fahrenheit, 0 is Celsius
       #   22. soft wind
       #   22. soft wind
       #   23. left and right wide-angle air supply
       #   23. left and right wide-angle air supply
-    - id: 115
-      type: integer
-      name: total_n
-      optional: true
-    - id: 116
-      type: integer
-      name: total_p
-      optional: true
     - id: 123
     - id: 123
       name: options
       name: options
       type: string
       type: string
@@ -147,6 +138,13 @@ secondary_entities:
           - dps_val: 0
           - dps_val: 0
             value: false
             value: false
           - value: true
           - value: true
+      - id: 20
+        name: fault_code
+        type: bitfield
+      - id: 122
+        name: fault2
+        type: bitfield
+        optional: true
   - entity: sensor  # no sensor in Fisher Summer AC, returns 0
   - entity: sensor  # no sensor in Fisher Summer AC, returns 0
     class: pm25
     class: pm25
     dps:
     dps:
@@ -324,6 +322,14 @@ secondary_entities:
           - dps_val: 5
           - dps_val: 5
             value: 5 kWh
             value: 5 kWh
         optional: true
         optional: true
+      - id: 115
+        type: integer
+        name: total_n
+        optional: true
+      - id: 116
+        type: integer
+        name: total_p
+        optional: true
   - entity: number
   - entity: number
     name: Power Saving Temperature
     name: Power Saving Temperature
     category: config
     category: config