PiotrMachowski / lovelace-xiaomi-vacuum-map-card

This card provides a user-friendly way to fully control map-based vacuums in Home Assistant. Supported brands include Xiaomi (Roborock/Viomi/Dreame/Roidmi/Valetudo/Valetudo RE), Neato, Wyze, Roomba, Ecovacs (and probably more).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot expand menu to pick rooms mode - Home Assistant app

znanywawa opened this issue · comments

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

At newest Home Assistant Supervised and Home Assistant Android App (beta-9972-8b32f9bf-full) You cannot expand menu to pick rooms, only creation of ZONES is allowed. Issue is applicable to Mobile App as well as web browser (tested at Android Chrome web browser) while using mobile version of instance, but when I switch Android Chrome app to Desktop mode - it works with no issues through web browser.

What version of a card has described problem?

v2.2.0-beta.1

What was the last working version card?

No response

What vacuum model do you have problems with?

roborock.vacuum.a15

Which integration do you use to control your vacuum (link)?

https://github.com/humbertogontijo/homeassistant-roborock

What browser (browsers/apps) does have this problem?

Android HA App, Android Chrome (in mobile mode)

What version of Home Assistant do you use?

2023.5.2

What type of installation are you running?

Home Assistant Supervised

Card's configuration

type: vertical-stack
cards:
  - type: custom:xiaomi-vacuum-map-card
    entity: vacuum.roborock_s7
    map_source:
      camera: camera.roborock_s7_map
    calibration_source:
      camera: true
    map_modes:
      - template: vacuum_clean_zone
      - template: vacuum_goto
      - template: vacuum_clean_segment
        predefined_selections:
          - icon:
              name: mdi:television
              x: 27400
              'y': 26350
            id: 17
          - icon:
              name: mdi:human-child
              x: 30600
              'y': 25975
            id: 18
          - icon:
              name: mdi:shower-head
              x: 25125
              'y': 30300
            id: 19
          - icon:
              name: mdi:bed
              x: 26100
              'y': 34500
            id: 20
          - icon:
              name: mdi:broom
              x: 27400
              'y': 31175
            id: 16
          - icon:
              name: mdi:bathtub
              x: 25475
              'y': 32325
            id: 21
    vacuum_platform: humbertogontijo/homeassistant-roborock

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

No response

Additional information

No response

Duplicate of #481

You can install the latest beta version to fix this issue

@PiotrMachowski I dont see any newer beta version via HACS than v.2.2.0-beta.1
image

Oh, I have missed that you already have it installed

Which Android version does your device have?

No problem, it may happen :)

Its: Samsung Galaxy S20 FE 5G
Android 13.0
One UI version: 5.1

The issue came after HA recent updates (to 2023.05.x), previously it was working fine with this beta version of card.

Can you try to check if it works in incognito mode?

Nope, it dont work even in incognito mode while page is loaded in "mobile mode". When I will switch it to "desktop mode" it works properly.

It works perfectly fine on my phone, maybe it depends on the size of viewport, can you check your values?

https://whatismyviewport.com/

Values from my Chrome on Android (mobile mode):
412px x 825px
DPR: 2.63
Screen size: 412px x 915px

Values from my Chrome on Android (desktop mode):
980px x 1961px
DPR: 2.63
Scren size: 412px x 915px

Can you check if the same problem exists if the card is not enclosed in vertical stack?

I have tested, and seems that if card isnt in vertical stack - works correctly. But previously, it was working even when in vertical stack.

Any ideas how to fix that?
To be honest, I'd rather not changing current cards configuration and converting vertical stack current configuration.