Parcourir la source

fix: turn alarm sensor to fault code

Igor il y a 1 an
Parent
commit
0494a0dd94
1 fichiers modifiés avec 10 ajouts et 3 suppressions
  1. 10 3
      custom_components/tuya_local/devices/ballu_aura.yaml

+ 10 - 3
custom_components/tuya_local/devices/ballu_aura.yaml

@@ -88,10 +88,17 @@ secondary_entities:
           min: 0
           min: 0
           max: 7200
           max: 7200
 
 
-  - entity: sensor
+  - entity: binary_sensor
     category: diagnostic
     category: diagnostic
-    name: Alarm
+    class: problem
     dps:
     dps:
       - id: 106
       - id: 106
+        type: bitfield
         name: sensor
         name: sensor
-        type: integer
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 106
+        type: bitfield
+        name: fault_code