lovelace-grocy-chores-card
lovelace-grocy-chores-card copied to clipboard
A workaround to be able to filter the chores on a per-room level
It ain't beautiful (my workaround that is) but it works so ... thought I'd share.
I created a dashboard like this with tabs (views) for every room. Looks fine on mobile:
I set up a userfield in Grocy for the room level (and I second the request to integrate that as a feature).
The workaround I came up with was this.
Add the (room) after the task name in Grocy so that the filter can work with it:
Then with the cards we can use the (room) syntax to filter and also hide it so that it doesn't look ugly.
Do:
filter: (bedroom)
remove_filter: true
Full card snippet:
title: Bedroom Chores
type: custom:grocy-chores-card
entity:
- sensor.grocy_chores
filter: (bedroom)
show_quantity: 15
show_assigned: true
show_overflow: true
show_chores_without_due: true
show_tasks_without_due: true
use_icons: true
use_long_date: true
due_in_days_threshold: 7
use_24_hours: true
hide_text_with_no_data: true
remove_filter: true
Hope that helps someone!