فهرست منبع

Add Tuya WF72TT/WF96TT dual temperature controller (#4182)

* Add Dual Temp Controller support (basic features only)
Product ID: 84iv5eqjgvvpzyma, model (from Tuya device info): WF72TT/WF96TT

Device description:

It is a multi-functions of KONLEN WIFI dual temperature controller with two relay outputs.  If connect one temperature sensor, it can realize single temperature controls dual-channels of relay outputs. If connect with two temperature sensors, it can realize dual temperature control , or one for temperature control, the other for temperature difference control. One dual temperature controller is equal to the functions of two temperature controllers or one temperature controller and one temperature difference controller.

Specification:

Product dimension: 83mm (L) ×72mm(W) ×72mm (H)
Installation: Embedded Installation,
Power voltage: two versions: AC220V or DC12V optional
AC220V (available for 210V to 240V), DC12V version doesn't include DC12V power adapter.

Sensor interface: two temperature sensor interfaces.
Temperature detection range: -35 to +140 C
Measurement error: ±1 C , can be calibrated,
The cable length of temperature sensor: 2 meters, users can extend the cable length to be about 20 meters Max
Two relay outputs: normal open or normal closed
Relay lifespan: 100,000 times.
The contact current capacity is 10A, inductive load 2A,can control 2000W resistive load or 500W motor or water pump. Need larger loads, please add AC contactors, or it will cause burning danger.
Device working environment: -10 to 50 C
WIFI: Wi-Fi 2.4GHZ B/G/N, not support 5G.

A: Display the real time temperature of channel 1 sensor
B: Display the real time temperature of channel 2 sensor
C: Status indicator of Ch1 relay output, flashes when the relay is closed.
D: Status indicator of Ch2 relay output, flashes when the relay is closed.

1. Relay CH1 manual switch or for parameter setting, short press, temperature increase 0.1, long-press, increase temperature quickly
2. Relay CH2 manual switch or for parameter setting: short press, temperature reduce 0.1; long-press, reduct temperature quickly.
3. Short-press to enter into menu setting,
4. Short-press exit setting, return to working mode.

Tip: The CH1 switch and CH2 switch can be turned on or off manually only when the temperature or temperature difference is between the stop value and the start value. The manual switches will be ineffective if the current temperature is outside of start value and stop value.

Terminal 1:Relay output CH1 normal open (N.O.)
Terminal 2:COM of relay CH1
Terminal 3: Relay output CH1 normal closed (N.C.)
Terminal 4 & 5: two versions: 1. powered by AC220V (available from 210V to 240V)

2. powered by DC12V.

Terminal 6:Relay output CH2 normal open (N.O.)
Terminal 7:Relay output CH2 normal closed ( N.C)
Terminal 8:COM of relay CH2
Terminal 9 & 10:Connect with sensor CH1
Terminal 10 & 11: Connect with sensor CH2

Application:

The products are widely applied to various commercial and industrial occasions, such as HVAC systems (Heating Ventilation and Air Conditioning), hot water engineering, Boiler, breeding, hatching, intelligent electromechanical equipment and other heating and cooling control.

Device URL: https://es.aliexpress.com/item/1005005814598303.html

* Full support added of Tuya Dul Temperature Controller
Tested

* Enums fixed

* feat (konlen_wf72xx_dualtempcontroller): refactor to use climate

Use climate entities instead of switch, numbers, sensor, select for
Channel 1, Channel 2 and Alarm thresholds.

- rename file to conventional manufacturer_model_devicetype

PR #4182

* Summary: feat (konlen_wf72xx_dualtempcontroller): refactor to use climate

Use climate entities instead of switch, numbers, sensor, select for
Channel 1, Channel 2 and Alarm thresholds.

- rename file to conventional manufacturer_model_devicetype

PR #4182

---------

Co-authored-by: Jason Rumney <jasonrumney@gmail.com>
KSVl 1 ماه پیش
والد
کامیت
3c344ca24a
1فایلهای تغییر یافته به همراه246 افزوده شده و 0 حذف شده
  1. 246 0
      custom_components/tuya_local/devices/konlen_wf72tt_dualtempcontroller.yaml

+ 246 - 0
custom_components/tuya_local/devices/konlen_wf72tt_dualtempcontroller.yaml

@@ -0,0 +1,246 @@
+name: Dual temperature controller
+products:
+  - id: 84iv5eqjgvvpzyma
+    manufacturer: Konlen
+    model: WF72TT/WF96TT
+
+entities:
+  # ------------- Thermostats -------------
+  - entity: climate
+    translation_key: thermostat
+    name: Channel 1
+    dps:
+      - id: 1
+        type: boolean
+        name: hvac_mode
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            constraint: mode
+            conditions:
+              - dps_val: HOT1
+                value: heat
+              - dps_val: COOL2
+                value: cool
+      - id: 2
+        type: integer
+        name: target_temp_high
+        range:
+          min: -400
+          max: 1400
+        mapping:
+          - scale: 10
+      - id: 3
+        type: integer
+        name: current_temperature
+        unit: C
+        mapping:
+          - scale: 10
+      - id: 101
+        type: integer
+        name: target_temp_low
+        range:
+          min: -400
+          max: 1400
+        mapping:
+          - scale: 10
+      - id: 112
+        type: string
+        name: mode
+        hidden: true
+
+  - entity: climate
+    translation_key: thermostat
+    name: Channel 2
+    dps:
+      - id: 105
+        type: boolean
+        name: hvac_mode
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            constraint: mode
+            conditions:
+              - dps_val: HOT2
+                value: heat
+              - dps_val: COLD2
+                value: cool
+              - dps_val: ALARM2
+                value: fan_only  # alarm
+              - dps_val: DIFF2
+                value: heat_cool  # temperature difference
+      - id: 102
+        type: integer
+        name: current_temperature
+        unit: C
+        mapping:
+          - scale: 10
+      - id: 103
+        type: integer
+        name: target_temp_high
+        range:
+          min: -400
+          max: 1400
+        mapping:
+          - scale: 10
+      - id: 104
+        type: integer
+        name: target_temp_low
+        range:
+          min: -400
+          max: 1400
+        mapping:
+          - scale: 10
+      - id: 111
+        type: string
+        name: mode
+        hidden: true
+  - entity: climate
+    name: Alarm thresholds
+    category: config
+    dps:
+      - id: 111
+        type: string
+        name: available
+        mapping:
+          - dps_val: ALARM2
+            value: true
+          - value_redirect: remote_alarm
+      - id: 108
+        type: boolean
+        name: remote_alarm
+        hidden: true
+      - id: 106
+        type: integer
+        name: target_temp_high
+        unit: C
+        range:
+          min: -400
+          max: 1400
+        mapping:
+          - scale: 10
+      - id: 107
+        type: integer
+        name: target_temp_low
+        range:
+          min: -400
+          max: 1400
+        mapping:
+          - scale: 10
+
+  - entity: switch
+    name: Remote alarm enable
+    category: config
+    dps:
+      - id: 108
+        type: boolean
+        name: switch
+
+  # ------------- Status, mode, difference -------------
+  - entity: sensor
+    name: Channel 1 probe status
+    class: enum
+    dps:
+      - id: 109
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: NORMAL
+            value: normal
+          - dps_val: OPEN
+            value: open_circuit
+          - dps_val: SHORT
+            value: short_circuit
+          - dps_val: UP
+            value: above_limit
+          - dps_val: DOWN
+            value: below_limit
+
+  - entity: sensor
+    name: Channel 2 probe status
+    class: enum
+    dps:
+      - id: 110
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: NORMAL
+            value: normal
+          - dps_val: OPEN
+            value: open_circuit
+          - dps_val: SHORT
+            value: short_circuit
+          - dps_val: UP
+            value: above_limit
+          - dps_val: DOWN
+            value: below_limit
+
+  - entity: sensor
+    name: Temperature difference
+    class: temperature
+    dps:
+      - id: 115
+        type: integer
+        name: sensor
+        unit: °
+        class: measurement
+        mapping:
+          - scale: 10
+
+  # ------------- Calibration offsets -------------
+  - entity: number
+    name: Channel 1 calibration
+    class: temperature
+    category: config
+    dps:
+      - id: 113
+        type: integer
+        name: value
+        unit: °
+        range:
+          min: -150
+          max: 150
+        mapping:
+          - scale: 10
+
+  - entity: number
+    name: Channel 2 calibration
+    class: temperature
+    category: config
+    dps:
+      - id: 114
+        type: integer
+        name: value
+        unit: °
+        range:
+          min: -150
+          max: 150
+        mapping:
+          - scale: 10
+
+  # ------------- Additional “real” temperatures -------------
+  - entity: sensor
+    name: Channel 1 real temperature
+    class: temperature
+    dps:
+      - id: 116
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+        mapping:
+          - scale: 10
+
+  - entity: sensor
+    name: Channel 2 real temperature
+    class: temperature
+    dps:
+      - id: 117
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+        mapping:
+          - scale: 10