Explorar o código

File for Devola intelligent heater

Properties from tuya cloud - I have not managed to implement the "Fault" dp
{
  "result": {
    "properties": [
      {
        "code": "Power",
        "custom_name": "",
        "dp_id": 1,
        "time": 1739389533994,
        "type": "bool",
        "value": true
      },
      {
        "code": "TempSet",
        "custom_name": "",
        "dp_id": 2,
        "time": 1739433515769,
        "type": "value",
        "value": 16
      },
      {
        "code": "TempCurrent",
        "custom_name": "",
        "dp_id": 3,
        "time": 1739436890165,
        "type": "value",
        "value": 17
      },
      {
        "code": "Mode",
        "custom_name": "",
        "dp_id": 4,
        "time": 1739433488354,
        "type": "enum",
        "value": "low"
      },
      {
        "code": "Fault",
        "custom_name": "",
        "dp_id": 12,
        "time": 1739364559520,
        "type": "bitmap",
        "value": 0
      }
    ]
  },
  "success": true,
  "t": 1739437161566,
  "tid": "d0aeccaee9e811ef9e609e9247cde4aa"
}
nickmcgill hai 1 ano
pai
achega
a2b1f75671

+ 48 - 0
custom_components/tuya_local/devices/devola-intelligent-heater.yaml

@@ -0,0 +1,48 @@
+name: Devola-Intelligent heater
+products:
+  - id: laagtqcj40q1uwg8
+    manufacturer: Devola
+    model: Intelligent Heater
+entities:
+  - entity: climate
+    translation_only_key: heater
+    dps:
+      - id: 1
+        name: hvac_mode
+        type: boolean
+        mapping:
+          - dps_val: true
+            value: "heat"
+          - dps_val: false
+            value: "off"
+      - id: 2
+        name: temperature
+        type: integer
+        unit: C
+        range:
+          min: 7
+          max: 30
+        mapping:
+          - constraint: preset_mode
+            conditions:
+              - dps_val: antifrost
+                value: 7
+                range:
+                  min: 7
+                  max: 7
+      - id: 3
+        name: current_temperature
+        type: integer
+        range:
+          min: 0
+          max: 50
+      - id: 4
+        name: preset_mode
+        type: string
+        mapping:
+          - dps_val: low
+            value: Low
+          - dps_val: high
+            value: High
+          - dps_val: antifrost
+            value: Anti Frost