custom-components / grocy

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

Accumulate subproduct amounts #230

Closed blue-hound closed 2 years ago

blue-hound commented 2 years ago

I want to display the amount of stock available of a parent product and all of its children. Maybe this could be a separate attribute or it could be added to the 'available_amount' attribute when disallow own stock is checked along with accumulate child stock for low stock in the parent product.

I was going to create a sensor that added them all up, but I can't see a relationship between parent and child presented in the available sensors.

marcelvriend commented 2 years ago

Waits for upstream PR https://github.com/SebRut/pygrocy/pull/246.