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

feat (devices): add ROVSUN NSC-150-7A2R Oil Heater (#4183)

* feat (devices): add ROVSUN NSC-150-7A2R Oil Heater

Issue #3865

* style: sort keys

* feat (rovsun_oil_heater): changes from review

- follow HA naming convention, more common name for this type of device is Oil column heater.
- use translation_key fully
- use correct units for timer

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
zhen-zen 1 месяц назад
Родитель
Сommit
fcd7baa4a0
1 измененных файлов с 67 добавлено и 0 удалено
  1. 67 0
      custom_components/tuya_local/devices/rovsun_oil_heater.yaml

+ 67 - 0
custom_components/tuya_local/devices/rovsun_oil_heater.yaml

@@ -0,0 +1,67 @@
+name: Oil column heater
+products:
+  - id: 9vsptcjqb7ofdplr
+    manufacturer: Rovsun
+    model: NSC-150-7A2R
+entities:
+  - entity: climate
+    translation_key: heater
+    dps:
+      - id: 1
+        type: boolean
+        name: hvac_mode
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            constraint: mode
+            conditions:
+              - dps_val: smart
+                value: heat
+              - dps_val: auto
+                value: auto
+      - id: 2
+        type: integer
+        name: temperature
+        unit: F
+        range:
+          min: 40
+          max: 95
+      - id: 4
+        type: string
+        name: mode
+        hidden: true
+      - id: 5
+        type: string
+        name: preset_mode
+        mapping:
+          - dps_val: level_1
+            value: low
+          - dps_val: level_2
+            value: medium
+          - dps_val: level_3
+            value: high
+  - entity: light
+    translation_key: display
+    category: config
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+        mapping:
+          - dps_val: true
+            value: false
+          - dps_val: false
+            value: true
+  - entity: number
+    translation_key: timer
+    class: duration
+    category: config
+    dps:
+      - id: 102
+        type: integer
+        name: value
+        unit: h
+        range:
+          min: 0
+          max: 24