ποΈ 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.comTIP
π‘ HACS installation is recommended to keep components up to date.
π οΈ Configuration β
| Name | Type | Description | Default | Required |
|---|---|---|---|---|
type | string | custom:material-menu-card | Required | β Yes |
name | string | The name/title to display on the card. π | β Yes | |
label | string | The subtitle to display below the name. π | β Yes | |
icon | string | A custom icon to display on the card. β¨ | β Yes | |
tap_action | object | Action to perform on tap. π See Actions for more information. | none | β Yes |
hold_action | object | Action to perform on hold. HOLD See Actions for more information. | none | β No |
double_tap_action | object | Action 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).dataortarget: 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.
