Răsfoiți Sursa

BSTUOKEY: loosen matching to more reliably detect this device

Many dps are not reported always by this device.

Comment on issue #1152
Jason Rumney 2 ani în urmă
părinte
comite
39710d79ae

+ 3 - 0
custom_components/tuya_local/devices/bstuokey_access_keypad.yaml

@@ -8,6 +8,7 @@ primary_entity:
     - id: 104
       type: boolean
       name: lock
+      optional: true
       mapping:
         - dps_val: true
           value: false
@@ -88,6 +89,7 @@ secondary_entities:
       - id: 31
         type: integer
         name: value
+        optional: true
         unit: s
         range:
           min: 1
@@ -133,6 +135,7 @@ secondary_entities:
     dps:
       - id: 102
         type: boolean
+        optional: true
         name: switch
   - entity: binary_sensor
     class: tamper