hornbill_smart_lock.yaml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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: bool
  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. - id: 67
  133. type: string
  134. name: unlock_offline_pd
  135. optional: true
  136. persist: false
  137. sensitive: true
  138. - id: 70
  139. type: string
  140. name: check_code_set
  141. optional: true
  142. persist: false
  143. sensitive: true
  144. - id: 71
  145. type: string
  146. name: ble_unlock_check
  147. optional: true
  148. persist: false
  149. sensitive: true
  150. - id: 73
  151. type: string
  152. name: remote_pd_setkey_check
  153. optional: true
  154. persist: false
  155. sensitive: true
  156. - entity: event
  157. name: Alert
  158. dps:
  159. # TODO:
  160. # - id: 20
  161. # type: string
  162. # name: lock_record
  163. # optional: ?
  164. # alarm_lock
  165. - id: 21
  166. type: string
  167. name: event
  168. optional: true
  169. mapping:
  170. - dps_val: wrong_finger
  171. value: wrong_finger
  172. - dps_val: wrong_password
  173. value: wrong_password
  174. - dps_val: wrong_card
  175. value: wrong_card
  176. - dps_val: wrong_face
  177. value: wrong_face
  178. - dps_val: tongue_bad
  179. value: tongue_bad
  180. - dps_val: too_hot
  181. value: too_hot
  182. - dps_val: unclosed_time
  183. value: unclosed_time
  184. - dps_val: tongue_not_out
  185. value: tongue_not_out
  186. - dps_val: pry
  187. value: pry
  188. - dps_val: key_in
  189. value: key_in
  190. - dps_val: low_battery
  191. value: low_battery
  192. - dps_val: power_off
  193. value: power_off
  194. - dps_val: shock
  195. value: shock
  196. - dps_val: defense
  197. value: defense
  198. - dps_val: wrong_unlock
  199. value: wrong_unlock
  200. # doorbell_song
  201. - id: 26
  202. type: string
  203. name: event
  204. optional: true
  205. mapping:
  206. - dps_val: ding_0
  207. value: ding_0
  208. - dps_val: ding_1
  209. value: ding_1
  210. - entity: select
  211. name: Lock volume
  212. category: config
  213. dps:
  214. - id: 31
  215. type: string
  216. name: option
  217. mapping:
  218. - dps_val: mute
  219. value: Mute
  220. - dps_val: low
  221. value: Low
  222. - dps_val: normal
  223. value: Normal
  224. - dps_val: high
  225. value: High
  226. - entity: switch
  227. name: reverse_lock
  228. category: config
  229. icon: "TODO:?"
  230. dps:
  231. - id: 32
  232. type: boolean
  233. name: switch
  234. - entity: switch
  235. name: automatic_lock
  236. category: config
  237. icon: "mdi:lock-reset"
  238. dps:
  239. - id: 33
  240. type: boolean
  241. name: switch
  242. - entity: number
  243. name: auto_lock_time
  244. class: duration
  245. icon: "mdi:lock-clock"
  246. category: config
  247. dps:
  248. - id: 36
  249. type: integer
  250. name: value
  251. unit: s
  252. range:
  253. min: 1
  254. max: 1800
  255. - entity: select
  256. name: closed_opened
  257. category: config
  258. dps:
  259. - id: 40
  260. type: string
  261. name: option
  262. mapping:
  263. - dps_val: unknown
  264. value: unknown
  265. - dps_val: open
  266. value: open
  267. - dps_val: closed
  268. value: closed
  269. - entity: select
  270. name: autolock_delay_level
  271. category: config
  272. dps:
  273. - id: 89
  274. type: string
  275. name: option
  276. mapping:
  277. - dps_val: inactive
  278. value: Inactive
  279. - dps_val: 4s
  280. value: 4s
  281. - dps_val: 6s
  282. value: 6s
  283. - dps_val: 8s
  284. value: 8s
  285. - dps_val: 10s
  286. value: 10s
  287. - dps_val: 12s
  288. value: 12s
  289. - entity: sensor
  290. class: battery
  291. category: diagnostic
  292. dps:
  293. - id: 8
  294. type: integer
  295. name: sensor
  296. unit: "%"
  297. class: measurement
  298. optional: true
  299. - entity: select
  300. translation_key: language
  301. category: config
  302. dps:
  303. - id: 28
  304. type: string
  305. name: option
  306. optional: true
  307. mapping:
  308. - dps_val: chinese_simplified
  309. value: chinese
  310. - dps_val: english
  311. value: english