lefant_m213_vacuum.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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: 6
  63. name: battery
  64. type: integer
  65. readonly: true
  66. - id: 13
  67. type: boolean
  68. name: locate
  69. optional: true
  70. - id: 15
  71. type: string
  72. name: clean_record
  73. readonly: true
  74. optional: true
  75. - id: 18
  76. type: bitfield
  77. name: error
  78. mapping:
  79. - dps_val: 1
  80. value: edge_sweep
  81. - dps_val: 2
  82. value: middle_sweep
  83. - dps_val: 4
  84. value: left_wheel
  85. - dps_val: 8
  86. value: right_wheel
  87. - dps_val: 16
  88. value: garbage_box
  89. - dps_val: 32
  90. value: land_check
  91. - dps_val: 64
  92. value: collision
  93. - dps_val: 512
  94. value: low_battery
  95. - dps_val: 1024
  96. value: stuck
  97. - dps_val: 262144
  98. value: switched_off
  99. - id: 19
  100. type: string
  101. name: map_parameter
  102. optional: true
  103. - id: 101
  104. type: string
  105. name: fan_speed
  106. mapping:
  107. - dps_val: low
  108. value: Low
  109. - dps_val: nar
  110. value: Medium
  111. - dps_val: high
  112. value: High
  113. - id: 102
  114. type: integer
  115. name: chassis_temperature
  116. - id: 103
  117. type: integer
  118. name: heading
  119. - id: 104
  120. type: integer
  121. name: iic_error_count
  122. - id: 105
  123. type: string
  124. name: wheel_status
  125. optional: true
  126. - id: 106
  127. type: string
  128. name: dock_info
  129. optional: true
  130. - id: 107
  131. type: string
  132. name: robot_status
  133. optional: true
  134. - id: 108
  135. type: string
  136. name: robot_info
  137. optional: true
  138. secondary_entities:
  139. - entity: sensor
  140. name: Clean area
  141. category: diagnostic
  142. icon: "mdi:floor-plan"
  143. dps:
  144. - id: 16
  145. type: integer
  146. name: sensor
  147. unit: m2
  148. - entity: sensor
  149. name: Clean time
  150. category: diagnostic
  151. class: duration
  152. icon: "mdi:clock-outline"
  153. dps:
  154. - id: 17
  155. type: integer
  156. name: sensor
  157. unit: min