ble_ysgbs01_lock.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. name: Door lock
  2. products:
  3. - id: isk2p555
  4. manufacturer: YSG
  5. model: BS01
  6. entities:
  7. - entity: lock
  8. dps:
  9. - id: 1
  10. type: string
  11. name: create_unlock_method
  12. optional: true
  13. sensitive: true
  14. - id: 2
  15. type: string
  16. name: delete_unlock_method
  17. optional: true
  18. - id: 3
  19. type: string
  20. name: modify_unlock_method
  21. optional: true
  22. sensitive: true
  23. - id: 6
  24. type: string
  25. name: bluetooth_unlock
  26. optional: true
  27. - id: 12
  28. type: integer
  29. name: unlock_fingerprint
  30. optional: true
  31. persist: false
  32. - id: 13
  33. type: integer
  34. name: unlock_password
  35. optional: true
  36. persist: false
  37. - id: 14
  38. type: integer
  39. name: unlock_dynamic_pwd
  40. optional: true
  41. persist: false
  42. - id: 19
  43. type: integer
  44. name: unlock_ble
  45. optional: true
  46. persist: false
  47. - id: 47
  48. type: boolean
  49. name: lock_state
  50. optional: true
  51. - id: 55
  52. type: integer
  53. name: unlock_temp_pwd
  54. optional: true
  55. persist: false
  56. - id: 62
  57. type: integer
  58. name: unlock_app
  59. optional: true
  60. persist: false
  61. - id: 63
  62. type: integer
  63. name: unlock_voice
  64. optional: true
  65. persist: false
  66. - entity: sensor
  67. class: battery
  68. category: diagnostic
  69. dps:
  70. - id: 8
  71. type: integer
  72. name: sensor
  73. unit: "%"
  74. class: measurement
  75. - entity: sensor
  76. name: Alert
  77. class: enum
  78. category: diagnostic
  79. dps:
  80. - id: 21
  81. type: string
  82. name: sensor
  83. optional: true
  84. persist: false
  85. mapping:
  86. - dps_val: null
  87. value: ok
  88. - dps_val: wrong_finger
  89. value: wrong_finger
  90. - dps_val: wrong_password
  91. value: wrong_password
  92. - dps_val: low_battery
  93. value: low_battery
  94. - entity: binary_sensor
  95. class: battery
  96. category: diagnostic
  97. dps:
  98. - id: 21
  99. type: string
  100. optional: true
  101. name: sensor
  102. mapping:
  103. - dps_val: low_battery
  104. value: true
  105. - value: false
  106. - entity: select
  107. translation_key: language
  108. category: config
  109. dps:
  110. - id: 28
  111. type: string
  112. name: option
  113. mapping:
  114. - dps_val: chinese_simplified
  115. value: chinese
  116. - dps_val: english
  117. value: english
  118. - entity: number
  119. name: Beep volume
  120. category: config
  121. icon: "mdi:volume-high"
  122. dps:
  123. - id: 31
  124. type: string
  125. name: value
  126. unit: "%"
  127. range:
  128. min: 0
  129. max: 100
  130. mapping:
  131. - dps_val: mute
  132. step: 33
  133. value: 0
  134. - dps_val: low
  135. step: 33
  136. value: 33
  137. - dps_val: normal
  138. step: 33
  139. value: 66
  140. - dps_val: high
  141. step: 33
  142. value: 100