okp_k2_vacuum.yaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. name: Robot vacuum
  2. products:
  3. - id: 6k8pca2ywenbry2l
  4. name: OKP K2
  5. primary_entity:
  6. entity: vacuum
  7. dps:
  8. - id: 1
  9. type: boolean
  10. name: power
  11. - id: 2
  12. type: boolean
  13. name: activate
  14. - id: 3
  15. type: string
  16. name: command
  17. mapping:
  18. - dps_val: standby
  19. value: standby
  20. - dps_val: smart
  21. value: smart
  22. - dps_val: random
  23. value: random
  24. - dps_val: chargego
  25. value: return_to_base
  26. - dps_val: right_bow
  27. value: right_bow
  28. - dps_val: wall_follow
  29. value: wall_follow
  30. - dps_val: spiral
  31. value: spiral
  32. - id: 4
  33. type: string
  34. optional: true
  35. name: direction_control
  36. mapping:
  37. - dps_val: forward
  38. value: forward
  39. - dps_val: backward
  40. value: reverse
  41. - dps_val: turn_left
  42. value: left
  43. - dps_val: turn_right
  44. value: right
  45. - dps_val: stop
  46. value: stop
  47. - id: 5
  48. type: string
  49. name: status
  50. mapping:
  51. - dps_val: standby
  52. value: standby
  53. - dps_val: smart_clean
  54. value: smart_clean
  55. - dps_val: wall_clean
  56. value: wall_clean
  57. - dps_val: cleaning
  58. value: cleaning
  59. - dps_val: paused
  60. value: pause
  61. - dps_val: spot_clean
  62. value: spot_clean
  63. - dps_val: goto_charge
  64. value: returning
  65. - dps_val: charging
  66. value: charging
  67. - dps_val: charge_done
  68. value: charged
  69. - id: 13
  70. type: boolean
  71. name: locate
  72. optional: true
  73. - id: 15
  74. type: string
  75. optional: true
  76. name: clean_record
  77. - id: 18
  78. type: bitfield
  79. name: error
  80. - id: 19
  81. type: string
  82. optional: true
  83. name: map_config
  84. - id: 101
  85. type: string
  86. name: fan_speed
  87. mapping:
  88. - dps_val: low
  89. value: Low
  90. - dps_val: nar
  91. value: Medium
  92. - dps_val: high
  93. value: High
  94. - id: 103
  95. type: integer
  96. name: heading
  97. optional: true
  98. - id: 105
  99. type: string
  100. name: wheel_status
  101. optional: true
  102. - id: 106
  103. type: string
  104. name: charging_status
  105. optional: true
  106. - id: 107
  107. type: string
  108. name: robot_status
  109. optional: true
  110. - id: 108
  111. type: string
  112. name: log
  113. optional: true
  114. secondary_entities:
  115. - entity: sensor
  116. name: Clean area
  117. category: diagnostic
  118. dps:
  119. - id: 16
  120. type: integer
  121. name: sensor
  122. unit: m2
  123. - entity: sensor
  124. name: Clean time
  125. class: duration
  126. category: diagnostic
  127. dps:
  128. - id: 17
  129. type: integer
  130. name: sensor
  131. unit: min
  132. - entity: sensor
  133. class: battery
  134. dps:
  135. - id: 6
  136. type: integer
  137. name: sensor
  138. unit: "%"
  139. class: measurement
  140. - entity: sensor
  141. name: Motor temperature
  142. class: temperature
  143. category: diagnostic
  144. dps:
  145. - id: 102
  146. type: integer
  147. name: sensor
  148. unit: C
  149. class: measurement