ailrinni_fingerprint_lock.yaml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. name: Door lock
  2. products:
  3. - id: okkyfgfs
  4. name: Ailrinni BLE fingerprint lock
  5. primary_entity:
  6. entity: lock
  7. dps:
  8. - id: 1
  9. type: string
  10. name: create_unlock_method
  11. optional: true
  12. - id: 2
  13. type: string
  14. name: delete_unlock_method
  15. optional: true
  16. - id: 3
  17. type: string
  18. name: modify_unlock_method
  19. optional: true
  20. - id: 6
  21. type: string
  22. optional: true
  23. name: bluetooth_unlock
  24. - id: 12
  25. type: integer
  26. name: unlock_fingerprint
  27. optional: true
  28. persist: false
  29. - id: 13
  30. name: unlock_password
  31. type: integer
  32. optional: true
  33. persist: false
  34. - id: 14
  35. name: unlock_dynamic_pwd
  36. type: integer
  37. optional: true
  38. persist: false
  39. - id: 19
  40. name: unlock_ble
  41. type: integer
  42. optional: true
  43. persist: false
  44. - id: 47 # Lock motor state
  45. name: lock
  46. type: boolean
  47. readonly: true
  48. optional: true
  49. mapping:
  50. - dps_val: true # Unlocked
  51. value: false
  52. - dps_val: false # Locked
  53. value: true
  54. - id: 51
  55. type: string
  56. optional: true
  57. name: temp_pwd_create
  58. - id: 52
  59. type: string
  60. optional: true
  61. name: temp_pwd_delete
  62. - id: 53
  63. type: string
  64. optional: true
  65. name: temp_pwd_modify
  66. - id: 54
  67. type: string
  68. optional: true
  69. name: sync_method
  70. - id: 55
  71. type: integer
  72. name: unlock_temp_pwd
  73. optional: true
  74. persist: false
  75. - id: 60
  76. type: string
  77. optional: true
  78. name: remote_no_pd_setkey
  79. - id: 61
  80. type: string
  81. optional: true
  82. name: remote_no_dp_key
  83. - id: 62
  84. type: integer
  85. name: unlock_app
  86. optional: true
  87. persist: false
  88. - id: 63
  89. name: unlock_voice
  90. type: integer
  91. optional: true
  92. persist: false
  93. - id: 64
  94. type: string
  95. optional: true
  96. name: pwd_offline_time
  97. - id: 65
  98. type: string
  99. optional: true
  100. name: offline_pwd_cleared
  101. - id: 66
  102. type: string
  103. optional: true
  104. name: offline_pwd_clear_all
  105. - id: 67
  106. type: string
  107. optional: true
  108. persist: false
  109. name: unlock_offline_pwd
  110. mapping:
  111. - dps_val: null
  112. value: null
  113. - value: 1
  114. - id: 67
  115. type: string
  116. optional: true
  117. name: offline_pwd_details
  118. secondary_entities:
  119. - entity: sensor
  120. class: battery
  121. dps:
  122. - id: 8
  123. type: integer
  124. name: sensor
  125. unit: "%"
  126. - entity: sensor
  127. name: Alert
  128. class: enum
  129. category: diagnostic
  130. dps:
  131. - id: 21
  132. type: string
  133. name: sensor
  134. optional: true
  135. persist: false
  136. mapping:
  137. - dps_val: null
  138. value: ok
  139. - dps_val: wrong_finger
  140. value: Wrong Finger
  141. - dps_val: wrong_password
  142. value: Wrong Password
  143. - dps_val: low_battery
  144. value: Low Battery
  145. - entity: number
  146. name: Lock volume
  147. category: config
  148. dps:
  149. - id: 31
  150. type: string
  151. name: value
  152. unit: "%"
  153. range:
  154. min: 0
  155. max: 100
  156. mapping:
  157. - dps_val: mute
  158. step: 33
  159. value: 0
  160. icon: "mdi:volume-mute"
  161. - dps_val: low
  162. step: 33
  163. value: 33
  164. icon: "mdi:volume-low"
  165. - dps_val: normal
  166. step: 33
  167. value: 66
  168. icon: "mdi:volume-medium"
  169. - dps_val: high
  170. step: 33
  171. value: 100
  172. icon: "mdi:volume-high"