lovelace-grocy-chores-card
lovelace-grocy-chores-card copied to clipboard
Add ability to show userfields
I added a userfield for "Chore Points" to my chores. This way, we can track the weight of each chore since some are far more involved than others. This would be nice to see on the chore card as well. Maybe pass an array of userfield id's and each one shows in their own row?
I wanted to tackle this one, but unfortunately, wasn't able to get the data. I added a "Priority" user field in the Grocy add-in (tried selecting entity "chores" as well as "userfields"), but when I use the debugger to inspect the data on load, the entities[0].attributes.chores[i].userfields param is always null. @isabellaalstrom (or any of the contributors), do you know what I might need to do to get this to show up properly?
I'd love to add support for custom fields, and maybe even setting one that indicates "priority" for sorting and filtering.
If it is not showing in home assistant at all, we need to figure out if it needs to be added in grocypy or if it's sent from there already, in the integration.
Thanks, I'm still a complete newbie at the internal Home Assistant components code, but if I'm feeling adventurous, I might see what I can figure out. Otherwise, I'll put this on the back burner until someone else gets to it ¯_(ツ)_/¯
See https://github.com/custom-components/grocy/issues/217.