Hi everyone, I need a material management sheet. example, I have 10 pens I use one with a button I remove it from the inventory. or I take 2 pens and with a button I add it to the inventory. then I would like to create statistics like “this winter you used 3 pens”
Maybe the Grocy addon can do what you require?
maybe it’s too much, I would like to make it less complex for just 1 object
Oh right. Sorry, I thought you were just using pens as an example of many things you wanted to track.
You could use an input_number to track the total. However it would only have a 10 day history (by default). So you need to feed this input_number to utility meters with reset cycles of the period you want to track (monthly/yearly/etc…). It needs to be set to “net consumption” so the total can go up and down.
You can change the number with scripts assigned to buttons on your dashboard. e.g. create scripts for -1 and +1 and assign them to buttons.
Put the utility meters in your dashboard as well and you can see the running totals for the periods you track.
i create this counter
pellet_stock:
name: Pellet stock
icon: mdi:bag-personal
initial: 76
step: 1
now implementing script +1 / -1
but i don’t know use utility meter on this.
i need create pellet_stock_days on utility meter?