UI-Lovelace-Minimalist / UI

UI-Lovelace-Minimalist is a "theme" for HomeAssistant
https://ui-lovelace-minimalist.github.io/UI/
Other
1.63k stars 430 forks source link

(Bug Or Missing Feature) Cover card popup not working on tap #1471

Open raresdragan opened 7 months ago

raresdragan commented 7 months ago

Describe the bug

First of all, I love this project. Kudos!

I'm trying without success to make the cover card open a popup (on tap) instead of closing / opening the cover.

Not 100% sure this is a bug.. if it's not supported, it would be a great feature.

Covers unlike other devices are a sensitive device to operate... I'd prefer not to tap by mistake while using my dashboard, it happened for a cover to get stuck and break while accidentally actioning it via a tap. So I want to disable the tap actions to close/open and instead display just the pop-up.

I tried to enable the popup without success: First as suggested in the wiki:

                # Bedroom Cover / Shutter
                - type: "custom:button-card"
                  template: card_cover
                  entity: cover.studio_door_cover
                  name: Studio Door
                  variables:
                    ulm_card_cover_enable_controls: false
                    ulm_card_cover_enable_slider: false
                    ulm_card_cover_enable_popup: true

I only managed to see the more-info modal on long tap. So I had to do a hack .. my current solution is the following.. (this disables accidental taps and opens the more-info modal instead of calling the close/open cover actions)

                # Bedroom Cover / Shutter
                - type: "custom:button-card"
                  template: card_cover
                  entity: cover.studio_door_cover
                  name: Studio Door Cover
                  variables:
                    ulm_card_cover_enable_controls: true
                    ulm_card_cover_enable_slider: false
                    ulm_card_cover_enable_popup: true

                    ulm_card_tap_haptic: "success"
                    ulm_card_hold_haptic: "success"
                    ulm_card_double_tap_haptic: "none"
                    ulm_card_double_tap_action: "none"
                    ulm_name_tap_haptic: "success"
                    ulm_name_tap_action: "more-info"
                    ulm_name_hold_haptic: "success"
                    ulm_name_double_tap_haptic: "none"
                    ulm_name_double_tap_action: "none"
                    ulm_icon_tap_haptic: "success"
                    ulm_icon_tap_action: "more-info"
                    ulm_icon_hold_haptic: "success"
                    ulm_icon_hold_action: "more-info"
                    ulm_icon_double_tap_haptic: "none"
                    ulm_icon_double_tap_action: "none"
                  tap_action:
                    haptic: "success"
                    action: "more-info"

Is there any way to get this behaviour via variables?

Thank you!

Using:

Home Assistant Core 2024.2.3 Frontend 20240207.1

Screenshot 2024-03-02 at 17 43 12

Thank you.