Comments (6)
Hello!
Could you provide an example in Grocy on your custom field? And you'd like that field to be able in card configuration to specify sort, correct?
Thanks
from shopping-list-with-grocy.
In Grocy -> Manage master data -> Userfields I have added a userfield with Entity: products, Name: customsort, Caption: Custom sort, Type: Number(decimal) and Show as column in tables: checked
After that I have a new field in the edit product dialog in which I enter some integer depending on how frequently I use this product
Yes I would like that field to be able to be specified as a sort in card configuration so I can have my most frequently used products on top.
The name of the field is of course not important and if you want to standardize a name and map only that name in the sensor (to avoid performance problems with many products and many custom fields) that would also work.
Thank you
from shopping-list-with-grocy.
Got it, thanks, I'll work on that :)
from shopping-list-with-grocy.
I created version 0.10.0 to integrate that, let me know if it works as intended on your side :)
https://github.com/Anrolosia/Shopping-List-with-Grocy#custom-products-userfields
from shopping-list-with-grocy.
It's working great :)
Thank you
You might want to change the example to
sort:
method: attribute
attribute: userfields:customsort
numeric: true
to make sure the field is treated as a number and sorted correctly - in the example the field in Grocy is type Number(decimal) so for consistency the sort field should be treated as a number too.
from shopping-list-with-grocy.
You're definitely right! I updated the documentaton.
Happy to know it's working, I will close the ticket :) Happy grocery!
from shopping-list-with-grocy.
Related Issues (20)
- Separate different grocy shopping lists? HOT 11
- Config entry 'ShoppingListWithGrocy' for shopping_list_with_grocy integration not ready yet: can only concatenate str (not "int") to str; HOT 7
- Feature Request: location as device option HOT 3
- Default quantity unit purchase HOT 6
- UI HOT 6
- Attempt to decode JSON with unexpected mimetype: text/plain HOT 6
- MQTT Port not available HOT 2
- Problems with component configuration HOT 5
- Quantity missing as attribute HOT 9
- Integration with Home Assistant To-Do? HOT 4
- Qty Aggregated as attribute for parent product sensor HOT 1
- binary_sensor.updating_shopping_list_with_grocy is not created HOT 9
- show Quantity Unit in Product sensor as string. HOT 1
- Can't track amount open in product sensor HOT 2
- Feature Request: Consume Location as attribute HOT 1
- Feature Request: Having qty_unopened as product sensor attribute HOT 1
- extend to tandoor.dev HOT 1
- update_note servcie [question] HOT 2
- Grocy url access with name is not working HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shopping-list-with-grocy.