hornbill_y4_smart_lock.yaml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  1. name: Keypad lock
  2. products:
  3. - id: g7rboh0x
  4. manufacturer: Hornbill
  5. name: Hornbill Y4 Smart Lock
  6. entities:
  7. - entity: lock
  8. dps:
  9. # [Add unlocking method] After the device is online, add unlocking
  10. # methods. Support adding fingerprint, password, card and face unlocking
  11. # methods; support administrator tagging.
  12. - id: 1
  13. type: string
  14. optional: true
  15. sensitive: true
  16. name: unlock_method_create
  17. # [Delete unlocking method] After the device is online, delete the
  18. # unlocking method. Supports deleting fingerprint, password, card and
  19. # face unlocking methods. This dp appears in pairs with the added dp.
  20. - id: 2
  21. type: string
  22. optional: true
  23. sensitive: true
  24. name: unlock_method_delete
  25. # [Modify unlocking method] After the device is online, you can modify
  26. # the name of the unlocking method and the content of the password.
  27. - id: 3
  28. type: string
  29. optional: true
  30. name: unlock_method_modify
  31. # [Report unlocking record] is used for the device to report the record
  32. # of fingerprint unlocking. This dp is only enabled when the smart lock
  33. # product has a fingerprint recognition function in the hardware.
  34. - id: 12
  35. type: integer
  36. readonly: true
  37. name: unlock_fingerprint
  38. optional: true
  39. persist: false
  40. range:
  41. min: 0
  42. max: 999
  43. # [Report unlocking record] is used for the device to report the record
  44. # of unlocking with ordinary password. This dp is enabled only when the
  45. # hardware of this smart lock product has a password button that can be
  46. # used to unlock the door with a password.
  47. - id: 13
  48. name: unlock_password
  49. type: integer
  50. readonly: true
  51. optional: true
  52. persist: false
  53. range:
  54. min: 0
  55. max: 999
  56. # [Report unlocking record] is used for the device to report the door
  57. # card unlocking record. This dp is enabled only when the smart lock
  58. # product has a card swiping function in the hardware and can report the
  59. # card swiping record.
  60. - id: 15
  61. name: unlock_card
  62. type: integer
  63. readonly: true
  64. optional: true
  65. persist: false
  66. range:
  67. min: 0
  68. max: 999
  69. # [Report unlocking record] If the device supports detection of door
  70. # opening from the inside, it is used for the device to report the record
  71. # of door opening from the inside. This dp is enabled only when the
  72. # hardware of this smart lock product can detect and identify unlocking
  73. # from the inside and can report the data.
  74. - id: 18
  75. name: open_inside
  76. type: boolean
  77. readonly: true
  78. optional: true
  79. # [Report unlocking record] is used for the device to report the door
  80. # opening record generated by the mobile phone app Bluetooth unlocking.
  81. # Generally, all Bluetooth locks support this function.
  82. - id: 19
  83. name: unlock_ble
  84. type: integer
  85. readonly: true
  86. optional: true
  87. persist: false
  88. range:
  89. min: 0
  90. max: 999
  91. # [Report lock record] is used for the device to report the lock record.
  92. # If the lock is controlled by the mobile phone app or the lock is
  93. # manually closed locally, this dp can be used to report.
  94. - id: 20
  95. type: string
  96. optional: true
  97. name: lock_record
  98. # [Device Status] is used to report the status of the device clutch
  99. # switch, that is, the switch status of the lock. This dp is enabled only
  100. # when the product hardware supports the detection of the lock status.
  101. - id: 47
  102. type: boolean
  103. optional: true
  104. name: lock_motor_state
  105. readonly: true
  106. # [Online Temporary Password] is used to add an online temporary
  107. # password, and supports setting time periods and recurring time limits.
  108. - id: 51
  109. type: string
  110. optional: true
  111. sensitive: true
  112. name: temporary_password_create
  113. # [Online temporary password] is used to delete the online temporary
  114. # password.
  115. - id: 52
  116. type: string
  117. optional: true
  118. persist: false
  119. name: temporary_password_delete
  120. # [Online temporary password] is used to modify the password content and
  121. # corresponding validity period of the online temporary password.
  122. - id: 53
  123. type: string
  124. optional: true
  125. sensitive: true
  126. persist: false
  127. name: temporary_password_modify
  128. # [Synchronous unlocking method] is used to synchronize all unlocking
  129. # methods on the local device with the mobile phone. It is strongly
  130. # recommended to enable this function.
  131. - id: 54
  132. type: string
  133. optional: true
  134. persist: false
  135. sensitive: true
  136. name: synch_method
  137. # [Report unlocking record] is used for the device to report the record
  138. # of online temporary password unlocking.
  139. - id: 55
  140. type: integer
  141. name: unlock_temp_pwd
  142. optional: true
  143. persist: false
  144. range:
  145. min: 0
  146. max: 999
  147. # [Remote unlocking operation] is used to trigger the remote unlocking
  148. # operation of the device. It is recommended to enable this DP and
  149. # develop this function. Only when this function is supported and the
  150. # door lock is connected to the Bluetooth gateway, can the voice control
  151. # door opening and closing function be realized with smart speaker
  152. # products such as Alexa or Google Home.
  153. - id: 61
  154. type: string
  155. optional: true
  156. persist: false
  157. sensitive: true
  158. name: remote_no_dp_key
  159. # [Report unlocking records] is used for the device to report the records
  160. # of remote unlocking via mobile phone.
  161. - id: 62
  162. type: integer
  163. name: unlock_app
  164. optional: true
  165. persist: false
  166. range:
  167. min: 0
  168. max: 999
  169. # [Report unlocking record] is used for the device to report the record
  170. # of voice unlocking. This function depends on dp61 = remote door opening
  171. # (with verification code). It needs to be enabled with dp62 and pay for
  172. # the voice door opening value-added service at the iot platform
  173. # value-added service center before this function can be used.
  174. - id: 63
  175. type: integer
  176. name: unlock_voice
  177. optional: true
  178. persist: false
  179. range:
  180. min: 0
  181. max: 999
  182. # [Offline Password] is used to synchronize the timestamp between the
  183. # cloud and the device. If it is not selected or not synchronized, the
  184. # offline password will not be available.
  185. - id: 64
  186. type: string
  187. optional: true
  188. persist: false
  189. name: password_offline_time
  190. # [Offline password clear] When a single offline password is cleared
  191. # locally on the device, the clearing operation record is reported.
  192. - id: 65
  193. type: string
  194. optional: true
  195. persist: false
  196. name: offline_pwd_cleared
  197. # [Offline password clear] When all offline passwords are cleared locally
  198. # on the device, the clearing operation record is reported.
  199. - id: 66
  200. type: string
  201. optional: true
  202. persist: false
  203. sensitive: true
  204. name: unlock_offline_clear
  205. # [Report unlocking record] is used for the device to report offline
  206. # password unlocking records.
  207. - id: 67
  208. type: string
  209. name: unlock_offline_pwd
  210. optional: true
  211. persist: false
  212. sensitive: true
  213. # [Bluetooth Unlock] is used to configure the verification information
  214. # required when the device performs Bluetooth unlocking.
  215. - id: 70
  216. type: string
  217. name: check_code_set
  218. optional: true
  219. persist: false
  220. sensitive: true
  221. # [Bluetooth Unlock] is used to trigger the device to perform Bluetooth
  222. # unlocking. The trigger source can be a mobile phone, an accessory, or
  223. # proximity unlocking.
  224. - id: 71
  225. type: string
  226. name: ble_unlock_check
  227. optional: true
  228. persist: false
  229. sensitive: true
  230. # [Remote unlock] is used to configure the key required for remote
  231. # unlocking. If the device needs to be unlocked remotely, this DP is
  232. # required.
  233. - id: 73
  234. type: string
  235. name: remote_pd_setkey_check
  236. optional: true
  237. persist: false
  238. sensitive: true
  239. - entity: event
  240. name: Alert
  241. dps:
  242. # [Alarm record] When an alarm occurs locally, it is used to report the
  243. # alarm record of the device. Corresponding value description:
  244. # 0=fingerprint trial error alarm
  245. # 1=password trial error alarm
  246. # 2=card trial error alarm
  247. # 3=face trial error alarm
  248. # 4=fake lock (lock tongue stuck)
  249. # 5=high temperature alarm
  250. # 6=timeout failure to close the door
  251. # 7=electronic lock tongue not popped up
  252. # 8=anti-pry alarm, 9=key insertion
  253. # 10=low power alarm,
  254. # 11=battery exhaustion alarm
  255. # 12=vibration alarm
  256. # 13=arming alarm
  257. # If the device only uses a few items in the alarm dp, the redundant
  258. # content does not need to be deleted. If deleted, the serial number of
  259. # the MCU needs to be adjusted when reporting. It is recommended that
  260. # developers do not change the enumeration value in the alarm. In special
  261. # circumstances, please add, delete, and configure multiple languages
  262. # under the guidance of pm.
  263. - id: 21
  264. type: string
  265. readonly: true
  266. name: event
  267. optional: true
  268. mapping:
  269. - dps_val: wrong_finger
  270. value: wrong_finger
  271. - dps_val: wrong_password
  272. value: wrong_password
  273. - dps_val: wrong_card
  274. value: wrong_card
  275. - dps_val: wrong_face
  276. value: wrong_face
  277. - dps_val: tongue_bad
  278. value: tongue_bad
  279. - dps_val: too_hot
  280. value: too_hot
  281. - dps_val: unclosed_time
  282. value: unclosed_time
  283. - dps_val: tongue_not_out
  284. value: tongue_not_out
  285. - dps_val: pry
  286. value: pry
  287. - dps_val: key_in
  288. value: key_in
  289. - dps_val: low_battery
  290. value: low_battery
  291. - dps_val: power_off
  292. value: power_off
  293. - dps_val: shock
  294. value: shock
  295. - dps_val: defense
  296. value: defense
  297. - dps_val: wrong_unlock
  298. value: wrong_unlock
  299. # [Doorbell] If the local doorbell ringtone of the device supports
  300. # switching, you can use this DP to switch the local doorbell ringtone of
  301. # the door lock on the app; this DP is only enabled if the hardware of
  302. # this smart lock product supports doorbell ringtone switching and the
  303. # user is allowed to switch on the app.
  304. - id: 26
  305. type: string
  306. name: event
  307. optional: true
  308. mapping:
  309. - dps_val: ding_0
  310. value: ding_0
  311. - dps_val: ding_1
  312. value: ding_1
  313. # [Device Status] is used to display the power level in percentage. The range
  314. # is -1 to 100. When the device reports a value of -1, the power level is not
  315. # displayed. (Choose one from DP9).
  316. - entity: sensor
  317. class: battery
  318. dps:
  319. - id: 8
  320. type: integer
  321. readonly: true
  322. name: sensor
  323. unit: "%"
  324. optional: true
  325. # [Language] is used to set the playback language of the local navigation
  326. # voice of the device.
  327. # 0 = Simplified Chinese
  328. # 1 = English
  329. # 2 = Japanese
  330. # 3 = German
  331. # 4 = Spanish
  332. # 5 = Latin
  333. # 6 = French
  334. # 7 = Russian
  335. # 8 = Italian
  336. # 9 = Traditional Chinese
  337. # 10 = Korean
  338. # This dp is only enabled if the hardware of this smart lock product supports
  339. # language switching and allows users to switch on the app.
  340. - entity: select
  341. translation_key: language
  342. category: config
  343. dps:
  344. - id: 28
  345. type: string
  346. name: option
  347. optional: true
  348. mapping:
  349. - dps_val: chinese_simplified
  350. value: chinese
  351. - dps_val: english
  352. value: english
  353. # [Volume] is used to set the volume of the local navigation voice of the
  354. # device. This dp is only enabled when the hardware of this smart lock
  355. # product supports door lock volume adjustment and the user is allowed to
  356. # switch the operation on the app.
  357. - entity: select
  358. name: Volume
  359. category: config
  360. dps:
  361. - id: 31
  362. type: string
  363. name: option
  364. optional: true
  365. mapping:
  366. - dps_val: mute
  367. value: Mute
  368. - dps_val: low
  369. value: Low
  370. - dps_val: normal
  371. value: Normal
  372. - dps_val: high
  373. value: High
  374. # [Device Status] If the device has indoor anti-lock detection, it is used to
  375. # report the switch status of indoor anti-lock. Only select this dp when the
  376. # hardware of this smart lock product can detect the anti-lock status and
  377. # report the data. This dp is only used to display the anti-lock status on
  378. # the door lock home page interface, and cannot perform anti-lock setting
  379. # operations.
  380. # Commented since DP gets reported even if the device doesn't support it.
  381. # - entity: switch
  382. # name: Indoor Anti-Lock
  383. # category: config
  384. # dps:
  385. # - id: 32
  386. # type: boolean
  387. # name: switch
  388. # optional: true
  389. # [Automatic Lock] is used to set the switch of the automatic locking
  390. # function. Through this dp, you can set "Enable automatic locking" and "No
  391. # automatic locking", that is, the device will not automatically lock, and it
  392. # can also be used as a normally open mode. Only when the door lock hardware
  393. # supports this setting, enable this dp and dp36, "Automatic Lock Delay" can
  394. # be used together to achieve "Automatic Lock after Unlocking xx Seconds" to
  395. # set the waiting time for automatic locking after unlocking.
  396. - entity: switch
  397. name: Automatic Lock
  398. category: config
  399. icon: "mdi:lock-reset"
  400. dps:
  401. - id: 33
  402. type: boolean
  403. name: switch
  404. optional: true
  405. # [Automatic Lock] is used to set the delay time from unlocking the device to
  406. # automatically locking the device. The setting range is 1s to 30min.
  407. - entity: number
  408. name: Automatic Lock Delay
  409. icon: "mdi:lock-clock"
  410. category: config
  411. dps:
  412. - id: 36
  413. type: integer
  414. name: value
  415. optional: true
  416. unit: s
  417. range:
  418. min: 1
  419. max: 1800
  420. # [Device Status] If the device has door opening and closing status
  421. # detection, it is used to report the door opening and closing status. Only
  422. # enable this dp if this function is supported.
  423. # Commented since DP gets reported even if the device doesn't support it.
  424. # - entity: select
  425. # category: config
  426. # name: Door Status
  427. # dps:
  428. # - id: 40
  429. # type: string
  430. # name: option
  431. # readonly: true
  432. # optional: true
  433. # mapping:
  434. # - dps_val: unknown
  435. # value: Unknown
  436. # - dps_val: open
  437. # value: Open
  438. # - dps_val: closed
  439. # value: Closed
  440. # [Lock Operation] is used to trigger the device to perform the lock
  441. # operation, which can be used for automatic lock and manual lock operation.
  442. # To report the lock (close) record, you need to use dp=20 lock record. You
  443. # need to use 2 dp in combination to fully implement the lock operation and
  444. # lock record reporting. In addition to these two dp, you also need to use
  445. # dp47=lock status to report the lock status, so that the unlock/lock status
  446. # displayed on the app is consistent with the local hardware.
  447. - entity: lock
  448. name: Lock/Unlock
  449. icon: "mdi:door-closed-lock"
  450. category: config
  451. dps:
  452. - id: 46
  453. type: boolean
  454. name: lock
  455. optional: true
  456. # [Approach Unlock] is used to set the delay time of automatic locking in the
  457. # approach unlock scenario. If it is not enabled, the original automatic
  458. # locking delay time will be retained.
  459. # Commented since DP gets reported even if the device doesn't support it.
  460. # - entity: select
  461. # name: Approach Unlock Delay
  462. # category: config
  463. # dps:
  464. # - id: 89
  465. # type: string
  466. # name: option
  467. # optional: true
  468. # mapping:
  469. # - dps_val: inactive
  470. # value: Inactive
  471. # - dps_val: 4s
  472. # value: 4s
  473. # - dps_val: 6s
  474. # value: 6s
  475. # - dps_val: 8s
  476. # value: 8s
  477. # - dps_val: 10s
  478. # value: 10s
  479. # - dps_val: 12s
  480. # value: 12s