#Mealie

1 messages · Page 1 of 1 (latest)

ember comet
#

mealie A chat to talk about the development of the Mealie integration

#

@lusty ferry @wicked reef

#

I now have a habit of creating a project chat instead of a group DM to work more in the open

lusty ferry
ember comet
#

oh lol, I only read the title as I was on mobile and I thought it was about adding a food item via a service

#

but this is more like a bug ish

lusty ferry
#

It’s an ish, mealie v3 UI discards duplicates without increasing the quantity which seems worse. I’ll have to look at nightly as seems they are doing work in this area.

#

Also the second request of adding it as a food item if it exists could be done by loading the foods and comparing and adding via ID if it exactly matches.

wicked reef
#

Hey! Nice to hae this open chat indeed! Let me have al ook at that issue!

#

Yeah mapping quantities will be an interesting challenge:O

#

Would we be able to use their LLM parsing for this?

#

I mean it sounds like prety much the same challenge as the recipe to category mapping

#

Oh btw, i created some scripts and now my assist understands the recipes too:

Now looking into turning it into a blueprint, and making it actively ask me if i want to set timers when it guides me through the cooking steps

lusty ferry
#

For quantities on duplicates it’s straight forward, if exact match then increment rather than add, watching out for null/0 quantities.
If you are editing an existing item you could see the quantity in the mealie data, look for changes in the first word, if still pure numeric update the quantity, if not 0 the quantity and add as a note as existing.

#

For looking up and adding food items we’d need to bring the food items in so a change to the lib and coordinator. Then on add we could search the food items held in the coordinator and add via id rather than note if we have an exact match, we can also look at the plural and aliases if present.
This one is more work in multiple places but no string mangling so easier in that respect.

ember comet
lusty ferry
ember comet
#

Oh so wait this means that Mealie is now also linking shopping list items to a food?

lusty ferry
ember comet
#

If everything is a food now is so great

#

Why isnt there an everything is a food now v2

lusty ferry
ember comet
#

Oh fair point

lusty ferry
#

Just testing HA todo to Mealie Shopping lists. If I add Ground Turmeric it knows there's a food item with a label of Spices and adds the label, but it does not make it a proper food, still a Null food id but with the text as a note.. seems their matching is partially there at the moment. If they don't get it to be a true food item on match this is something we could do within the todo by loading the food items regularly and looking them up to find the id.

ember comet
#

We might want to make sure we don't put the full HTML in the error

#

I had my HA prod pointed to their demo env

#

and they revoke tokens every so often

#

and now my logs are 204 MB

lusty ferry
# ember comet and now my logs are 204 MB

Get log files explicitly added to the new disk metrics and you'll see it earlier 🙂
Full HTML in the error is horrible, I'll wait for some errors and see what we could parse that would be useful.

lusty ferry
#

Mealie v2 was released in Oct 2024 so coming up to one year anniversary and we now have v3 already. v1 did not have household support and we have some horrible code in the library and integration to cater for it. Do we drop v1 support, fail to load if v1 with an error, and tidy up all the horrible code?
I'm not testing against v1 or v2 these days.

ember comet
#

I think we can do that yes

lusty ferry
#

Whilst doing that I'll also write the supported devices section of the docs, one of the bits missing from quality scale, getting us closer to platinum 🙂

lusty ferry
#

Mealie v3.5.0 out today doesn't seem to break the integration. It does introduce recipes as ingredients within other recipes though which we might want to add to the recipe actions responses at some point though.

ember comet
#

I saw that fly by

#

Cool move

lusty ferry
#

I’ve had to put in a few structured sets of ingredients to keep up with testing but I’ve got 100s of recipes that are just freeform .

ember comet
#

The only thing I'd imagine that sucks now is that these probably are your default recipes

#

as in

#

If you want to try a new tzatziki recipe you'd need to update the recipe itself or update the one using it

lusty ferry
#

You can do a mix of structured and free form so you can tack on other recipes without having to rework the whole recipe. I’ve done some like that where I have a really unusual ingredient I don’t use for anything else but the common ones are foods.

ember comet
#

oh interesting

#

I genuinely can't wait when I can use Mealie again

lusty ferry
#

Mealie 3.7.0 introduced snack, drink, and dessert mealplan types. If you add an item to one of these new types the integration errors out, as long as you don't use the new mealplan types it still works without error.
Will have to handle that and create new calendars.

ember comet
#

I saw that yesterday

#

Nice

#

It would be nice to have its own PR for the dependency bump that fixes it

#

So we could pick it for patch

lusty ferry
#

Just fixed the lib, I'll merge/release that myself then do the core depenency PR

ember comet
#

I'll look at that one in the car

lusty ferry
ember comet
#

Okok

lusty ferry
#

The shopping list presents a bit of a dilemma. Currently we display the list in the order presented by Mealie's raw response and allow sorting within the todo list.
Mealie has introduced labels and a food items, labels causes sorting issues in that if an item is a food it appears in its labelled section within Mealie, whilst we do not present it sorted like that.
We could sort by label/food name but allowing list reorder will give unpredictable experience as Mealie will order it within the label, which we don't present (dragging an item to the top of the the list within HA will only make it top of the labelled section within Mealie and causes it to jump when a coordinator refresh happens).
Looking for ideas but I'm wondering if we should remove re-ordering from within the integration.

ember comet
#

I didn't catch up on the latest changes yet but I did see that screenshot

lusty ferry
#

It's especially problematic for the physical food shop where you want all your items grouped so you're not walking back on yourself and Mealie is really pushing food categories now. I do online shopping so not a problem 🙂
Would be a breaking change to remove the re-ordering but reckon we'll get more people asking for it.