this post was submitted on 18 May 2025
1 points (100.0% liked)

Home Assistant

412 readers
1 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY...

founded 2 years ago
MODERATORS
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/homeassistant by /u/nutteloost on 2025-05-17 16:10:48+00:00.


Hi everyone! 

I’m happy to share Actions Card - a wrapper card that has the possibility to add a tap-action, hold action and / or double-tap action to any card you want!

Why I Created This Card

I noticed that many (custom) cards don’t support interactive actions, or I wanted to override their default behavior. For example, entity cards show the more-info dialog when tapped, but what if you want them to navigate to another view instead? My use-case was a custom camera card that did not support a tap-action, so I created my own custom card to achieve this.

Features

  • Add tap, hold, and double-tap actions to ANY card
  • Multiple action types:
    • Toggle entities
    • Navigate to other views
    • Open URLs
    • Call services
    • Show more-info dialogs
    • Open the Assist dialog
    • Fire custom DOM events
  • Optional confirmation dialogs
  • Configurable hold time
  • Can prevent / override default entity dialogs
  • Full visual editor support

Every Home Assistant action is supported!

You have a simple markdown card and you want to add an action? It's possible with this card.

You have a card and you don't like to native tap action? Wrap it in this custom card and replace the action.

You have a card which doesn't support actions? Wrap it in this card and configure an action.

There are alot of possibilities with this card.

Configuration Example

type: custom:actions-card
card:
  type: entities
  title: Lights
  entities:
    - light.living_room
    - light.kitchen
    - light.bedroom
tap_action:
  action: toggle
hold_action:
  action: more-info
  confirmation: Are you sure you want to see more info?
double_tap_action:
  action: navigate
  navigation_path: /lovelace/lights
prevent_default_dialog: true

Visual Editor

https://preview.redd.it/1uwot5ri8d1f1.png?width=2008&format=png&auto=webp&s=ba57ce2509a97c0a217d191d9f1c849b7f9eab92

Installation & More Information

For installation instructions and full documentation:

GitHub - nutteloost/actions-card: Wraps another Home Assistant card to add tap, hold, and double-tap actions 👈

I’d love to hear how you use this card in your setup and any suggestions for improvements!

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here