Przeglądaj źródła

Add Avatto WT81 support using Beok TGR81 config

As discussed on PR #540
Jason Rumney 3 lat temu
rodzic
commit
ac33e32805

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -216,3 +216,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [Kannix2005](https://github.com/Kannix2005) for assisting with support for Etersky aroma diffusers.
 - [Daverover66](https://github.com/Daverover66) for assisting with support for ElectriQ PD45E dehumidifiers.
 - [ettiennegous](https://github.com/ettiennegous) for assisting with support for BrilliantSmart RGB garden lights.
+- [yarosman](https://github.com/yarosman) for contributing Avatto WT81 support, which was merged with the Beok TGR81.

+ 1 - 1
DEVICES.md

@@ -72,7 +72,7 @@
 - Beca BHT-002/3000 floor heating thermostat (with external temp sensor)
 - Beca BHP-6000 room heat pump control thermostat
 - Beca BHT-6000/8000 floor heating thermostat
-- Beok TGR81 thermostat (also reported working with Myuet ME98)
+- Beok TGR81 thermostat (also reported working with Myuet ME98, Avatto WT81/ME81)
 - Beok TOL47 thermostat
 - Beok TR9B thermostat _(rebadged as Vancoo and perhaps others)_
 - ETOP-HP thermostat (CH7100)

+ 55 - 4
custom_components/tuya_local/devices/beok_tgr81_thermostat_c.yaml

@@ -1,4 +1,7 @@
 name: Beok TGR81 thermostat
+products:
+  - id: gogb05wrtredz3bs
+    name: Avatto WT81 thermostat
 primary_entity:
   entity: climate
   dps:
@@ -59,10 +62,10 @@ primary_entity:
             - dps_val: false
               icon: "mdi:radiator-disabled"
               value: "off"
-    - id: 38
-      type: string
-      name: week_program
-      optional: true
+    - id: 45
+      name: fault_code
+      type: bitfield
+      
 secondary_entities:
   - entity: number
     name: Calibration offset
@@ -162,3 +165,51 @@ secondary_entities:
         name: button
         type: boolean
         optional: true
+  - entity: select
+    name: Working week
+    icon: "mdi:calendar-clock"
+    category: config
+    dps:
+      - id: 38
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: "00"
+            value: "Off"
+          - dps_val: "52"
+            value: "5 days"
+          - dps_val: "61"
+            value: "6 days"
+          - dps_val: "70"
+            value: "7 days"
+          - dps_val: null
+            value_redirect: 102
+      - id: 102
+        type: string
+        name: alt
+        optional: true
+        mapping:
+          - dps_val: "00"
+            value: "Off"
+          - dps_val: "52"
+            value: "5 days"
+          - dps_val: "61"
+            value: "6 days"
+          - dps_val: "70"
+            value: "7 days"
+          - dps_val: null
+            invalid: true
+  - entity: number
+    name: Hysteresis
+    category: config
+    icon: "mdi:arrow-expand-vertical"
+    dps:
+      - id: 101
+        type: integer
+        name: value
+        optional: true
+        unit: C
+        range:
+          min: 1
+          max: 5