Is there a way that I can filter this list to display for only 1 product and its amount into a lovelace card? The perfect way would be creating a sensor for each product so that I can easily use it for automations, but im not too familar with templating that complicated stuff.
Thanks for pointing me in the right direction for the template sensor, this works, the way i want it. Now i have alot work to do, implementing a template sensor for every item in stock i want to use for automations or such.
But now, i want to add a card to lovelace with the sensor, displaying the amount of the items remaining in stock, and when i tap it, it should tell grocy to consume that item.
When i add a button card for it with the code:
Expected a value of type `{entity,name,icon} | entity-id` for `entities.0.tap_action` but received `{"action":"call_service","service":"grocy.consume_product","service_data":null,"product_id":3,"amount":3,"transaction_type":"CONSUME"}`
Although in the docs it says the cards support tap_action.