ble_ysgbs01_lock.yaml 2.9 KB

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