Skip to content

Latest commit

 

History

History
238 lines (178 loc) · 6.03 KB

rand256ValetudoRe.md

File metadata and controls

238 lines (178 loc) · 6.03 KB

Valetudo RE by @rand256 over MQTT

Integration's documentation

This platform can be used to control vacuums flashed with Valetudo RE created by @rand256 connected to Home Assistant using MQTT.

To reset a value for a given consumable press and hold a matching tile.

Calibration

To retrieve calibration points from the vacuum use following config:

mqtt:
  sensor:
    - state_topic: valetudo/rockrobo/map_calibration_points
      name: rockrobo_calibration

To use retrieved calibration points in the card use following config:

calibration_source:
  entity: sensor.rockrobo_calibration

Requirements

To use this card with a Valetudo RE vacuum you have to define topic internal variable in your preset:

type: custom:xiaomi-vacuum-map-card
map_source:
  camera: camera.valetudo_re
calibration_source:
  entity: sensor.rockrobo_calibration
entity: vacuum.valetudo_re
vacuum_platform: rand256/ValetudoRE
internal_variables:
  topic: valetudo/rockrobo

Available templates

  • Room cleaning (vacuum_clean_segment)

    Uses IDs to clean specific rooms. Requires predefined_selections to be provided.

    It's possible to change action performed after cleaning (default - Base) by defining afterCleaning variable.

    Getting coordinates

    Used service: mqtt.publish

    Example configuration
    map_modes:
      - template: vacuum_clean_segment
        predefined_selections:
          - id: Bedroom
            outline: [[ 21458, 32131 ], [ 24235, 32152 ], [ 24194, 27409 ], [ 23181, 27409 ]]
            label:
              text: "Bedroom"
              x: 22932
              y: 30339
              offset_y: 35
            icon:
              name: "mdi:bed"
              x: 22932
              y: 30339
          - id: Bathroom
            outline: [[ 21478, 27237 ], [ 23048, 27250 ], [ 23061, 25655 ], [ 21478, 25680 ]]
            label:
              text: "Bathroom"
              x: 22282
              y: 26496
              offset_y: 35
            icon:
              name: "mdi:shower"
              x: 22282
              y: 26496
    Example video
    ROOM.mp4
  • Zone cleaning (vacuum_clean_zone)

    Requires Valetudo RE 0.10.8 or newer

    Uses 4 coordinates to clean rectangular zones.

    It's possible to change action performed after cleaning (default - Base) by defining afterCleaning variable.

    Used service: mqtt.publish

    Example configuration
    map_modes:
      - template: vacuum_clean_zone
    Example video
    MANUAL_RECTANGLE.mp4
  • Predefined zone cleaning (vacuum_clean_zone_predefined)

    Uses IDs to clean specific zone defined in the configuration. Requires predefined_selections to be provided.

    It's possible to change action performed after cleaning (default - Base) by defining afterCleaning variable.

    Getting coordinates

    Used service: mqtt.publish

    Example configuration
    map_modes:
      - template: vacuum_clean_zone_predefined
        predefined_selections:
          - id: Bedroom
            outline: [[ 21458, 32131 ], [ 24235, 32152 ], [ 24194, 27409 ], [ 23181, 27409 ]]
            label:
              text: "Bedroom"
              x: 22932
              y: 30339
              offset_y: 35
            icon:
              name: "mdi:bed"
              x: 22932
              y: 30339
          - id: Bathroom
            outline: [[ 21478, 27237 ], [ 23048, 27250 ], [ 23061, 25655 ], [ 21478, 25680 ]]
            label:
              text: "Bathroom"
              x: 22282
              y: 26496
              offset_y: 35
            icon:
              name: "mdi:shower"
              x: 22282
              y: 26496
    Example video
    PREDEFINED_RECTANGLE.mp4
  • Going to a specified point (vacuum_goto)

    Requires Valetudo RE 0.10.8 or newer

    Uses a pair of coordinates for vacuum to get to a user-specified point.

    Used service: xiaomi_miio.vacuum_goto

    Example configuration
    map_modes:
      - template: vacuum_goto
    Example video
    MANUAL_POINT.mp4
  • Going to a predefined point (vacuum_goto_predefined)

    Uses ID to go to a point that has been defined in the configuration. Requires predefined_selections to be provided.

    Getting coordinates

    Used service: mqtt.publish

    Example configuration
    map_modes:
      - template: vacuum_goto_predefined
        predefined_selections:
          - id: Emptying
            label:
              text: "Emptying"
              x: 28006
              y: 28036
              offset_y: 35
            icon:
              name: "mdi:broom"
              x: 28006
              y: 28036
          - id: Sofa
            label:
              text: "Sofa"
              x: 32143
              y: 26284
              offset_y: 35
            icon:
              name: "mdi:sofa"
              x: 32143
              y: 26284
    Example video
    PREDEFINED_POINT.mp4

Additional related links