lefant_n3_vacuum.yaml 7.1 KB

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