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

Hydrotherm Dynamic/X8: add optional current temperature dp

An Aquatech Dynamic/X8 branded device appears to be compatible, but reports
the water temperature in dp 16, which was not present on the original
Hydrotherm branded device (it may in fact be gen 7). The inlet temperature
is reported as the cold water temperature at the inlet, as expected, and not
the hot water temperature as PR #1686 observed.  Both devices report outlet
temperature as -50, so that appears to be unused.

To handle these together, an optional dp 16 was added as the
current_temperature, which redirects to inlet_temperature if it is missing.

Issue #1922
Jason Rumney 1 год назад
Родитель
Сommit
8d080290df

+ 8 - 1
custom_components/tuya_local/devices/hydrotherm_dynamic_x8_water_heaterv6.yaml

@@ -35,9 +35,16 @@ primary_entity:
         min: 15
         max: 75
       unit: C
-    - id: 21
+    - id: 16
       type: integer
+      optional: true
       name: current_temperature
+      mapping:
+        - dps_val: null
+          value_redirect: inlet_temperature
+    - id: 21
+      type: integer
+      name: inlet_temperature
     - id: 7
       type: boolean
       name: away_mode