hornbill_y4_smart_lock.yaml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. name: Keypad lock
  2. products:
  3. - id: g7rboh0x
  4. manufacturer: Hornbill
  5. model: Smart Lock
  6. name: Key safe
  7. entities:
  8. - entity: lock
  9. dps:
  10. - id: 1
  11. type: string
  12. name: unlock_method_create
  13. optional: true
  14. sensitive: true
  15. - id: 2
  16. type: string
  17. name: unlock_method_delete
  18. optional: true
  19. - id: 3
  20. type: string
  21. name: unlock_method_modify
  22. optional: true
  23. sensitive: true
  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: 15
  35. name: unlock_card
  36. type: integer
  37. optional: true
  38. persist: false
  39. - id: 18
  40. name: open_inside
  41. type: boolean
  42. optional: true
  43. - id: 19
  44. name: unlock_ble
  45. type: integer
  46. optional: true
  47. persist: false
  48. - id: 46
  49. name: manual_lock
  50. type: boolean
  51. mapping:
  52. - dps_val: true # Unlocked
  53. value: false
  54. - dps_val: false # Locked
  55. value: true
  56. - id: 47 # Lock motor state
  57. name: lock_motor_state
  58. type: boolean
  59. readonly: true
  60. mapping:
  61. - dps_val: true # Unlocked
  62. value: false
  63. - dps_val: false # Locked
  64. value: true
  65. - id: 51
  66. type: string
  67. name: temporary_password_creat
  68. optional: true
  69. sensitive: true
  70. - id: 52
  71. type: string
  72. name: temporary_password_delete
  73. optional: true
  74. persist: false
  75. sensitive: true
  76. - id: 53
  77. type: string
  78. name: temporary_password_modify
  79. optional: true
  80. persist: false
  81. sensitive: true
  82. - id: 54
  83. type: string
  84. name: temporary_passynch_methodword_delete
  85. optional: true
  86. persist: false
  87. sensitive: true
  88. - id: 55
  89. type: integer
  90. name: unlock_temp_pwd
  91. optional: true
  92. persist: false
  93. - id: 61
  94. type: string
  95. name: remote_no_dp_key
  96. optional: true
  97. persist: false
  98. sensitive: true
  99. - id: 62
  100. type: integer
  101. name: unlock_app
  102. optional: true
  103. persist: false
  104. - id: 63
  105. type: integer
  106. name: unlock_voice
  107. optional: true
  108. persist: false
  109. - id: 64
  110. type: string
  111. name: password_offline_time
  112. optional: true
  113. persist: false
  114. sensitive: true
  115. - id: 65
  116. type: string
  117. name: unlock_offline_clear_single
  118. optional: true
  119. persist: false
  120. sensitive: true
  121. - id: 66
  122. type: string
  123. name: unlock_offline_clear
  124. optional: true
  125. persist: false
  126. sensitive: true
  127. - id: 67
  128. type: string
  129. name: unlock_offline_pwd
  130. optional: true
  131. persist: false
  132. sensitive: true
  133. - id: 70
  134. type: string
  135. name: check_code_set
  136. optional: true
  137. persist: false
  138. sensitive: true
  139. - id: 71
  140. type: string
  141. name: ble_unlock_check
  142. optional: true
  143. persist: false
  144. sensitive: true
  145. - id: 73
  146. type: string
  147. name: remote_pd_setkey_check
  148. optional: true
  149. persist: false
  150. sensitive: true
  151. - entity: event
  152. name: Alert
  153. dps:
  154. # TODO: Why not working? PR#2824 also didn't include it.
  155. # - id: 20
  156. # type: string
  157. # name: lock_record
  158. # optional: ?
  159. # alarm_lock
  160. - id: 21
  161. type: string
  162. name: event
  163. optional: true
  164. mapping:
  165. - dps_val: wrong_finger
  166. value: wrong_finger
  167. - dps_val: wrong_password
  168. value: wrong_password
  169. - dps_val: wrong_card
  170. value: wrong_card
  171. - dps_val: wrong_face
  172. value: wrong_face
  173. - dps_val: tongue_bad
  174. value: tongue_bad
  175. - dps_val: too_hot
  176. value: too_hot
  177. - dps_val: unclosed_time
  178. value: unclosed_time
  179. - dps_val: tongue_not_out
  180. value: tongue_not_out
  181. - dps_val: pry
  182. value: pry
  183. - dps_val: key_in
  184. value: key_in
  185. - dps_val: low_battery
  186. value: low_battery
  187. - dps_val: power_off
  188. value: power_off
  189. - dps_val: shock
  190. value: shock
  191. - dps_val: defense
  192. value: defense
  193. - dps_val: wrong_unlock
  194. value: wrong_unlock
  195. # doorbell_song
  196. - id: 26
  197. type: string
  198. name: event
  199. optional: true
  200. mapping:
  201. - dps_val: ding_0
  202. value: ding_0
  203. - dps_val: ding_1
  204. value: ding_1
  205. - entity: select
  206. name: Lock volume
  207. category: config
  208. dps:
  209. - id: 31
  210. type: string
  211. name: option
  212. mapping:
  213. - dps_val: mute
  214. value: Mute
  215. - dps_val: low
  216. value: Low
  217. - dps_val: normal
  218. value: Normal
  219. - dps_val: high
  220. value: High
  221. - entity: switch
  222. name: reverse_lock
  223. category: config
  224. icon: "mdi:screen-lock-rotation"
  225. dps:
  226. - id: 32
  227. type: boolean
  228. name: switch
  229. - entity: switch
  230. name: Automatic Lock
  231. category: config
  232. icon: "mdi:lock-reset"
  233. dps:
  234. - id: 33
  235. type: boolean
  236. name: switch
  237. - entity: number
  238. name: Automatic Lock Delay
  239. class: duration
  240. icon: "mdi:lock-clock"
  241. category: config
  242. dps:
  243. - id: 36
  244. type: integer
  245. name: value
  246. unit: s
  247. range:
  248. min: 1
  249. max: 1800
  250. - entity: select
  251. name: Approach Unlock Delay
  252. category: config
  253. dps:
  254. - id: 89
  255. type: string
  256. name: option
  257. mapping:
  258. - dps_val: inactive
  259. value: Inactive
  260. - dps_val: 4s
  261. value: 4s
  262. - dps_val: 6s
  263. value: 6s
  264. - dps_val: 8s
  265. value: 8s
  266. - dps_val: 10s
  267. value: 10s
  268. - dps_val: 12s
  269. value: 12s
  270. - entity: sensor
  271. class: battery
  272. category: diagnostic
  273. dps:
  274. - id: 8
  275. type: integer
  276. name: sensor
  277. unit: "%"
  278. class: measurement
  279. optional: true
  280. - entity: select
  281. translation_key: language
  282. category: config
  283. dps:
  284. - id: 28
  285. type: string
  286. name: option
  287. optional: true
  288. mapping:
  289. - dps_val: chinese_simplified
  290. value: chinese
  291. - dps_val: english
  292. value: english