lovelace-grocy-chores-card icon indicating copy to clipboard operation
lovelace-grocy-chores-card copied to clipboard

Add ability to show userfields

Open scrambled2k3 opened this issue 2 years ago • 4 comments

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?

scrambled2k3 avatar Jul 08 '22 16:07 scrambled2k3

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.

clarinetJWD avatar Aug 29 '22 14:08 clarinetJWD

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.

isabellaalstrom avatar Aug 30 '22 14:08 isabellaalstrom

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 ¯_(ツ)_/¯

clarinetJWD avatar Aug 30 '22 16:08 clarinetJWD

See https://github.com/custom-components/grocy/issues/217.

marcelvriend avatar Sep 10 '22 10:09 marcelvriend