Bläddra i källkod

Add Klamer IR Heater 2600 W. (#5257)

* Add Klamer IR Heater 2600 W.

* Use translation key.

* Remove unneeded range.

* Move `mode` to `climate` entity.

* Fix name.

* Fix names.

* Fix product ID.

* Add OEM.

* Fix indentation.

* fix(klamer_2600w_irheater): naming and icon changes

- rename file to follow conventional order 
- remove unused product details
- remove icons from translated entities
- use options that match translations
- define temperature_unit in way that doesn't leave gaps, and use ASCII abbreviations to avoid possible confusion over which Unicode characters to use

PR #5257

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Markus Reiter 4 veckor sedan
förälder
incheckning
0448f9dfec
1 ändrade filer med 166 tillägg och 0 borttagningar
  1. 166 0
      custom_components/tuya_local/devices/klamer_2600w_irheater.yaml

+ 166 - 0
custom_components/tuya_local/devices/klamer_2600w_irheater.yaml

@@ -0,0 +1,166 @@
+name: Infrared heater
+products:
+  - id: rnnph3gaxhdhnvmw
+    manufacturer: KLAMER
+    name: Infrared Heater 2600 W
+entities:
+  - 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: 2
+        type: integer
+        name: temperature
+        range:
+          min: 5
+          max: 45
+        mapping:
+          - constraint: temperature_unit
+            conditions:
+              - dps_val: f
+                value_redirect: temp_set_f
+                range:
+                  min: 41
+                  max: 113
+      - id: 3
+        type: integer
+        name: current_temperature
+        mapping:
+          - constraint: temperature_unit
+            conditions:
+              - dps_val: f
+                value_redirect: temp_current_f
+      - id: 4
+        type: string
+        name: preset_mode
+        mapping:
+          - dps_val: Low
+            value: low
+          - dps_val: High
+            value: high
+      - id: 13
+        type: string
+        name: temperature_unit
+        mapping:
+          - dps_val: f
+            value: F
+          - value: C
+      - id: 14
+        type: integer
+        name: temp_set_f
+        range:
+          min: 41
+          max: 113
+        hidden: true
+      - id: 15
+        type: integer
+        name: temp_current_f
+        hidden: true
+  - entity: switch
+    name: Open window detection
+    category: config
+    icon: "mdi:window-open-variant"
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Eco mode
+    category: config
+    icon: "mdi:leaf"
+    dps:
+      - id: 6
+        type: boolean
+        name: switch
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 7
+        type: boolean
+        name: lock
+  - entity: select
+    translation_key: temperature_unit
+    category: config
+    dps:
+      - id: 13
+        type: string
+        name: option
+        mapping:
+          - dps_val: c
+            value: celsius
+          - dps_val: f
+            value: fahrenheit
+  - entity: select
+    translation_key: timer
+    dps:
+      - id: 19
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: cancel
+          - dps_val: "1"
+            value: "1h"
+          - dps_val: "2"
+            value: "2h"
+          - dps_val: "3"
+            value: "3h"
+          - dps_val: "4"
+            value: "4h"
+          - dps_val: "5"
+            value: "5h"
+          - dps_val: "6"
+            value: "6h"
+          - dps_val: "7"
+            value: "7h"
+          - dps_val: "8"
+            value: "8h"
+          - dps_val: "9"
+            value: "9h"
+          - dps_val: "10"
+            value: "10h"
+          - dps_val: "11"
+            value: "11h"
+          - dps_val: "12"
+            value: "12h"
+          - dps_val: "13"
+            value: "13h"
+          - dps_val: "14"
+            value: "14h"
+          - dps_val: "15"
+            value: "15h"
+          - dps_val: "16"
+            value: "16h"
+          - dps_val: "17"
+            value: "17h"
+          - dps_val: "18"
+            value: "18h"
+          - dps_val: "19"
+            value: "19h"
+          - dps_val: "20"
+            value: "20h"
+          - dps_val: "21"
+            value: "21h"
+          - dps_val: "22"
+            value: "22h"
+          - dps_val: "23"
+            value: "23h"
+          - dps_val: "24"
+            value: "24h"
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 20
+        type: integer
+        name: sensor
+        unit: min