瀏覽代碼

Devola intelligent heater: add fault sensor

Add fault sensor on dp 12

PR #2950
Jason Rumney 1 年之前
父節點
當前提交
e2b1c44032
共有 1 個文件被更改,包括 18 次插入0 次删除
  1. 18 0
      custom_components/tuya_local/devices/devola_intelligent_heater.yaml

+ 18 - 0
custom_components/tuya_local/devices/devola_intelligent_heater.yaml

@@ -43,3 +43,21 @@ entities:
             value: boost
           - dps_val: antifrost
             value: away
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 12
+        type: bitfield
+        optional: true
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: null
+            value: false
+          - value: true
+      - id: 12
+        type: bitfield
+        optional: true
+        name: fault_code