lovelace-xiaomi-vacuum-map-card: "Internal" repeats type doesn't work

Checklist

  • I have updated the card to the latest version available
  • I have cleared the cache of my browser
  • I have checked if the problem is already reported

The problem

“Internal” repeats type doesn’t work image

What version of a card has described problem?

2.0.1

What was the last working version card?

No response

What vacuum model do you have problems with?

roborock.vacuum.s5

What version of Home Assistant do you use?

core-2021.11.4

What type of installation are you running?

Home Assistant Supervised

Card’s configuration

- name: Rooms
  icon: mdi:floor-plan
  selection_type: ROOM
  max_selections: 8
  repeats_type: INTERNAL
  max_repeats: 3
  service_call_schema:
    service: script.vacuum_follow_path #create notification for debug
    service_data:
      path: "[[selection]]"
      entity_id: "[[entity_id]]"

Javascript errors shown in the browser’s console (if applicable)

No response

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Actually it works, just not with selection_type: ROOM. I thought it will be useless, so I have skipped it. Anyway, I will add it in the next version 👍

@Mr-Groch the issue was not about this situation. Rooms need special treatment to work with this card, this issue was about unifying current approach:

repeats_type: INTERNAL should append repeats to [[selection]], e.g. with selected rooms 10 and 15 + 2 repeats it now looks like this: [10, 15, 2]

to make make it work by default it should be like this: [10, 10, 15, 15]. I will add it as well, but this will require a new value for repeats_type