name: Robot vacuum
products:
  - id: wexaeucvbdawkkpo
    manufacturer: KaBuM! Smart
    model: "500"
entities:
  - entity: vacuum
    dps:
      - id: 1
        type: boolean
        name: power
      - id: 11
        type: bitfield
        name: error
        hidden: true
      - id: 25
        type: boolean
        name: activate
      - id: 26
        type: string
        name: direction_control
        optional: true
        mapping:
          - dps_val: forward
            value: forward
          - dps_val: backward
            value: reverse
          - dps_val: turn_left
            value: left
          - dps_val: turn_right
            value: right
          - dps_val: stop
            value: stop
      - id: 27
        type: string
        name: command
        mapping:
          - dps_val: standby
            value: stop
          - dps_val: smart
            value: smart
          - dps_val: spiral
            value: clean_spot
          - dps_val: single
            value: single_room
          - dps_val: wall_follow
            value: wall_follow
          - dps_val: chargego
            value: return_to_base
      - id: 28
        type: string
        name: status
        mapping:
          - dps_val: cleanning
            value: cleaning
          - dps_val: returning
            value: returning
          - dps_val: charging
            value: charging
          - dps_val: standby
            value: standby
          - dps_val: chargecompleted
            value: charged
      - id: 29
        type: boolean
        name: locate
        optional: true
      - id: 30
        type: string
        name: fan_speed
        mapping:
          - dps_val: low
            value: Low
          - dps_val: normal
            value: Medium
          - dps_val: high
            value: High
  - entity: binary_sensor
    class: problem
    category: diagnostic
    dps:
      - id: 11
        type: bitfield
        name: sensor
        mapping:
          - dps_val: 0
            value: false
          - value: true
      - id: 11
        type: bitfield
        name: fault_code
      - id: 11
        type: bitfield
        name: description
        mapping:
          - dps_val: 0
            value: OK
          - dps_val: 1
            value: edge_sweep
          - dps_val: 2
            value: middle_sweep
          - dps_val: 4
            value: left_wheel
          - dps_val: 8
            value: right_wheel
          - dps_val: 16
            value: garbage_box
          - dps_val: 32
            value: land_check
          - dps_val: 64
            value: collision
  - entity: sensor
    class: battery
    dps:
      - id: 14
        type: integer
        name: sensor
        unit: "%"
        class: measurement
  - entity: switch
    name: Mute voice
    icon: "mdi:account-voice"
    dps:
      - id: 31
        type: boolean
        name: switch
  - entity: sensor
    name: Clean area
    class: area
    category: diagnostic
    dps:
      - id: 32
        type: integer
        name: sensor
        optional: true
        unit: m2
  - entity: sensor
    name: Clean time
    category: diagnostic
    class: duration
    icon: "mdi:clock-outline"
    dps:
      - id: 33
        type: integer
        name: sensor
        optional: true
        unit: min
