Просмотр исходного кода

Add support for Ironzon fingerprint lock

Issue #1554
Jason Rumney 2 лет назад
Родитель
Сommit
4930162783
3 измененных файлов с 116 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 114 0
      custom_components/tuya_local/devices/ironzon_fingerprint_lock.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -479,3 +479,4 @@ Further device support has been made with the assistance of users. Please consid
 - [a-r-j-a-n](https://github.com/a-r-j-a-n) for contributing support for Poolex Arctic spa pool heatpumps.
 - [Geek-MD](https://github.com/Geek-MD) for contributing support for generic 2 outlet + 2 USB smartplugs.
 - [TwoWheelPro](https://github.com/TwoWheelPro) for contributing support for Holman WX8 irrigation controllers.
+- [scrampker](https://github.com/scrampker) for assisting with support for Ironzon fingerprint locks.

+ 1 - 0
DEVICES.md

@@ -635,6 +635,7 @@ port and password.
 - Diivoo WT05 dual water timer
 - HCT-611 water timer
 - HU06 smart lock
+- Ironzon fingerprint lock
 - Orion DL021HA lock
 - PT216/PT19DB-2 temperature and humidity sensor
 - Smart Ape solar garden light

+ 114 - 0
custom_components/tuya_local/devices/ironzon_fingerprint_lock.yaml

@@ -0,0 +1,114 @@
+name: Door lock
+products:
+  - id: ludzroix
+    name: Ironzon PLD 190
+primary_entity:
+  entity: lock
+  dps:
+    - id: 12
+      type: integer
+      name: unlock_fingerprint
+      optional: true
+      persist: false
+    - id: 13
+      type: integer
+      name: unlock_password
+      optional: true
+      persist: false
+    - id: 14
+      type: integer
+      name: unlock_dynamic_pwd
+      optional: true
+      persist: false
+    - id: 19
+      type: integer
+      name: unlock_ble
+      optional: true
+      persist: false
+    - id: 55
+      type: integer
+      name: unlock_temp_pwd
+      optional: true
+      persist: false
+    - id: 62
+      type: integer
+      name: unlock_app
+      optional: true
+      persist: false
+    - id: 63
+      type: integer
+      name: unlock_voice
+      optional: true
+      persist: true
+    - id: 64
+      type: string
+      name: offline_password_timestamp
+secondary_entities:
+  - entity: sensor
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 8
+        type: integer
+        name: sensor
+        unit: "%"
+  - entity: select
+    name: Beep volume
+    category: config
+    icon: "mdi:volume-high"
+    dps:
+      - id: 31
+        type: string
+        name: option
+        mapping:
+          - dps_val: mute
+            value: Mute
+          - dps_val: low
+            value: Low
+          - dps_val: normal
+            value: Normal
+          - dps_val: high
+            value: High
+  - entity: binary_sensor
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 21
+        type: string
+        name: sensor
+        optional: true
+        persist: false
+        mapping:
+          - dps_val: low_battery
+            value: true
+          - value: false
+  - entity: binary_sensor
+    name: Too many attempts
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 21
+        type: string
+        name: sensor
+        optional: true
+        persist: false
+        mapping:
+          - dps_val: low_battery
+            value: false
+          - dps_val: null
+            value: false
+          - value: true
+      - id: 21
+        type: string
+        name: details
+  - entity: binary_sensor
+    class: lock
+    dps:
+      - id: 47
+        type: boolean
+        name: sensor
+        mapping:
+          - dps_val: true
+            value: false
+          - dps_val: false
+            value: true