-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for by barcode #324
Comments
So a short update: Why is this needed? Because this: What is needed, besides running code, for a pull request? |
That is very cool! Right now, I use a workaround by using the rest api integration in HA
The {barcode} is fetched by my esp barcode scanner. |
@V69dxz cool a response :-) Currently I have no GET-by-barcode, but I plan to. Thanks for your example of the rest command. My Plan:
|
Will look at your fork!, but can’t help directly as i’m a novice in Python. Considering my automation: Well, barcode scanned -> fetch product name and id from grocy addon -> product -1 from stock through grocy integration -> tts: “you have taken [product name] from stock, have a great meal’ (sonos speaker) Some lessons learned:
But it’s cool ánd we have generally a good overview of our stock :) |
Oh, almost forgot: i have a tts error message if the amount of the scanned product is zero (thus we forgot to add the product in the first place) or if the barcode is unknown |
@V69dxz wow thanks for your response. I also dont know python (but other languages) and with the help of ChatGPT I was able to add (copy&paste) two services:
My barcode scanner has not arrived yet, but the code is ready :-) Here is the script: |
Hello,
Are there an Plan to Support Operations by barcode?
Like "Add Product To Stock" or "Consume Product From Stock"
I have a barcode Scanner and want to use Service to add or cobsume from Stock.
I saw the python api Supports this.
If there are no plans, is there a Chance that a PR will get accepted and merged?
I would create a fork, work on this and if everything is working create a PR back to you.
What Do you think?
The text was updated successfully, but these errors were encountered: