Parcourir la source

Change error DPS to a diagnostic problem binary_sensor

Bo Jeanes il y a 1 an
Parent
commit
5d39a593cd
1 fichiers modifiés avec 12 ajouts et 6 suppressions
  1. 12 6
      custom_components/tuya_local/devices/bonaire_heater.yaml

+ 12 - 6
custom_components/tuya_local/devices/bonaire_heater.yaml

@@ -34,12 +34,7 @@ primary_entity:
           value: boost
         - dps_val: af
           value: away
-    - id: 12
-      name: error
-      type: bitfield
-      mapping:
-        - dps_val: 0
-          value: "OK"
+
 secondary_entities:
   - entity: lock
     translation_key: child_lock
@@ -48,6 +43,17 @@ secondary_entities:
       - id: 7
         type: boolean
         name: lock
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 12
+        name: error
+        type: bitfield
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
   - entity: light
     translation_key: backlight
     dps: