Room cleaning not working Xiaomi Miija 1C / dreame_mc1808 / MIOT Integration

Hello guys, please i am coming here for a help from experienced users. I am trying to integrate ROOM / ZONE cleaning into my dashboard card.

I have following config, which works except room / zone cleaning. It shows the message “SUCCESS” but the cleaning doesn’t start.

Can you please help me how to debug this issue, due to i am a new at HA. Thanks,

type: custom:xiaomi-vacuum-map-card
map_source:
  camera: camera.xiaomi_cloud_map_extractor
calibration_source:
  camera: true
entity: vacuum.dreame_mc1808_14a2_robot_cleaner_2
vacuum_platform: default
title: brenda v2
map_locked: true
two_finger_pan: true
map_modes:
  - template: vacuum_clean_zone
  - template: vacuum_goto
  - template: vacuum_clean_segment
    max_selections: 1
    repeats_type: EXTERNAL
    max_repeats: 3
    service_call_schema:
      service: xiaomi_miot.call_action
      service_data:
        entity_id: '[[entity_id]]'
        siid: 18
        aiid: 1
        params:
          - piid: 1
            value: 19
          - piid: 21
            value: '{"selects":[[[[selection_unwrapped]],[[repeats]],3,3,1]]}'
        force_params: true
    predefined_selections:
      - id: '1'
        icon:
          name: mdi:broom
          x: 1925
          'y': 3425
        label:
          text: Detská
          x: 1925
          'y': 3425
          offset_y: 35
        outline:
          - - 650
            - 1800
          - - 3200
            - 1800
          - - 3200
            - 5050
          - - 650
            - 5050
      - id: '2'
        icon:
          name: mdi:broom
          x: 4750
          'y': 3275
        label:
          text: Spálňa
          x: 4750
          'y': 3275
          offset_y: 35
        outline:
          - - 3400
            - 250
          - - 6100
            - 250
          - - 6100
            - 6300
          - - 3400
            - 6300
      - id: '3'
        icon:
          name: mdi:broom
          x: 1925
          'y': 275
        label:
          text: Chodba
          x: 1925
          'y': 275
          offset_y: 35
        outline:
          - - 500
            - -1200
          - - 3350
            - -1200
          - - 3350
            - 1750
          - - 500
            - 1750
      - id: '4'
        icon:
          name: mdi:broom
          x: 2550
          'y': -1975
        label:
          text: Kúpeľňa
          x: 2550
          'y': -1975
          offset_y: 35
        outline:
          - - 1800
            - -2700
          - - 3300
            - -2700
          - - 3300
            - -1250
          - - 1800
            - -1250
      - id: '5'
        icon:
          name: mdi:broom
          x: -1150
          'y': 1000
        label:
          text: Obývačka
          x: -1150
          'y': 1000
          offset_y: 35
        outline:
          - - -2750
            - -2850
          - - 450
            - -2850
          - - 450
            - 4850
          - - -2750
            - 4850

same issue here. Nobody can help us ?

Is there anybody with Miija 1C to get ROOM CLAN working ?

Hey there,
First you need to have the vacuum configured using xiaomi miot. Then you have to create a script with the service xiaomi_miot.call_action and throw the data you get from miot specs. This is my script configuration (I had the 1C and now I bought the S10+… but both are working with the same script and same data). Just change the entity_id.
Now, to change the room it cleans, you have to change the number inside the value string (value: “{"selects":[[11,1,1,1,1]]}”). In my example the number 11 is the room id, the other values are there to change the fan power, mop water level and so on… You can figure wich room is wich by trial an error.
As I said, the S10+ and 1C have the same action properties. But in case you need, you can get the siid (service id), aiid (action id) and piid (property id) from this website:

alias: vacuum_clean_kitchen
sequence:
  - service: xiaomi_miot.call_action
    data:
      entity_id: vacuum.dreame_r2211o_4ee6_robot_cleaner
      siid: 4
      aiid: 1
      params:
        - piid: 1
          value: 18
        - piid: 10
          value: "{\"selects\":[[11,1,1,1,1]]}"
      force_params: true
mode: single
icon: mdi:robot-vacuum