ble_ysgbs01_lock.yaml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. sensitive: true
  13. - id: 2
  14. type: string
  15. name: delete_unlock_method
  16. optional: true
  17. - id: 3
  18. type: string
  19. name: modify_unlock_method
  20. optional: true
  21. sensitive: true
  22. - id: 6
  23. type: string
  24. name: bluetooth_unlock
  25. optional: true
  26. - id: 12
  27. type: integer
  28. name: unlock_fingerprint
  29. optional: true
  30. persist: false
  31. - id: 13
  32. type: integer
  33. name: unlock_password
  34. optional: true
  35. persist: false
  36. - id: 14
  37. type: integer
  38. name: unlock_dynamic_pwd
  39. optional: true
  40. persist: false
  41. - id: 19
  42. type: integer
  43. name: unlock_ble
  44. optional: true
  45. persist: false
  46. - id: 47
  47. type: boolean
  48. name: lock
  49. optional: true
  50. readonly: 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. secondary_entities:
  67. - entity: sensor
  68. class: battery
  69. category: diagnostic
  70. dps:
  71. - id: 8
  72. type: integer
  73. name: sensor
  74. unit: "%"
  75. class: measurement
  76. - entity: sensor
  77. name: Alert
  78. class: enum
  79. category: diagnostic
  80. dps:
  81. - id: 21
  82. type: string
  83. name: sensor
  84. optional: true
  85. persist: false
  86. mapping:
  87. - dps_val: null
  88. value: ok
  89. - dps_val: wrong_finger
  90. value: wrong_finger
  91. - dps_val: wrong_password
  92. value: wrong_password
  93. - dps_val: low_battery
  94. value: low_battery
  95. - entity: binary_sensor
  96. class: battery
  97. category: diagnostic
  98. dps:
  99. - id: 21
  100. type: string
  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