Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vacuum map card not working as a conditional card #495

Closed
3 tasks done
asetGem opened this issue Nov 5, 2022 · 1 comment
Closed
3 tasks done

Vacuum map card not working as a conditional card #495

asetGem opened this issue Nov 5, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@asetGem
Copy link

asetGem commented Nov 5, 2022

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

When I create a standalone vacuum map card, everything works perfectly.
Now, I wanted to show this card only when I hit a button. So I put this same card inside a conditional card.
The card shows up and is hidden as expected when I hit the corresponding button. However, even if it shows up, it does not control the vacuum anymore.
I checked on the interface, and I can see that on the standalone card, when I select something, it appears in the "selection" field. With the card inside a conditional, the "selection" field remains empty whatever I select (in any mode, room, zone...). So I guess it is sending to my vacuum to clean...nothing and that is why it is not working.

Here is the card "alone":
vacuum-working-room
vacuum-working

And here is the same card (exactly same code) but inside a conditional:

vacuum-conditonal-room
vacuum-conditonal-zone

What version of a card has described problem?

v2.1.2

What was the last working version card?

No response

What vacuum model do you have problems with?

dreame_d9

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

https://github.com/al-one/hass-xiaomi-miot

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

chrome/firefox/android app

What version of Home Assistant do you use?

2022.11.1

What type of installation are you running?

Home Assistant Supervised

Card's configuration

type: conditional
conditions:
  - entity: input_boolean.map_mode_enabled
    state: 'on'
card:
  type: custom:xiaomi-vacuum-map-card
  icons: []
  tiles: []
  preset_name: Plan de l'appart
  map_source:
        camera: camera.vacuum
  calibration_source:
        camera: true
  entity: vacuum.dreame
  vacuum_platform: default
  map_modes:
    - template: vacuum_clean_segment
      name: Nettoyer une piece
      service_call_schema:
        [...]
      predefined_selections:
         [...]
    - template: vacuum_clean_zone
      name: Nettoyer une zone
      service_call_schema:
          [...]
    - template: vacuum_goto_predefined
      predefined_selections:
         [...]
  map_locked: false
  two_finger_pan: true


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

_No response_

### Additional information

_No response_
@asetGem asetGem added the bug Something isn't working label Nov 5, 2022
@PiotrMachowski PiotrMachowski mentioned this issue May 31, 2023
@PiotrMachowski
Copy link
Owner

Done in v2.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants