Kaynağa Gözat

Add support for Orion DL021HA BLE lock

Issue #654
Jason Rumney 2 yıl önce
ebeveyn
işleme
7219962c8d

+ 3 - 2
ACKNOWLEDGEMENTS.md

@@ -255,5 +255,6 @@ Further device support has been made with the assistance of users.  Please consi
 - [burn1879](https://github.com/burn1879) for contributing support for subdevices, and Loratap zigbee curtains.
 - [hronek](https://github.com/hronek) for assisting with support for BLE PT216 temperature and humidity sensors.
 - [bparten](https://github.com/bparten) for assisting with support for Moes IR hub connected heatpump.
-- [spanzetta](https://github.com/spanzetta) for assisting with BLE connected HCT-611 water timer.
-- [MiloRoNu](https://github.com/MiloRoNu) for assisting with Neo IR Air Conditioner controller.
+- [spanzetta](https://github.com/spanzetta) for assisting with support for BLE connected HCT-611 water timer.
+- [MiloRoNu](https://github.com/MiloRoNu) for assisting with support for Neo IR Air Conditioner controller.
+- [jaydisc](https://github.com/jaydisc) for assisting with support for Orion DL021HA BLE locks.

+ 2 - 1
DEVICES.md

@@ -373,8 +373,9 @@ of device.
 
 ### Devices supported via Bluetooth hubs
 
-- PT216/PT19DB-2 BLE temperature and humidity sensor
+- PT216/PT19DB-2 temperature and humidity sensor
 - HCT-611 water timer
+- Orion DL021HA lock
 
 ### Devices supported via IR hubs
 

+ 44 - 0
custom_components/tuya_local/devices/ble_orion_lock.yaml

@@ -0,0 +1,44 @@
+name: Orion BLE lock
+products:
+  - id: a6nttc41
+    name: Orion DL021HA
+primary_entity:
+  entity: lock
+  dps:
+    - id: 1
+      type: string
+      name: unlock_method_register
+      optional: true
+    - id: 2
+      type: string
+      name: unlock_method_delete
+      optional: true
+    - id: 12
+      type: integer
+      name: unlock_fingerprint
+    - id: 19
+      type: integer
+      name: unlock_app
+    - id: 54
+      type: string
+      name: sync_method
+secondary_entities:
+  - entity: sensor
+    name: Battery
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 8
+        type: integer
+        name: sensor
+        unit: "%"
+  - entity: switch
+    name: Auto lock
+    category: config
+    icon: "mdi:lock-clock"
+    dps:
+      - id: 33
+        type: boolean
+        name: switch
+
+