瀏覽代碼

Arlec thermostat smartplug: add current humidity and fault code.

Issue #499
Jason Rumney 3 年之前
父節點
當前提交
2cc01d1b77
共有 1 個文件被更改,包括 20 次插入4 次删除
  1. 20 4
      custom_components/tuya_local/devices/arlec_thermostat_smartplug.yaml

+ 20 - 4
custom_components/tuya_local/devices/arlec_thermostat_smartplug.yaml

@@ -89,6 +89,12 @@ primary_entity:
       range:
         min: 1
         max: 99
+    - id: 46
+      type: integer
+      name: current_humidity
+    - id: 50
+      type: bitfield
+      name: fault_code
 secondary_entities:
   - entity: number
     name: Timer
@@ -254,7 +260,17 @@ secondary_entities:
       - id: 56
         type: boolean
         name: switch
-
-
-
-
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 50
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: null
+            value:: false
+          - value: true