hornbill_smart_lock.yaml 7.2 KB

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