custom-components / grocy

Custom Grocy integration for Home Assistant
Apache License 2.0
156 stars 47 forks source link

[Feature Request] Match users in chore track #255

Open HydrelioxGitHub opened 1 year ago

HydrelioxGitHub commented 1 year ago

Hello and firstly thank for your great work on this component.

Would it be possible to match user connected user in HA with the user that complete a chore. I was thinking about a configuration file where you put the user id of Grocy of each user in HA.

So when you call the service grocy.complete_task the right user in mentionned in Grocy history.

My knowledge about that is very tiny so maybe it's not possible....

HydrelioxGitHub commented 8 months ago

You can do it with a workaround. Create to cards and filter only for one user and the other for another. Then you can use this feature https://www.home-assistant.io/blog/2023/11/01/release-202311/#new-conditions-for-the-conditional-card to show only the card that match the actual user.

Hope it helps !