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

add BAC-009 Smart Knob Thermostat climate device support (#4880)

* add BAC-009 Smart Knob Thermostat climate device support

* new line at end of file

* change hvac_action to idle when valv is off

* rename file without _c
ludook 2 месяцев назад
Родитель
Сommit
891c1d3f9b
1 измененных файлов с 107 добавлено и 0 удалено
  1. 107 0
      custom_components/tuya_local/devices/beca_bht009_thermostat.yaml

+ 107 - 0
custom_components/tuya_local/devices/beca_bht009_thermostat.yaml

@@ -0,0 +1,107 @@
+name: Thermostat
+products:
+  - id: mpbki2zm
+    manufacturer: Beca
+    model: BAC-009 Smart Knob Thermostat
+entities:
+  - entity: climate
+    dps:
+      - id: 1
+        type: boolean
+        name: hvac_mode
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            constraint: mode
+            conditions:
+              - dps_val: "cold"
+                value: cool
+              - dps_val: "hot"
+                value: heat
+              - dps_val: "wind"
+                value: fan_only
+      - id: 2
+        type: string
+        name: mode
+        optional: true
+        hidden: true
+      - id: 4
+        type: boolean
+        name: preset_mode
+        mapping:
+          - dps_val: true
+            value: "eco"
+          - dps_val: false
+            value: "none"
+      - id: 16
+        type: integer
+        name: temperature
+        unit: C
+        range:
+          min: 50
+          max: 350
+        mapping:
+          - scale: 10
+            step: 5
+      - id: 19
+        type: integer
+        name: max_temperature
+        mapping:
+          - scale: 10
+      - id: 26
+        type: integer
+        name: min_temperature
+        mapping:
+          - scale: 10
+      - id: 24
+        type: integer
+        name: current_temperature
+        mapping:
+          - scale: 10
+      - id: 36
+        type: string
+        name: hvac_action
+        mapping:
+          - dps_val: close
+            value: idle
+          - dps_val: open
+            constraint: mode
+            conditions:
+              - dps_val: hot
+                value: heating
+              - dps_val: cold
+                value: cooling
+              - dps_val: wind
+                value: fan
+      - id: 28
+        type: string
+        name: fan_mode
+        mapping:
+          - dps_val: auto
+            value: auto
+          - dps_val: low
+            value: low
+          - dps_val: middle
+            value: medium
+          - dps_val: high
+            value: high
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 40
+        type: boolean
+        name: lock
+  - entity: number
+    translation_key: temperature_calibration
+    class: temperature_delta
+    category: config
+    dps:
+      - id: 27
+        name: value
+        type: integer
+        unit: C
+        range:
+          min: -9
+          max: 9