A custom card for Home Assistant that allows you to display recipes from a YAML file. You can select a recipe from different categories, view its ingredients and instructions, and customize the card's appearance with ease.
- Recipe Selection: Display recipes grouped by category in a dropdown.
- Dynamic Recipe Rendering: Displays ingredients and cooking instructions of the selected recipe.
- Random Recipe Display: Shows a random recipe on initial load.
- Customizable: Modify the appearance and functionality by editing the code.
To use this custom card, you need to install it via HACS (Home Assistant Community Store).
- Go to HACS in your Home Assistant instance.
- Click on the "Frontend" tab in the HACS section.
- Click the three dots in the upper right and select "Custom Repositories".
- Add the GitHub repository URL (e.g.,
https://github.com/your-github-username/recipe-card). - Select "Frontend" as the category, then click "Add".
- Find the
recipe-cardin the available custom cards list and click "Install".
After installing the card via HACS, add it to your Home Assistant dashboard by editing the ui-lovelace.yaml or using the UI configuration.
type: 'custom:recipe-card'
url: '/local/recipe.yaml' # URL to your YAML file containing the recipes