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

Ironzon: merge into identical ailrinni fingerprint lock

DPS are the same (ailrinni had more defined, though the extras are
all reference-only attributes that cannot be used).
Jason Rumney 1 год назад
Родитель
Сommit
8f5f9702d9

+ 3 - 0
custom_components/tuya_local/devices/ailrinni_fingerprint_lock.yaml

@@ -1,5 +1,8 @@
 name: Door lock
+legacy_type: ironzon_fingerprint_lock
 products:
+  - id: ludzroix
+    name: Ironzon PLD 190
   - id: okkyfgfs
     name: Ailrinni BLE fingerprint lock
 primary_entity:

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

@@ -1,114 +0,0 @@
-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
-    - 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
-        optional: true
-        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