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

Orion BLE lock: "auto_lock" is actually an unlock override.

When true, the door is locked unless opened by credential.  When false, the
door is unlocked, so we can use that for manual control.

Issue #654
Jason Rumney пре 2 година
родитељ
комит
954554ce8c
1 измењених фајлова са 4 додато и 8 уклоњено
  1. 4 8
      custom_components/tuya_local/devices/ble_orion_lock.yaml

+ 4 - 8
custom_components/tuya_local/devices/ble_orion_lock.yaml

@@ -23,6 +23,9 @@ primary_entity:
       name: unlock_app
       name: unlock_app
       persist: false
       persist: false
       optional: true
       optional: true
+    - id: 33
+      type: boolean
+      name: lock
     - id: 54
     - id: 54
       type: base64
       type: base64
       name: sync_method
       name: sync_method
@@ -37,13 +40,6 @@ secondary_entities:
         type: integer
         type: integer
         name: sensor
         name: sensor
         unit: "%"
         unit: "%"
-  - entity: switch
-    name: Auto lock
-    category: config
-    icon: "mdi:lock-clock"
-    dps:
-      - id: 33
-        type: boolean
-        name: switch
+