Skip to content

Mealie fields as shown in the UI do not work in the integration #130558

Closed
@alexbarcelo

Description

@alexbarcelo

The problem

There are certain inconsistencies on the mealie integration (either that or I am looking at the wrong documentation).

First of all, the fields note_text and note_title are mentioned in the documentation and available in the UI, but trying to call set_mealplan with them populated result in an error.

The UI also says "ID or slug" when specifying the recipe_id field, but the validation clearly tries to check it against a UUID and fails if a slug is used instead.

What version of Home Assistant Core has the issue?

core-2024.11.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

mealie

Link to integration documentation on our website

https://www.home-assistant.io/integrations/mealie

Diagnostics information

No response

Example YAML snippet

action: mealie.set_mealplan
data:
  note_text: some notes
  note_title: some title
  recipe_id: 58451f87-bb28-40d5-b260-e43cf40d6958
  entry_type: lunch
  date: "2024-11-15"
  config_entry_id: 01J3G1V9RNGB2R15XJV5TSTNJ1

Anything in the logs that might be useful for us?

aiomealie.exceptions.MealieValidationError: ('Mealie validation error', {'response': '{"detail":[{"type":"uuid_parsing","loc":["body","recipeId"],"msg":"Input should be a valid UUID, invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-fA-F-], found `x` at 1","input":"xikkkkkchili","ctx":{"error":"invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-fA-F-], found `x` at 1"}}]}'})

Failed to perform the action mealie.set_mealplan. extra keys not allowed @ data['note_text']. Got None extra keys not allowed @ data['note_title']. Got None

Additional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions