فهرست منبع

Add support for Orion OWH-PTC2000 heaters

Issue #423
Jason Rumney 3 سال پیش
والد
کامیت
af721b7964
3فایلهای تغییر یافته به همراه79 افزوده شده و 1 حذف شده
  1. 1 1
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 77 0
      custom_components/tuya_local/devices/orion_ptc2000_heater.yaml

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -193,4 +193,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [Saentist](https://github.com/Saentist) for contributing Bulgarian translations.
 - [drudgebg](https://github.com/drudgebg) for contributing support for Teckin SS42 outdoor double smartplug.
 - [saotthon](https://github.com/saotthon) for assisting with support for BVF CP1 heaters.
-- [MarciPain](https://github.com/MarciPain) for contributing support for PGST temperature and humidity sensors.
+- [MarciPain](https://github.com/MarciPain) for contributing support for PGST temperature and humidity sensors and Orion OWH-PTC2000 heaters.

+ 1 - 0
DEVICES.md

@@ -20,6 +20,7 @@
 - Kogan tower heater - KASTHFP2KWA model
 - Kogan Wi-Fi convection panel heaters - KAHTP and KAWFHTP models
 - Nedis convection heater - WIFIHTPL20F model
+- Orion OWH-PTC2000 heater
 - Purline Hoti M100 heater
 - Wetair WCH-750 heater
 

+ 77 - 0
custom_components/tuya_local/devices/orion_ptc2000_heater.yaml

@@ -0,0 +1,77 @@
+name: Orion Heater
+primary_entity:
+  entity: climate
+  dps:
+    - id: 1
+      type: boolean
+      name: hvac_mode
+      mapping:
+        - dps_val: true
+          value: "heat"
+        - dps_val: false
+          value: "off"
+    - id: 2
+      type: integer
+      name: temperature
+      range:
+        min: 18
+        max: 45
+    - id: 3
+      type: integer
+      name: current_temperature
+    - id: 5
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: "1"
+          value: "1000 W"
+        - dps_val: "2"
+          value: "2000 W"
+        - dps_val: "auto"
+          value: "Auto"
+        - dps_val: "off"
+          value: "off"
+    - id: 101
+      type: boolean
+      name: swing_mode
+      mapping:
+        - dps_val: false
+          value: "off"
+        - dps_val: true
+          value: "on"
+secondary_entities:
+   - entity: select
+     name: Timer
+     icon: "mdi:timer"
+     category: config
+     dps:
+       - id: 19
+         type: string
+         name: option
+         mapping:
+           - dps_val: "cancel"
+             value: "none"
+           - 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"
+   - entity: switch
+     name: Window detection
+     icon: "mdi:window-open-variant"
+     category: config
+     dps:
+       - id: 101
+         type: boolean
+         name: switch