Преглед изворни кода

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