Bladeren bron

Add support for Nice Digi door lock

Issue #1714
Jason Rumney 1 jaar geleden
bovenliggende
commit
815391f0da
3 gewijzigde bestanden met toevoegingen van 140 en 0 verwijderingen
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 138 0
      custom_components/tuya_local/devices/nice_digi_lock.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -536,3 +536,4 @@ Further device support has been made with the assistance of users. Please consid
 - [benzoid](https://github.com/benzoid) for contributing support for SolAire Vitra S2 heaters.
 - [bigheadsmith](https://github.com/bigheadsmith) for contributing improvements to SolAire Vitra S2 heaters.
 - [nec-k](https://github.com/nec-k) for contributing improvements to PJ1103 clamp meters.
+- [dieu](https://github.com/dieu) for assisting with support for Nice Digi locks.

+ 1 - 0
DEVICES.md

@@ -699,6 +699,7 @@ port and password.
 - HU06 smart lock
 - Ironzon fingerprint lock
 - MoistenLand water timer
+- Nice Digi door lock
 - Orion DL021HA lock
 - PT216/PT19DB-2 temperature and humidity sensor
 - SGS01 plant sensor

+ 138 - 0
custom_components/tuya_local/devices/nice_digi_lock.yaml

@@ -0,0 +1,138 @@
+name: Door lock
+products:
+  - id: ofwvna43
+    name: Nice Digi
+primary_entity:
+  entity: lock
+  dps:
+    - id: 1
+      type: string
+      name: unlock_method_create
+      optional: true
+    - id: 2
+      type: string
+      name: unlock_method_delete
+      optional: true
+    - id: 3
+      type: string
+      name: unlock_method_modify
+      optional: true
+    - id: 12
+      type: integer
+      name: unlock_fingerprint
+      optional: true
+      persist: false
+    - id: 19
+      type: integer
+      name: unlock_ble
+      optional: true
+      persist: false
+    - id: 20
+      type: string
+      name: lock_record
+      optional: true
+    - id: 46
+      type: boolean
+      name: lock
+      optional: true
+      mapping:
+        - dps_val: null
+          value_mirror: lock_motor_state
+    - id: 47
+      type: boolean
+      name: lock_motor_state
+      optional: true
+    - id: 54
+      type: string
+      name: sync_method
+      optional: true
+    - id: 61
+      type: string
+      name: remote_no_dp_key
+      optional: true
+    - id: 62
+      type: integer
+      name: unlock_app
+      optional: true
+      persist: false
+    - id: 70
+      type: string
+      name: check_code_set
+      optional: true
+    - id: 71
+      type: string
+      name: ble_unlock_check
+      optional: true
+    - id: 73
+      type: string
+      name: remote_pd_setkey_check
+      optional: true
+secondary_entities:
+  - entity: sensor
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 8
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: event
+    name: Alert
+    category: diagnostic
+    dps:
+      - id: 21
+        type: string
+        name: event
+        optional: true
+  - entity: binary_sensor
+    name: Snib
+    class: lock
+    category: diagnostic
+    dps:
+      - id: 32
+        type: boolean
+        name: sensor
+        mapping:
+          - dps_val: true
+            icon: "mdi:lock-remove"
+  - entity: switch
+    name: Auto lock
+    icon: "mdi:lock-reset"
+    category: config
+    dps:
+      - id: 33
+        type: boolean
+        name: switch
+  - entity: number
+    name: Auto lock delay
+    category: config
+    icon: "mdi:lock-clock"
+    dps:
+      - id: 36
+        type: integer
+        name: value
+        optional: true
+        unit: s
+        range:
+          min: 5
+          max: 60
+  - entity: select
+    name: Special function
+    category: config
+    dps:
+      - id: 68
+        type: string
+        name: option
+        mapping:
+          - dps_val: function1
+            value: Function 1
+          - dps_val: function2
+            value: Function 2
+  - entity: switch
+    name: Special control
+    category: config
+    dps:
+      - id: 78
+        type: boolean
+        name: switch