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

Add Apricus Heat Pump Water Heater (#3777)

* Create apricus_heat_pump_water_heater.yaml
* use water_heater entity type
* use correct water heater DP values
* fix (apricus_heat_pump_water_heater): keep branding out of device name
- remove branding from top level name
  since there is no product id supplied, there is no products section to move it to, but there is nothing that isn't recorded in the filename
- remove redundant readonly and unit attributes

PR #3777

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Andy MacKinlay 4 месяцев назад
Родитель
Сommit
82af19ebdf

+ 47 - 0
custom_components/tuya_local/devices/apricus_heat_pump_water_heater.yaml

@@ -0,0 +1,47 @@
+name: Water heat pump
+entities:
+  - entity: water_heater
+    dps:
+      - id: 1
+        name: operation_mode
+        type: boolean
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            constraint: work_mode
+            conditions:
+              - dps_val: AUTO
+                value: heat_pump
+              - dps_val: ECO
+                value: eco
+              - dps_val: BOOST
+                value: high_demand
+              - dps_val: ELE
+                value: electric
+      - id: 2
+        name: temperature
+        type: integer
+        unit: C
+        precision: 0
+        range:
+          min: 48
+          max: 70
+      - id: 3
+        name: current_temperature
+        type: integer
+      - id: 4
+        name: work_mode
+        type: string
+        hidden: true
+  - entity: sensor
+    class: power
+    category: diagnostic
+    dps:
+      - id: 101
+        type: integer
+        name: sensor
+        unit: W
+        class: measurement
+        mapping:
+          - scale: 10