firstof9 / lovelace-grocy-meal-plan-card

Meal Plan Card for Home Assistant Grocy integration
MIT License
15 stars 6 forks source link

lovelace-grocy-meal-plan-card

Meal Plan Card for Home Assistant Grocy integration

Style barrowed from Upcoming Media Card

Grocy Meal Plan Card

Card Config

This goes under cards: in your lovelace:

  - type: custom:grocy-meal-plan-card
    entity: sensor.grocy_meal_plan

Options

Name Type Default Description
entity string Required entity id of meal sensor: ie: sensor.grocy_meal_plan
count integer 5 Amount of meals to display at once
daily boolean false Show the current day's plan(s)
section string none Filter plans by Grocy section
custom_translation string-list Optional List of translations of string values used in the card (see below).
hideRecipe boolean false Hides recipe description from card
recipeLength integer 300 Limits the length of the recipes. 0 is unlimited lenght.
imgWidth string none Adjust width of image using CSS/HTML sizes.

Advanced options

It is possible to translate the following English strings in the card to whatever you like.

custom_translation:
  No meal plans found: "Keine Speisepläne gefunden"

Smaller image size example:

imgWidth: 7em;