Advertisement
314ma

Untitled

Nov 17th, 2021
1,066
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.85 KB | None | 0 0
  1. type: custom:xiaomi-vacuum-map-card
  2. entity: vacuum.roborock_s5_max
  3. map_source:
  4.   camera: camera.roborock_s5_max
  5.   crop:
  6.     bottom: 20
  7.     top: 100
  8.     left: 20
  9.     right: 80
  10. calibration_source:
  11.   camera: true
  12. map_modes:
  13. - template: vacuum_clean_zone
  14. - template: vacuum_goto
  15. - template: vacuum_follow_path
  16. - template: vacuum_clean_zone_predefined
  17.   predefined_selections:
  18.   - zones:
  19.    - - 24341
  20.       - 24380
  21.       - 27310
  22.       - 28178
  23.   - zones:
  24.    - - 20157
  25.       - 24492
  26.       - 21514
  27.       - 26893
  28.     - - 16659
  29.       - 23500
  30.       - 20209
  31.       - 24648
  32.     - - 21775
  33.       - 23448
  34.       - 25220
  35.       - 24231
  36.     - - 20157
  37.       - 23448
  38.       - 22036
  39.       - 24492
  40.   - zones:
  41.    - - 18747
  42.       - 20368
  43.       - 21723
  44.       - 23552
  45.     - - 19376
  46.       - 19718
  47.       - 21679
  48.       - 20386
  49.   - zones:
  50.    - - 21723
  51.       - 19689
  52.       - 24751
  53.       - 23239
  54.   - zones:
  55.    - - 17889
  56.       - 14864
  57.       - 22974
  58.       - 19710
  59.   - zones:
  60.    - - 23070
  61.       - 15056
  62.       - 26525
  63.       - 17983
  64. map_locked: true
  65. two_finger_pan: false
  66. icons:
  67. - icon: mdi:play
  68.   conditions:
  69.   - entity: vacuum.roborock_s5_max
  70.     value_not: cleaning
  71.   - entity: vacuum.roborock_s5_max
  72.     value_not: error
  73.   - entity: vacuum.roborock_s5_max
  74.     value_not: returning
  75.   tooltip: Start
  76.   tap_action:
  77.     action: call-service
  78.     service: vacuum.start
  79.     service_data:
  80.       entity_id: vacuum.roborock_s5_max
  81. - icon: mdi:pause
  82.   conditions:
  83.   - entity: vacuum.roborock_s5_max
  84.     value_not: docked
  85.   - entity: vacuum.roborock_s5_max
  86.     value_not: idle
  87.   - entity: vacuum.roborock_s5_max
  88.     value_not: error
  89.   - entity: vacuum.roborock_s5_max
  90.     value_not: paused
  91.   tooltip: Pause
  92.   tap_action:
  93.     action: call-service
  94.     service: vacuum.pause
  95.     service_data:
  96.       entity_id: vacuum.roborock_s5_max
  97. - icon: mdi:stop
  98.   conditions:
  99.   - entity: vacuum.roborock_s5_max
  100.     value_not: docked
  101.   - entity: vacuum.roborock_s5_max
  102.     value_not: idle
  103.   - entity: vacuum.roborock_s5_max
  104.     value_not: error
  105.   - entity: vacuum.roborock_s5_max
  106.     value_not: paused
  107.   tooltip: Stop
  108.   tap_action:
  109.     action: call-service
  110.     service: vacuum.stop
  111.     service_data:
  112.       entity_id: vacuum.roborock_s5_max
  113. - icon: mdi:home-map-marker
  114.   conditions:
  115.   - entity: vacuum.roborock_s5_max
  116.     value_not: docked
  117.   tooltip: Return to base
  118.   tap_action:
  119.     action: call-service
  120.     service: vacuum.return_to_base
  121.     service_data:
  122.       entity_id: vacuum.roborock_s5_max
  123. - icon: mdi:target-variant
  124.   conditions:
  125.   - entity: vacuum.roborock_s5_max
  126.     value_not: docked
  127.   - entity: vacuum.roborock_s5_max
  128.     value_not: error
  129.   - entity: vacuum.roborock_s5_max
  130.     value_not: cleaning
  131.   tooltip: Clean spot
  132.   tap_action:
  133.     action: call-service
  134.     service: vacuum.clean_spot
  135.     service_data:
  136.       entity_id: vacuum.roborock_s5_max
  137. - icon: mdi:map-marker
  138.   tooltip: Locate
  139.   tap_action:
  140.     action: call-service
  141.     service: vacuum.locate
  142.     service_data:
  143.       entity_id: vacuum.roborock_s5_max
  144. - icon: mdi:fan-remove
  145.   conditions:
  146.   - entity: vacuum.roborock_s5_max
  147.     attribute: fan_speed
  148.     value: Silent
  149.   tooltip: Change fan speed
  150.   tap_action:
  151.     action: call-service
  152.     service: vacuum.set_fan_speed
  153.     service_data:
  154.       entity_id: vacuum.roborock_s5_max
  155.       fan_speed: Standard
  156. - icon: mdi:fan-speed-1
  157.   conditions:
  158.   - entity: vacuum.roborock_s5_max
  159.     attribute: fan_speed
  160.     value: Standard
  161.   tooltip: Change fan speed
  162.   tap_action:
  163.     action: call-service
  164.     service: vacuum.set_fan_speed
  165.     service_data:
  166.       entity_id: vacuum.roborock_s5_max
  167.       fan_speed: Medium
  168. - icon: mdi:fan-speed-2
  169.   conditions:
  170.   - entity: vacuum.roborock_s5_max
  171.     attribute: fan_speed
  172.     value: Medium
  173.   tooltip: Change fan speed
  174.   tap_action:
  175.     action: call-service
  176.     service: vacuum.set_fan_speed
  177.     service_data:
  178.       entity_id: vacuum.roborock_s5_max
  179.       fan_speed: Turbo
  180. - icon: mdi:fan-speed-3
  181.   conditions:
  182.   - entity: vacuum.roborock_s5_max
  183.     attribute: fan_speed
  184.     value: Turbo
  185.   tooltip: Change fan speed
  186.   tap_action:
  187.     action: call-service
  188.     service: vacuum.set_fan_speed
  189.     service_data:
  190.       entity_id: vacuum.roborock_s5_max
  191.       fan_speed: Gentle
  192. - icon: mdi:waves
  193.   conditions:
  194.   - entity: vacuum.roborock_s5_max
  195.     attribute: fan_speed
  196.     value: Gentle
  197.   tooltip: Change fan speed
  198.   tap_action:
  199.     action: call-service
  200.     service: vacuum.set_fan_speed
  201.     service_data:
  202.       entity_id: vacuum.roborock_s5_max
  203.       fan_speed: Auto
  204. - icon: mdi:fan-auto
  205.   conditions:
  206.   - entity: vacuum.roborock_s5_max
  207.     attribute: fan_speed
  208.     value: Auto
  209.   tooltip: Change fan speed
  210.   tap_action:
  211.     action: call-service
  212.     service: vacuum.set_fan_speed
  213.     service_data:
  214.       entity_id: vacuum.roborock_s5_max
  215.       fan_speed: Silent
  216.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement