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

Add support for Semptec ZX7007 infrared heater

Issue #1827
Jason Rumney 1 год назад
Родитель
Сommit
dcc33c7a75
3 измененных файлов с 78 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 76 0
      custom_components/tuya_local/devices/semptec_zx7007_heater.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -552,3 +552,4 @@ Further device support has been made with the assistance of users. Please consid
 - [wbln](https://github.com/wbln) for contributing support for Tefal X-plorer animal vacuums.
 - [TroLoos](https://github.com/TroLoos) for contributing support for Pro-Energy PE08 pool heatpumps.
 - [simplelnx](https://github.com/simplelnx) for contributing support for OPK K2 vacuums.
+- [kimhartlev](https://github.com/kimhartlev) for contributing support for Semptec ZX7007 infrared heaters.

+ 1 - 0
DEVICES.md

@@ -50,6 +50,7 @@
 - Purline Hoti M100 heater
 - Quality Heating QH-GD Elegant Series IR panel heaters
 - Rumba bathroom heater
+- Semptec ZX7007 infrared heater
 - SolAire Vitra S2 panel heater
 - Sonnenkonig Eco 700 IR panel heater (probably also other Eco/Elegance series heaters)
 - Taurus Agadir Connect oil column heaters

+ 76 - 0
custom_components/tuya_local/devices/semptec_zx7007_heater.yaml

@@ -0,0 +1,76 @@
+name: IR heater
+products:
+  - id: 34fyo4xuj16fzaqq
+    name: Semptec ZX7007
+primary_entity:
+  entity: climate
+  translation_key: heater
+  dps:
+    - id: 1
+      type: boolean
+      name: hvac_mode
+      mapping:
+        - dps_val: false
+          value: "off"
+        - dps_val: true
+          value: heat
+    - id: 5
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: "1"
+          value: eco
+        - dps_val: "2"
+          value: comfort
+        - dps_val: "3"
+          value: boost
+    - id: 14
+      type: string
+      name: hvac_action
+      mapping:
+        - constraint: hvac_mode
+          conditions:
+            - dps_val: false
+              value: "off"
+            - dps_val: true
+              mapping:
+                - dps_val: stop
+                  value: idle
+                - dps_val: heating
+                  value: heating
+secondary_entities:
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 11
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: "Off"
+          - dps_val: "1"
+            value: "1 hour"
+          - dps_val: "2"
+            value: "2 hours"
+          - dps_val: "3"
+            value: "3 hours"
+          - dps_val: "4"
+            value: "4 hours"
+          - dps_val: "5"
+            value: "5 hours"
+          - dps_val: "6"
+            value: "6 hours"
+          - dps_val: "7"
+            value: "7 hours"
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 12
+        type: integer
+        name: sensor
+        unit: min
+        class: measurement
+