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

New device ezaiot_r9lite_thermostat.yaml

Electric heating thermostat 16A version https://www.aliexpress.com/item/1005006020556081.html
Pavel Janouskovec 1 год назад
Родитель
Сommit
e9eaacb121
1 измененных файлов с 219 добавлено и 0 удалено
  1. 219 0
      custom_components/tuya_local/devices/ezaiot_r9lite_thermostat.yaml

+ 219 - 0
custom_components/tuya_local/devices/ezaiot_r9lite_thermostat.yaml

@@ -0,0 +1,219 @@
+name: EZAIOT R9Lite thermostat
+#https://www.aliexpress.com/item/1005006020556081.html  Electric Heating 16A version
+products:
+  - id: dq6nlukkifyawj9n
+    name: EZAIOT R9Lite thermostat
+primary_entity:
+  entity: climate
+  dps:
+    - id: 1
+      type: boolean
+      name: hvac_mode
+      mapping:
+        - dps_val: false
+          value: 'off'
+        - dps_val: true
+          constraint: mode
+          conditions:
+            - dps_val: auto
+              value: auto
+            - dps_val: manual
+              value: heat
+    - id: 2
+      type: string
+      name: mode
+      hidden: true
+    - id: 16
+      type: integer
+      name: temperature
+      range:
+        min: 50
+        max: 10000
+      mapping:
+        - scale: 10
+          step: 5
+          constraint: temperature_unit
+          conditions:
+            - dps_val: f
+              step: 10
+    - id: 19
+      type: integer
+      name: max_temperature
+      mapping:
+        - scale: 10
+    - id: 23
+      type: string
+      name: temperature_unit
+      mapping:
+        - dps_val: c
+          value: C
+        - dps_val: f
+          value: F
+    - id: 24
+      type: integer
+      name: current_temperature
+      mapping:
+        - scale: 10
+    - id: 26
+      type: integer
+      name: min_temperature
+      mapping:
+        - scale: 10
+    - id: 101
+      type: integer
+      name: unknown_101
+    - id: 112
+      type: integer
+      name: unknown_112
+    - id: 102
+      type: integer
+      name: Temperature adjust step
+    - id: 110
+      type: boolean
+      name: Valve state boolean
+    - id: 105
+      type: string
+      name: Device name
+    - id: 108
+      type: integer
+      name: Temperature calibration step
+secondary_entities:
+  - entity: switch
+    translation_key: anti_frost
+    category: config
+    dps:
+      - id: 10
+        type: boolean
+        name: switch
+  - entity: select
+    translation_key: temperature_unit
+    category: config
+    dps:
+      - id: 23
+        type: string
+        name: option
+        mapping:
+          - dps_val: c
+            value: celsius
+          - dps_val: f
+            value: fahrenheit
+  - entity: select
+    name: Schedule
+    category: config
+    icon: 'mdi:calendar-clock'
+    dps:
+      - id: 31
+        type: string
+        name: option
+        mapping:
+          - dps_val: '5_2'
+            value: Weekday+Weekend
+          - dps_val: '6_1'
+            value: Mon-Sat+Sun
+          - dps_val: '7'
+            value: Daily
+  - entity: binary_sensor
+    name: Valve
+    class: opening
+    category: diagnostic
+    dps:
+      - id: 36
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: open
+            value: true
+          - dps_val: close
+            value: false
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 40
+        type: boolean
+        name: lock
+  - entity: binary_sensor
+    category: diagnostic
+    class: problem
+    dps:
+      - id: 45
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 45
+        type: bitfield
+        name: fault_code
+  - entity: number
+    name: High temperature limit
+    category: config
+    class: temperature
+    dps:
+      - id: 19
+        type: integer
+        name: value
+        unit: C
+        range:
+          min: 50
+          max: 10000
+        mapping:
+          - scale: 10
+            step: 10
+  - entity: number
+    name: Low temperature limit
+    category: config
+    class: temperature
+    dps:
+      - id: 26
+        name: value
+        type: integer
+        unit: C
+        range:
+          min: 50
+          max: 10000
+        mapping:
+          - scale: 10
+            step: 10
+  - entity: number
+    name: Temperature calibration
+    category: config
+    class: temperature
+    dps:
+      - id: 109
+        name: value
+        type: integer
+        unit: C
+        range:
+          min: -99
+          max: 99
+        mapping:
+          - scale: 10
+            step: 1
+  - entity: sensor
+    #The dps id 113 is readonly (set not working)- I don't know why..probably not implemented on device
+    name: Temperature sensor type
+    category: diagnostic
+    dps:
+      - id: 113
+        type: string
+        name: sensor
+  - entity: sensor
+    name: External sensor current temperature
+    class: temperature
+    category: diagnostic
+    dps:
+      - id: 115
+        name: sensor
+        type: integer
+        unit: C
+        mapping:
+          - scale: 10
+  - entity: sensor
+    name: Version
+    category: diagnostic
+    dps:
+      - id: 111
+        name: sensor
+        type: string