瀏覽代碼

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 年之前
父節點
當前提交
39710d79ae
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      custom_components/tuya_local/devices/bstuokey_access_keypad.yaml

+ 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