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

ETOP FCU Thermostat: minor tweaks before merge

- simplify top level name
- move work state to an attribute, as it is not useful as a sensor
- remove redundant scale:1 and step: 1 mappings from commented out fahrenheit dps
Jason Rumney 2 лет назад
Родитель
Сommit
5e6ca98991
1 измененных файлов с 6 добавлено и 21 удалено
  1. 6 21
      custom_components/tuya_local/devices/etop_fcu_thermostat.yaml

+ 6 - 21
custom_components/tuya_local/devices/etop_fcu_thermostat.yaml

@@ -1,4 +1,4 @@
-name: FCU thermostat
+name: Thermostat
 products:
 products:
   - id: psetc59fvtm5gexl
   - id: psetc59fvtm5gexl
     name: ETOP-FCU(CF) | Jaga JRT-100TW
     name: ETOP-FCU(CF) | Jaga JRT-100TW
@@ -39,9 +39,6 @@ primary_entity:
     #   range:
     #   range:
     #     min: 41
     #     min: 41
     #     max: 95
     #     max: 95
-    #   mapping:
-    #     - scale: 1
-    #       step: 1
     # - id: 21
     # - id: 21
     #   name: current_temperature
     #   name: current_temperature
     #   hidden: true
     #   hidden: true
@@ -50,9 +47,6 @@ primary_entity:
     #   range:
     #   range:
     #     min: 32
     #     min: 32
     #     max: 122
     #     max: 122
-    #   mapping:
-    #     - scale: 1
-    #       step: 1
     ############################################################
     ############################################################
     # Thermostat modes
     # Thermostat modes
     #
     #
@@ -95,6 +89,11 @@ primary_entity:
           value: high
           value: high
         - dps_val: auto
         - dps_val: auto
           value: auto
           value: auto
+    - id: 14
+      name: work_state
+      type: string
+      # has values no_working and working defined in docs, and appears to be useful for hvac_action,
+      # but in practice does not seem to change.
 secondary_entities:
 secondary_entities:
   ############################################################
   ############################################################
   # Temperature display unit
   # Temperature display unit
@@ -142,17 +141,3 @@ secondary_entities:
       - id: 7
       - id: 7
         name: switch
         name: switch
         type: boolean
         type: boolean
-  - entity: binary_sensor
-    name: "Work State"
-    category: config
-    dps:
-      - id: 14
-        name: sensor
-        type: string
-        readonly: true
-        mapping:
-          - dps_val: no_working
-            value: false
-          - dps_val: working
-            value: true
-