#Mealie
1 messages · Page 1 of 1 (latest)
@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
Integration name Mealie Link to integration documentation on our website https://www.home-assistant.io/integrations/mealie/ Describe the enhancement Currently, when you add item from HA to Mealie, ...
An open project is fine with me, keeps all discussion in one place.
The two banana problem, possible with some string comparison as both note and food item style shopping list items have a quantity we could increment.
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
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.
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
Very interesting, maybe I’m old school and want the full recipe on a screen, but I know a lot like to be guided. Pausing between steps will be the key.
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.
https://github.com/mealie-recipes/mealie/releases/tag/3.1.0 ok now I understand why they removed isFood
Just glad we got that fix into 2025.8, they didn't have it in nightly that long.
Classifying washing detergent as food is weird and I'm sure I'm not the only one who uses the shopping list for more than just recipe ingredients 😕
Oh so wait this means that Mealie is now also linking shopping list items to a food?
Yes, I have still to test more but I think it’s doing some matching as well, so adding one via ha todo becomes a proper labelled food item if it exists.
If everything is a food now is so great
Why isnt there an everything is a food now v2
I found that a bit strange, for a quick fix point release I'd include the major announcement again, I'm sure very few people read older release notes.
Oh fair point
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.
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
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.
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.
I think we can do that yes
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 🙂
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.
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 .
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
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.
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.
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
Just fixed the lib, I'll merge/release that myself then do the core depenency PR
I'll look at that one in the car
Just a heads up I had to make a small code change to statically add calendars rather than all of them, PR explains why and I'll later do a PR with some version checking.
Okok
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.
I didn't catch up on the latest changes yet but I did see that screenshot
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.