Add action to set mealplan (#33908)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Joost Lekkerkerker 2024-07-22 15:34:18 +02:00 committed by GitHub
parent bb8c9bd731
commit ace8deffde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,6 +63,8 @@ The Mealie integration has the following actions:
- `mealie.get_mealplan`
- `mealie.get_recipe`
- `mealie.import_recipe`
- `mealie.set_mealplan`
- `mealie.set_random_mealplan`
### Action `mealie.get_mealplan`
@ -93,6 +95,19 @@ Import the recipe into Mealie from a URL.
| `url` | No | The URL of the recipe. |
| `include_tags` | Yes | Include tags from the website to the recipe. (false by default) |
### Action `mealie.set_mealplan`
Set a mealplan on a specific date.
| Data attribute | Optional | Description |
|-------------------|----------|-----------------------------------------------------|
| `config_entry_id` | No | The ID of the Mealie config entry to get data from. |
| `date` | No | The date that should be filled. |
| `entry_type` | No | One of "breakfast", "lunch", "dinner", or "side". |
| `recipe_id` | Yes | The recipe to plan. |
| `note_title` | Yes | The title of the meal note. |
| `note_text` | Yes | The description of the meal note. |
### Action `mealie.set_random_mealplan`
Set a random mealplan on a specific date.