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

Add support for Juskys OH125BW2 oil radiator.

Issue #1361
Jason Rumney 2 лет назад
Родитель
Сommit
30368b7194
3 измененных файлов с 128 добавлено и 0 удалено
  1. 2 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 125 0
      custom_components/tuya_local/devices/juskys_oh125bw2_radiator.yaml

+ 2 - 0
ACKNOWLEDGEMENTS.md

@@ -452,3 +452,5 @@ Further device support has been made with the assistance of users. Please consid
 - [MarkPaxton](https://github.com/MarkPaxton) for contributing support for Hombli radiator controllers.
 - [mmib](https://github.com/mmib) for contributing support for Becasmart irrigation systems.
 - [kkot86](https://github.com/kkot86) for contributing support for Air Housekeeper air quality monitors.
+- [NoXPhasma](https://github.com/NoXPhasma) for assisting with support for Juskys oil radiators.
+

+ 1 - 0
DEVICES.md

@@ -27,6 +27,7 @@
 - HJZ oil column radiator
 - Hombli radiator controller
 - INOW Wi-Fi heating element (single and dual air/water temperature control variants)
+- Juskys OH125BW2 oil radiator
 - Kennedy II/JR electric fireplace
 - Klarstein Wonderwall Air Art IR heater
 - Klarstein Wonderwall IR heater

+ 125 - 0
custom_components/tuya_local/devices/juskys_oh125bw2_radiator.yaml

@@ -0,0 +1,125 @@
+name: Oil radiator
+products:
+  - id: fuqsuq41dqdtzq0n
+    name: Juskys OH125BW2
+primary_entity:
+  entity: climate
+  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
+      unit: C
+      range:
+        min: 5
+        max: 50
+    - id: 4
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: "0"
+          value: away
+        - dps_val: "1"
+          value: eco
+        - dps_val: "2"
+          value: comfort
+    - id: 21
+      type: bitfield
+      name: fault_code
+secondary_entities:
+  - entity: lock
+    name: Child lock
+    icon: "mdi:hand-back-right-off"
+    category: config
+    dps:
+      - id: 7
+        type: boolean
+        name: lock
+  - entity: light
+    name: Indicators
+    icon: "mdi:led-on"
+    category: config
+    dps:
+      - id: 10
+        type: boolean
+        name: switch
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 19
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: "Off"
+          - dps_val: "1h"
+            value: "1 hour"
+          - dps_val: "2h"
+            value: "2 hours"
+          - dps_val: "3h"
+            value: "3 hours"
+          - dps_val: "4h"
+            value: "4 hours"
+          - dps_val: "5h"
+            value: "5 hours"
+          - dps_val: "6h"
+            value: "6 hours"
+          - dps_val: "7h"
+            value: "7 hours"
+          - dps_val: "8h"
+            value: "8 hours"
+          - dps_val: "9h"
+            value: "9 hours"
+          - dps_val: "10h"
+            value: "10 hours"
+          - dps_val: "11h"
+            value: "11 hours"
+          - dps_val: "12h"
+            value: "12 hours"
+          - dps_val: "13h"
+            value: "13 hours"
+          - dps_val: "14h"
+            value: "14 hours"
+          - dps_val: "15h"
+            value: "15 hours"
+          - dps_val: "16h"
+            value: "16 hours"
+          - dps_val: "17h"
+            value: "17 hours"
+          - dps_val: "18h"
+            value: "18 hours"
+          - dps_val: "19h"
+            value: "19 hours"
+          - dps_val: "20h"
+            value: "20 hours"
+          - dps_val: "21h"
+            value: "21 hours"
+          - dps_val: "22h"
+            value: "22 hours"
+          - dps_val: "23h"
+            value: "23 hours"
+          - dps_val: "24h"
+            value: "24 hours"
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 21
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+
+