Skip to content

Custom Button with Tap/Dual Action Support #68

@sekonicpr

Description

@sekonicpr

### Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

I want to enhance navigation and interactivity from the Spotify Plus Card in my Home Assistant dashboard. Right now, there's no way to add a custom button within the card that lets me perform actions like navigating to my media center dashboard or triggering scripts. I end up having to place separate buttons outside the card, which breaks the visual flow and takes up extra space.

Describe the solution you'd like

I’d like the ability to define a custom button or icon inside the Spotify Plus Card with support for:

  • tap_action
  • double_tap_action
  • (optionally) hold_action
    This button would be user-configurable with an icon (e.g., mdi:television) and allow actions like navigating to another Lovelace dashboard or calling a script or service.
custom_button:
  icon: mdi:television
  tap_action:
    action: navigate
    navigation_path: /lovelace/media
  double_tap_action:
    action: call-service
    service: script.open_media_popup

Describe alternatives you've considered

Using a separate button-card next to the Spotify Plus Card, but this breaks layout consistency and requires extra positioning logic.
Wrapping the card in a config-template-card to trigger navigation, but this is limited and affects the entire card, not a specific button.

Additional context

This feature would enhance the Spotify Plus Card’s flexibility and bring it in line with other Lovelace cards that support actions, such as button-card or picture-elements. It would be especially helpful for wall dashboards or tablets where quick access to media navigation is essential.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions