Skip to content

πŸ—ƒοΈ Material Menu Card ​

🌟 Overview ​

The material-menu-card allows you to create fully customizable menu items with actions such as navigation, URL opening, call-service, and more.

πŸ”§ Requirements ​

To use this card, the following custom components are required:

πŸ“Œ Card Mod ​

πŸ”— Card Mod
GitHubgithub.com

πŸ“Œ Button Card ​

πŸ”— Button Card
GitHubgithub.com

TIP

πŸ’‘ HACS installation is recommended to keep components up to date.

πŸ› οΈ Configuration ​

NameTypeDescriptionDefaultRequired
typestringcustom:material-menu-cardRequiredβœ… Yes
namestringThe name/title to display on the card. πŸ“›βœ… Yes
labelstringThe subtitle to display below the name. πŸ“βœ… Yes
iconstringA custom icon to display on the card. βœ¨βœ… Yes
tap_actionobjectAction to perform on tap. πŸ‘‡ See Actions for more information.noneβœ… Yes
hold_actionobjectAction to perform on hold. HOLD See Actions for more information.none❌ No
double_tap_actionobjectAction to perform on double tap. ✌️ See Actions for more information.none❌ No

πŸš€ Actions ​

The card supports the standard Home Assistant actions for tap_action, hold_action, and double_tap_action. Here are the most common ones:

  • navigate πŸ—ΊοΈ: Navigates to a specific path in Home Assistant.
    • navigation_path: The path to navigate to (e.g., /lovelace/lights).
  • url 🌐: Opens a URL.
    • url_path: The URL to open.
  • toggle πŸ”„: Toggles the state of an entity (e.g., a switch or a light).
  • call-service πŸ“ž: Calls a Home Assistant service.
    • service: The service to call (e.g., light.turn_on).
    • data or target: The data or target for the service.
  • more-info ℹ️: Shows the more-info dialog for an entity.
  • none 🚫: No action.

πŸ“œ Example ​

yaml
type: custom:material-menu-card
name: Activity
icon: mdi:history
label: Info on the latest actions performed
tap_action:
  action: navigate
  navigation_path: activity
hold_action:
  action: call-service
  service: light.toggle
  target:
    entity_id: light.living_room
double_tap_action:
  action: url
  url_path: https://www.google.com

🎨 Extended Customization ​

⚠️ LICENSE

Only for PRO and ULTIMATE users, get your licence now πŸš€.

This card have a own version of Card-Mod. You can inject custom CSS to override any style or create unique animations.

πŸ’‘ ADVANCED STYLING

πŸ‘‰ Check out the Styling Guide.