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

Add Edge Theory Cold Plunge configuration (#2554)

* Add Edge Theory Cold Plunge configuration

* Fix: Update water flow rate device class to volume_flow_rate

* Edge Theory heat pump: changes from review

- naming changes to fit HA naming standard and tuya-local convention
- use translation_key instead of explicit icon manipulation for climate entity
- fix lint errors

PR #2554

---------

Co-authored-by: Thomas Jr Papathanasiou <tompapajr@TPapa-MBPM1.aethernet.lan>
Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
tompapajr 1 год назад
Родитель
Сommit
d752362b4d

+ 62 - 0
custom_components/tuya_local/devices/edgetheorylabs_coldplunge_heatpump.yaml

@@ -0,0 +1,62 @@
+name: Pool heat pump
+products:
+  - id: orwtoimcnasji7jw
+    name: Edge Theory Labs cold plunge heat pump
+primary_entity:
+  entity: climate
+  translation_key: pool_heatpump
+  dps:
+    - id: 121
+      name: hvac_mode
+      type: boolean
+      mapping:
+        - dps_val: false
+          value: "off"
+        - dps_val: true
+          value: heat_cool
+    - id: 17
+      name: temperature
+      type: integer
+      range:
+        min: 32
+        max: 107
+      unit: F
+    - id: 29
+      name: current_temperature
+      type: integer
+      mapping:
+        - scale: 10
+    - id: 115
+      name: mode
+      type: boolean
+
+secondary_entities:
+  - entity: binary_sensor
+    name: Compressor
+    class: running
+    category: diagnostic
+    icon: "mdi:engine"
+    dps:
+      - id: 122
+        type: boolean
+        name: sensor
+  - entity: sensor
+    class: volume_flow_rate
+    category: diagnostic
+    dps:
+      - id: 102
+        type: integer
+        name: sensor
+        unit: "L/min"
+        class: measurement
+        mapping:
+          - scale: 10
+  - entity: binary_sensor
+    name: Water pump
+    class: running
+    category: diagnostic
+    icon: "mdi:water-pump"
+    dps:
+      - id: 125
+        type: boolean
+        name: sensor