lefant_m213_vacuum.yaml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. name: Lefant M213 vacuum
  2. primary_entity:
  3. entity: vacuum
  4. dps:
  5. - id: 1
  6. type: boolean
  7. name: power
  8. - id: 2
  9. type: boolean
  10. name: activate
  11. - id: 3
  12. type: string
  13. name: command
  14. mapping:
  15. - dps_val: standby
  16. value: standby
  17. - dps_val: smart
  18. value: smart
  19. - dps_val: chargego
  20. value: return_to_base
  21. - dps_val: random
  22. value: random
  23. - dps_val: wall_follow
  24. value: wall_follow
  25. - dps_val: spiral
  26. value: clean_spot
  27. - id: 4
  28. type: string
  29. name: direction_control
  30. optional: true
  31. mapping:
  32. - dps_val: forward
  33. value: forward
  34. - dps_val: backward
  35. value: reverse
  36. - dps_val: turn_left
  37. value: left
  38. - dps_val: turn_right
  39. value: right
  40. - dps_val: stop
  41. value: stop
  42. - id: 5
  43. type: string
  44. name: status
  45. mapping:
  46. - dps_val: "0"
  47. value: paused
  48. - dps_val: "1"
  49. value: smart
  50. - dps_val: "2"
  51. value: wall follow
  52. - dps_val: "3"
  53. value: spiral
  54. - dps_val: "4"
  55. value: returning
  56. - dps_val: "5"
  57. value: charging
  58. - dps_val: "6"
  59. value: random
  60. - dps_val: "7"
  61. value: standby
  62. - id: 13
  63. type: boolean
  64. name: locate
  65. optional: true
  66. - id: 15
  67. type: string
  68. name: clean_record
  69. optional: true
  70. - id: 18
  71. type: bitfield
  72. name: error
  73. mapping:
  74. - dps_val: 1
  75. value: edge_sweep
  76. - dps_val: 2
  77. value: middle_sweep
  78. - dps_val: 4
  79. value: left_wheel
  80. - dps_val: 8
  81. value: right_wheel
  82. - dps_val: 32
  83. value: garbage_box
  84. - dps_val: 64
  85. value: land_check
  86. - dps_val: 128
  87. value: collision
  88. - dps_val: 512
  89. value: low_battery
  90. - dps_val: 1024
  91. value: stuck
  92. - dps_val: 262144
  93. value: switched_off
  94. - id: 19
  95. type: string
  96. name: map_parameter
  97. optional: true
  98. - id: 101
  99. type: string
  100. name: fan_speed
  101. mapping:
  102. - dps_val: low
  103. value: Low
  104. - dps_val: nar
  105. value: Medium
  106. - dps_val: high
  107. value: High
  108. - id: 102
  109. type: integer
  110. optional: true
  111. name: chassis_temperature
  112. - id: 103
  113. type: integer
  114. optional: true
  115. name: heading
  116. - id: 104
  117. type: integer
  118. optional: true
  119. name: iic_error_count
  120. - id: 105
  121. type: string
  122. name: wheel_status
  123. optional: true
  124. - id: 106
  125. type: string
  126. name: dock_info
  127. optional: true
  128. - id: 107
  129. type: string
  130. name: robot_status
  131. optional: true
  132. - id: 108
  133. type: string
  134. name: robot_info
  135. optional: true
  136. secondary_entities:
  137. - entity: sensor
  138. class: battery
  139. dps:
  140. - id: 6
  141. type: integer
  142. name: sensor
  143. unit: "%"
  144. class: measurement
  145. - entity: sensor
  146. name: Clean area
  147. category: diagnostic
  148. icon: "mdi:floor-plan"
  149. dps:
  150. - id: 16
  151. type: integer
  152. name: sensor
  153. optional: true
  154. unit: m2
  155. - entity: sensor
  156. name: Clean time
  157. category: diagnostic
  158. class: duration
  159. icon: "mdi:clock-outline"
  160. dps:
  161. - id: 17
  162. type: integer
  163. name: sensor
  164. unit: min
  165. optional: true