lefant_n3_vacuum.yaml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. name: Robot vacuum
  2. products:
  3. - id: yn442adgwn5ffqmz
  4. name: Lefant N3
  5. - id: jtna6ihybmr0mxg8
  6. name: Lefant N3
  7. primary_entity:
  8. entity: vacuum
  9. dps:
  10. - id: 1
  11. name: power
  12. type: boolean
  13. - id: 2
  14. name: activate
  15. type: boolean
  16. mapping:
  17. - dps_val: true
  18. value: false
  19. - dps_val: false
  20. value: true
  21. - id: 3
  22. name: switch_charge
  23. type: boolean
  24. optional: true
  25. hidden: true
  26. - id: 4
  27. name: work_mode
  28. type: string
  29. optional: true
  30. mapping:
  31. - dps_val: smart
  32. conditions: power
  33. constraint:
  34. - dps_val: true
  35. value: smart
  36. - dps_val: chargego
  37. constraint: switch_charge
  38. conditions:
  39. - dps_val: true
  40. value: return_to_base
  41. - dps_val: zone
  42. constraint: power
  43. conditions:
  44. - dps_val: true
  45. value: clean_zone
  46. - dps_val: pose
  47. constraint: power
  48. conditions:
  49. - dps_val: true
  50. value: clean_spot
  51. - dps_val: part
  52. constraint: power
  53. conditions:
  54. - dps_val: true
  55. value: clean_partial
  56. - dps_val: fastmapping
  57. value: map
  58. - dps_val: CleanModeSectorbased
  59. value: clean_sector
  60. - id: 5
  61. name: status
  62. type: string
  63. mapping:
  64. - dps_val: standby
  65. value: standby
  66. - dps_val: smart
  67. value: cleaning
  68. - dps_val: zone_clean
  69. value: cleaning
  70. - dps_val: part_clean
  71. value: cleaning
  72. - dps_val: cleaning
  73. value: cleaning
  74. - dps_val: paused
  75. value: paused
  76. - dps_val: goto_pos
  77. value: positioning
  78. - dps_val: pos_arrived
  79. value: at_position
  80. - dps_val: pos_unarrive
  81. value: cannot_find_position
  82. - dps_val: goto_charge
  83. value: returning
  84. - dps_val: charging
  85. value: charging
  86. - dps_val: charge_done
  87. value: charged
  88. - dps_val: sleep
  89. value: sleep
  90. - dps_val: relocating
  91. value: positioning
  92. - dps_val: relocating_recharge
  93. value: returning
  94. - dps_val: recharing_paused
  95. value: paused
  96. - dps_val: fastmaping
  97. value: mapping
  98. - dps_val: fastmaping_paused
  99. value: paused
  100. - id: 9
  101. name: fan_speed
  102. type: string
  103. mapping:
  104. - dps_val: closed
  105. value: "off"
  106. - dps_val: gentle
  107. value: low
  108. - dps_val: normal
  109. value: medium
  110. - dps_val: strong
  111. value: high
  112. - dps_val: superstrong
  113. value: turbo
  114. - id: 11
  115. type: boolean
  116. name: locate
  117. optional: true
  118. - id: 12
  119. type: string
  120. name: direction_control
  121. optional: true
  122. mapping:
  123. - dps_val: forward
  124. value: forward
  125. - dps_val: backward
  126. value: reverse
  127. - dps_val: turn_left
  128. value: left
  129. - dps_val: turn_right
  130. value: right
  131. - dps_val: stop
  132. value: stop
  133. - id: 14
  134. name: path_data
  135. type: string
  136. optional: true
  137. - id: 15
  138. name: command_trans
  139. type: string
  140. optional: true
  141. - id: 16
  142. name: request
  143. type: string
  144. optional: true
  145. - id: 28
  146. type: bitfield
  147. name: error
  148. - id: 32
  149. type: string
  150. optional: true
  151. name: schedule
  152. - id: 33
  153. type: string
  154. optional: true
  155. name: do_not_disturb_schedule
  156. - id: 101
  157. type: string
  158. optional: true
  159. name: forbidden_zone
  160. - id: 102
  161. type: string
  162. optional: true
  163. name: clean_zone
  164. - id: 103
  165. type: string
  166. optional: true
  167. name: pos_clean
  168. - id: 104
  169. type: string
  170. optional: true
  171. name: all_zone
  172. - id: 105
  173. type: string
  174. optional: true
  175. name: map_zoom_android
  176. - id: 106
  177. type: string
  178. optional: true
  179. name: map_zoom_ios
  180. - id: 107
  181. type: string
  182. optional: true
  183. name: dev_log_show
  184. - id: 108
  185. type: boolean
  186. optional: true
  187. name: returning_from_zone
  188. - id: 109
  189. type: boolean
  190. optional: true
  191. name: returning_from_spot
  192. - id: 110
  193. type: string
  194. optional: true
  195. name: device_info
  196. - id: 111
  197. type: string
  198. optional: true
  199. name: robot_log
  200. - id: 112
  201. type: string
  202. optional: true
  203. name: map_save
  204. - id: 120
  205. type: string
  206. optional: true
  207. name: voice_check
  208. - id: 121
  209. type: string
  210. optional: true
  211. name: robot_reboot
  212. - id: 123
  213. type: string
  214. optional: true
  215. name: do_not_disturb_settings
  216. - id: 124
  217. type: boolean
  218. optional: true
  219. name: scheduled_clean
  220. - id: 126
  221. type: boolean
  222. optional: true
  223. name: map_saved
  224. secondary_entities:
  225. - entity: button
  226. name: Start
  227. icon: "mdi:play"
  228. category: config
  229. dps:
  230. - id: 1
  231. type: boolean
  232. name: button
  233. - entity: button
  234. name: Pause
  235. icon: "mdi:pause"
  236. category: config
  237. dps:
  238. - id: 2
  239. type: boolean
  240. optional: true
  241. name: button
  242. - entity: button
  243. name: Dock
  244. category: config
  245. dps:
  246. - id: 3
  247. type: boolean
  248. optional: true
  249. name: button
  250. - entity: sensor
  251. name: Clean time
  252. class: duration
  253. category: diagnostic
  254. dps:
  255. - id: 6
  256. type: integer
  257. optional: true
  258. name: sensor
  259. unit: min
  260. class: measurement
  261. - entity: sensor
  262. name: Cleaned area
  263. category: diagnostic
  264. icon: "mdi:floor-plan"
  265. dps:
  266. - id: 7
  267. type: integer
  268. optional: true
  269. name: sensor
  270. unit: m2
  271. class: measurement
  272. - entity: sensor
  273. class: battery
  274. category: diagnostic
  275. dps:
  276. - id: 8
  277. type: integer
  278. name: sensor
  279. unit: "%"
  280. class: measurement
  281. - entity: select
  282. name: Mopping
  283. icon: "mdi:cup-water"
  284. category: config
  285. dps:
  286. - id: 10
  287. type: string
  288. name: option
  289. mapping:
  290. - dps_val: closed
  291. value: "off"
  292. - dps_val: low
  293. value: low
  294. - dps_val: middle
  295. value: medium
  296. - dps_val: high
  297. value: high
  298. - entity: button
  299. name: Map reset
  300. class: restart
  301. category: config
  302. dps:
  303. - id: 13
  304. type: boolean
  305. name: button
  306. optional: true
  307. - entity: switch
  308. name: Intermittent cleaning
  309. icon: "mdi:clock-outline"
  310. category: config
  311. dps:
  312. - id: 27
  313. type: boolean
  314. name: switch
  315. - entity: switch
  316. name: Carpet booster
  317. icon: "mdi:rug"
  318. category: config
  319. dps:
  320. - id: 45
  321. type: boolean
  322. name: switch
  323. - entity: switch
  324. name: Save maps
  325. category: config
  326. dps:
  327. - id: 122
  328. type: boolean
  329. name: switch
  330. - entity: binary_sensor
  331. class: battery_charging
  332. category: diagnostic
  333. dps:
  334. - id: 125
  335. type: boolean
  336. name: sensor