lenovo_e1_vacuum.yaml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. name: Lenovo E1 vacuum
  2. products:
  3. - id: lec6zthbnidtvk2g
  4. name: Lenovo E1
  5. primary_entity:
  6. entity: vacuum
  7. dps:
  8. - id: 1
  9. type: boolean
  10. name: power
  11. - id: 17
  12. type: bitfield
  13. name: error
  14. mapping:
  15. - dps_val: 1
  16. value: cliff
  17. - dps_val: 2
  18. value: impact
  19. - dps_val: 4
  20. value: wheel
  21. - dps_val: 8
  22. value: brush
  23. - dps_val: 16
  24. value: fan
  25. - dps_val: 32
  26. value: roller_brush
  27. - dps_val: 64
  28. value: low_power
  29. - dps_val: 128
  30. value: give_up
  31. - dps_val: 256
  32. value: no_dust
  33. - dps_val: 512
  34. value: none
  35. - id: 101
  36. type: string
  37. name: status
  38. mapping:
  39. - dps_val: SLEEP
  40. value: standby
  41. - dps_val: HALTING
  42. value: halting
  43. - dps_val: CLEANING
  44. value: cleaning
  45. - dps_val: CLEAN_COMP
  46. value: cleaning_complete
  47. - dps_val: FIND_STA
  48. value: returning
  49. - dps_val: CHARGING_STA
  50. value: charging
  51. - dps_val: CHARGING_DC
  52. value: charging
  53. - dps_val: CHARG_COMP
  54. value: standby
  55. - id: 102
  56. type: string
  57. name: command
  58. mapping:
  59. - dps_val: clean_auto
  60. value: auto
  61. - dps_val: clean_random
  62. value: random
  63. - dps_val: clean_wall
  64. value: wall_follow
  65. - dps_val: clean_spot
  66. value: clean_spot
  67. - dps_val: clean_sroom
  68. value: clean_room
  69. - dps_val: find_sta
  70. value: return_to_base
  71. - dps_val: "null"
  72. value: unknown
  73. - id: 104
  74. type: string
  75. name: fan
  76. mapping:
  77. - dps_val: FANHALTING
  78. value: low
  79. - dps_val: FANNORAM
  80. value: mid
  81. - dps_val: FANMAX
  82. value: high
  83. - id: 105
  84. type: string
  85. name: direction_control
  86. mapping:
  87. - dps_val: MoveForward
  88. value: forward
  89. - dps_val: MoveBackward
  90. value: backward
  91. - dps_val: MoveLeft
  92. value: left
  93. - dps_val: MoveRight
  94. value: right
  95. - dps_val: stop
  96. value: stop
  97. - id: 112
  98. type: string
  99. name: activate
  100. mapping:
  101. - dps_val: "0"
  102. value: false
  103. - dps_val: "1"
  104. value: true
  105. - id: 116
  106. type: boolean
  107. name: locate
  108. optional: true
  109. - id: 118
  110. type: integer
  111. name: model
  112. - id: 119
  113. type: integer
  114. name: data_sample
  115. secondary_entities:
  116. - entity: sensor
  117. name: Clean area
  118. category: diagnostic
  119. dps:
  120. - id: 14
  121. type: integer
  122. name: sensor
  123. unit: m2
  124. class: measurement
  125. - entity: sensor
  126. name: Clean time
  127. class: duration
  128. category: diagnostic
  129. dps:
  130. - id: 107
  131. type: integer
  132. name: sensor
  133. unit: min
  134. - entity: sensor
  135. class: battery
  136. dps:
  137. - id: 108
  138. type: integer
  139. name: sensor
  140. unit: "%"
  141. class: measurement
  142. - entity: sensor
  143. name: Brush life
  144. icon: "mdi:pinwheel"
  145. category: diagnostic
  146. dps:
  147. - id: 109
  148. type: integer
  149. name: sensor
  150. unit: "%"
  151. - entity: sensor
  152. name: Roller brush life
  153. icon: "mdi:tire"
  154. category: diagnostic
  155. dps:
  156. - id: 110
  157. type: integer
  158. name: sensor
  159. unit: "%"
  160. - entity: sensor
  161. name: HEPA filter life
  162. category: diagnostic
  163. icon: "mdi:air-filter"
  164. dps:
  165. - id: 111
  166. type: integer
  167. name: sensor
  168. unit: "%"
  169. - entity: button
  170. name: Reset brush
  171. icon: "mdi:pinwheel"
  172. category: config
  173. dps:
  174. - id: 113
  175. type: boolean
  176. name: button
  177. optional: true
  178. - entity: button
  179. name: Reset roller brush
  180. icon: "mdi:tire"
  181. category: config
  182. dps:
  183. - id: 114
  184. type: boolean
  185. name: button
  186. optional: true
  187. - entity: button
  188. name: Reset HEPA filter
  189. icon: "mdi:air-filter"
  190. category: config
  191. dps:
  192. - id: 115
  193. type: boolean
  194. name: button
  195. optional: trus
  196. - entity: select
  197. name: Scheduled clean
  198. icon: "mdi:robot-vacuum"
  199. category: config
  200. dps:
  201. - id: 117
  202. type: string
  203. name: option
  204. mapping:
  205. - dps_val: clean_auto
  206. value: auto
  207. - dps_val: clean_random
  208. value: random
  209. - dps_val: clean_wall
  210. value: wall
  211. - dps_val: clean_spot
  212. value: spot
  213. - dps_val: find_sta
  214. value: dock
  215. - entity: select
  216. name: Mopping
  217. icon: "mdi:format-color-fill"
  218. category: config
  219. dps:
  220. - id: 120
  221. type: string
  222. name: option
  223. mapping:
  224. - dps_val: water_small
  225. value: Low
  226. - dps_val: water_big
  227. value: High
  228. - dps_val: water_auto
  229. value: Auto