airrobo_p20_vacuum.yaml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. name: Robot vacuum
  2. # products:
  3. # - id: UNKNOWN
  4. # manufacturer: Airrobo
  5. # model: P20
  6. entities:
  7. - entity: vacuum
  8. dps:
  9. - id: 2
  10. type: boolean
  11. name: activate
  12. optional: true
  13. - id: 3
  14. type: string
  15. name: command
  16. mapping:
  17. - dps_val: standby
  18. value: standby
  19. - dps_val: smart
  20. value: smart
  21. - dps_val: wall_follow
  22. value: wall_follow
  23. - dps_val: spiral
  24. value: clean_spot
  25. - dps_val: partial_bow
  26. value: partial_bow
  27. - dps_val: chargego
  28. value: return_to_base
  29. - id: 4
  30. type: string
  31. name: direction_control
  32. mapping:
  33. - dps_val: forward
  34. value: forward
  35. - dps_val: turn_left
  36. value: left
  37. - dps_val: turn_right
  38. value: right
  39. - dps_val: stop
  40. value: stop
  41. - id: 5
  42. type: string
  43. name: status
  44. mapping:
  45. - dps_val: standby
  46. value: idle
  47. - dps_val: smart_clean
  48. value: cleaning
  49. - dps_val: wall_clean
  50. value: cleaning
  51. - dps_val: spot_clean
  52. value: cleaning
  53. - dps_val: mop_clean
  54. value: cleaning
  55. - dps_val: goto_charge
  56. value: returning
  57. - dps_val: charging
  58. value: charging
  59. - dps_val: charge_done
  60. value: docked
  61. - dps_val: paused
  62. value: paused
  63. - dps_val: cleaning
  64. value: cleaning
  65. - dps_val: sleep
  66. value: idle
  67. - id: 13
  68. type: boolean
  69. name: locate
  70. optional: true
  71. - id: 14
  72. type: string
  73. name: fan_speed
  74. mapping:
  75. - dps_val: gentle
  76. value: Silent
  77. - dps_val: normal
  78. value: Normal
  79. - dps_val: strong
  80. value: Strong
  81. - id: 18
  82. type: bitfield
  83. name: error
  84. optional: true
  85. - id: 104
  86. type: string
  87. name: serial_number
  88. - entity: sensor
  89. class: battery
  90. dps:
  91. - id: 6
  92. type: integer
  93. name: sensor
  94. unit: "%"
  95. class: measurement
  96. - entity: sensor
  97. name: Edge brush life
  98. category: diagnostic
  99. icon: "mdi:arrow-expand-all"
  100. dps:
  101. - id: 7
  102. type: integer
  103. name: sensor
  104. unit: "%"
  105. - entity: sensor
  106. name: Roll brush life
  107. category: diagnostic
  108. icon: "mdi:tire"
  109. dps:
  110. - id: 8
  111. type: integer
  112. name: sensor
  113. unit: "%"
  114. class: measurement
  115. - entity: sensor
  116. name: Filter life
  117. category: diagnostic
  118. icon: "mdi:air-filter"
  119. dps:
  120. - id: 9
  121. type: integer
  122. name: sensor
  123. unit: "%"
  124. class: measurement
  125. - entity: button
  126. name: Reset edge brush
  127. class: restart
  128. category: config
  129. dps:
  130. - id: 10
  131. type: boolean
  132. name: button
  133. optional: true
  134. - entity: button
  135. name: Reset roll brush
  136. class: restart
  137. category: config
  138. dps:
  139. - id: 11
  140. name: button
  141. type: boolean
  142. optional: true
  143. - entity: button
  144. name: Reset filter
  145. class: restart
  146. category: config
  147. dps:
  148. - id: 12
  149. name: button
  150. type: boolean
  151. optional: true
  152. - entity: sensor
  153. name: Clean area
  154. class: area
  155. category: diagnostic
  156. dps:
  157. - id: 16
  158. type: integer
  159. name: sensor
  160. unit: m2
  161. class: measurement
  162. - entity: sensor
  163. name: Clean time
  164. class: duration
  165. category: diagnostic
  166. dps:
  167. - id: 17
  168. type: integer
  169. name: sensor
  170. unit: min
  171. class: measurement
  172. - entity: number
  173. name: Volume
  174. category: config
  175. icon: "mdi:volume-high"
  176. dps:
  177. - id: 28
  178. type: integer
  179. name: value
  180. unit: "%"
  181. range:
  182. min: 0
  183. max: 100
  184. - entity: binary_sensor
  185. class: problem
  186. category: diagnostic
  187. dps:
  188. - id: 18
  189. type: bitfield
  190. name: sensor
  191. optional: true
  192. mapping:
  193. - dps_val: 0
  194. value: false
  195. - value: true
  196. - id: 18
  197. type: bitfield
  198. name: error
  199. optional: true
  200. - id: 18
  201. type: bitfield
  202. name: description
  203. optional: true
  204. mapping:
  205. - dps_val: 0
  206. value: OK
  207. - dps_val: 1
  208. value: Edge sweep
  209. - dps_val: 2
  210. value: Middle sweep
  211. - dps_val: 4
  212. value: Left wheel
  213. - dps_val: 8
  214. value: Right wheel
  215. - dps_val: 16
  216. value: Garage box
  217. - dps_val: 32
  218. value: Land check
  219. - dps_val: 64
  220. value: Collision
  221. - dps_val: 128
  222. value: Power low
  223. - dps_val: 256
  224. value: Raise up
  225. - dps_val: 512
  226. value: Safe place
  227. - dps_val: 1024
  228. value: Empty place
  229. - dps_val: 2048
  230. value: Fan error
  231. - dps_val: 4096
  232. value: Power lowsp
  233. - dps_val: 8192
  234. value: Middle sweep stop
  235. - dps_val: 16384
  236. value: Charging error
  237. - dps_val: 32768
  238. value: Charging no contact
  239. - entity: select
  240. translation_key: language
  241. category: config
  242. dps:
  243. - id: 29
  244. type: string
  245. name: option
  246. mapping:
  247. - dps_val: english
  248. value: english
  249. - dps_val: german
  250. value: german
  251. - dps_val: french
  252. value: french
  253. - dps_val: russian
  254. value: russian
  255. - dps_val: spanish
  256. value: spanish
  257. - dps_val: italian
  258. value: italian
  259. - entity: switch
  260. name: Quick clean
  261. category: config
  262. dps:
  263. - id: 101
  264. type: string
  265. name: switch
  266. mapping:
  267. - dps_val: careful_clean
  268. value: false
  269. - dps_val: speed_clean
  270. value: true