Home Assistant Community Add-on: Grocy

I bought a bluetooth barcode reader and paired it with an Android tablet. Open HA on the tablet and go to the Grocy sidebar. The barcode reader works perfectly

1 Like

@floari @sparkydave why do you need external reader? my phone’s camera [Pixel 2XL, Android 10] works fine as a barcode reader, using an option built into Grocy. I need to use it via HomeAssistant’s web-dashboard tho, it’s not working via HA official app [permissions issue, I already opened an issue on github]

:tada: Release v0.5.0

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :fireworks: Updates maintenance/license year to 2020
  • :pencil2: Funding adjustments
  • :pencil2: Fixes some spelling and grammar
  • :arrow_up: Upgrades add-on base image to v6.0.1
  • :arrow_up: Upgrades php7 to 7.3.13-r0
  • :arrow_up: Upgrades nginx to 1.16.1-r4
  • :arrow_up: Upgrades git to 2.24.1-r0
  • :arrow_up: Upgrades yarn to 1.19.2-r0
  • :arrow_up: Upgrades composer to 1.9.1-r0
  • :pencil2: Fixes some spelling and grammar

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck

1 Like

I just liked the idea of having a tablet mounted to the fridge as a HA display and the ease of use to have a wireless barcode reader paired with it

oh, I see! if it would be possible to choose camera used for scanning, then it probably would be easier with front cam on a mounted device, but in said situation a paired reader indeed makes sense :slight_smile:

I have a fully updated hassio running very smoothly and with quick response times, with the exception of Grocy. Changing between views inside of Grocy can take upwards of 15 seconds. I am running the add-on using the latest version.

Ideas on how to troubleshoot?

Thanks!

Is it possible to have a lovecard card for the meal planner?

2 Likes

Hello! I’m really enjoying both Hassio and the grocy add-on. I’d like to make a backup of my database and maybe import some of the data into another application to do a few things with the recipes.

My question is: what is the easiest way to access the database? Reading about grocy seems to suggest it’s simply in the /data folder of grocy. However, on hassio I can’t easily access the host system. I’ve started trying to gain ssh access but it always seems to go into a docker container rather than to the host root that is running docker.

Any advice?

1 Like

Is anybody working on a Grocy Homeassistant integration? I love grocy but I would really like to use some simple automations with homeassistant and grocy.

1 Like

It exists in HACS.

:tada: Release v0.6.0

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Upgrades nginx to 1.16.1-r6
  • :pencil2: Funding adjustments
  • :arrow_up: Upgrades php7 to 7.3.14-r0
  • :arrow_up: Upgrades Grocy to 2.6.0

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck

1 Like

Hi! I am new user here to Grocy and the add-on for Home Assistant. Thanks for creating this!
I previously downloaded and experimented with the Windows version of Grocy and created some data. There is a menu option to save and restore data from that version (i.e. File->Backup data and File->Restore data). With the addon version with Home Assistant, I can’t find similar options. Is there a way to migrate data that I created and backed up with the windows version into the home assistant version?
I have installed Grocy via the Supervisor in version 0.105 of HA. The Grocy add on is 0.6.0 and Grocy itself is version 2.6.0.

thanks for your help!

EDIT: I decided to re-enter the data manually.

How to give access to other users of home assistant to grocy?

I was able to run Grocy and started entering data for Quantity Units and Product Groups. I then began entering Products (using Manage master data) and after about 50 entries, I received the following error in my browser: 502 Bad Gateway nginx
After navigating back to Overview in Home Assistant and renavigating to Grocy, I can access Grocy until I navigate back to the Products menu option and then I receive the same error. Restarting Grocy via Supervisor does not resolve the issue.

In the Supervisor Grocy log I see
** Hass.io Add-on: Grocy**
** ERP beyond your fridge! A groceries & household management solution for your home**
-----------------------------------------------------------
** Add-on version: 0.6.0**
** You are running the latest version of this add-on.**
** System: HassOS 3.9 (armv7 / raspberrypi3)**
** Home Assistant version: 0.105.2**
** Supervisor version: 199**
-----------------------------------------------------------

[09/Feb/2020:10:41:16 -0600] 200 192.168.1.6, 172.30.32.1(172.30.32.2) GET /api/system/db-changed-time HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36)
2020/02/09 10:41:17 [error] 783#783: *36 FastCGI sent in stderr: "PHP message: PHP Notice: Trying to get property ‘name’ of non-object in /data/grocy/viewcache/da2ac3729d0ecc842260a80c20264d94f764ac3b.php on line 78PHP message: PHP Notice: Trying to get property ‘name’ of non-object in /data/grocy/viewcache/da2ac3729d0ecc842260a80c20264d94f764ac3b.php on line 78PHP message: PHP Notice: Trying to get property ‘name’ of non-object in /data/grocy/viewcache/da2ac3729d0ecc842260a80c20264d94f764ac3b.php on line 78PHP message: PHP Notice: Trying to get property ‘name’ of non-object in /data/grocy/viewcache/da2ac3729d0ecc842260a80c20264d94f764ac3b.php on line 78PHP message: PHP Notice: Trying to get property ‘name’ of non-object in /data/grocy/viewcache/da2ac3729d0ecc842260a80c20264d94f764ac3b.php on line 78PHP message: PHP Notice: Trying to get property ‘name’ of non-object in /data/grocy/viewcache/da2ac3729d0ecc842260a80c20264d94f764ac3b.php on line 78PHP message: PHP Notice: Trying to get property ‘name’ of non-object in /data/grocy/viewcache/da2ac3729d0ecc842260a80c20264d94f764ac3b.php on line 78PHP message: PHP Notice: Trying to get property ‘name’ of non-object in /data/grocy/viewcache/da2ac3729d0ecc842260a80c20264d94f764ac3b.php on line 78PHP message: PHP Notice: Trying to get property ‘name’ of non-object in /data/grocy/viewcache/da2ac3729d0ecc842260a80c20264d94f764ac3b.php on line 78PHP message: PHP Notice: Trying to get property ‘name’ of non-object in /data/grocy/viewcache/da2ac3729d0ecc842260a80c20264d94f764ac3b.php on line 78PHP message: PHP Notice: Trying to get property ‘name’ of non-object in /data/grocy/viewcache/da2ac3729d0ecc842260a80c20264d94f764ac3b.php on line 78PHP message: PHP Notice: Trying to get property ‘name’ of non-object in /data/grocy/viewcache/da2ac3729d0ecc842260a80c20264d94f764ac3b.php on line 78PHP message: PHP Notice: Trying to get property ‘name’ of non-object in /data/grocy/viewcache/da2ac3729d0ecc842260a80c20264d94f764ac3b.php on line 78PHP message: PHP Notice: Tryin
2020/02/09 10:41:17 [error] 783#783: *36 upstream sent too big header while reading response header from upstream, client: 172.30.32.2, server: a0d7b954-grocy, request: “GET /products HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9002”, host: “192.168.1.28:8123”, referrer: “http://192.168.1.28:8123/api/hassio_ingress/6RygyzkZNJdRo20jqiL707llpqaA_cFIwiC_1PWm6UQ/inventory
[09/Feb/2020:10:41:17 -0600] 502 192.168.1.6, 172.30.32.1(172.30.32.2) GET /products HTTP/1.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87

Any ideas? Thanks!

In the Demo Grocy mode I can’t get the Barcode to work on my camera to add a product. I using an Samsung note 10. Am I missing something. Was thinking it was as easy as, 2 add the product from just taking a pic of the barcode

1 Like

I see that home system can not access barcodes. I really think it be a good idea in if we all pitched and paid someone… the aim is to take a picture to be stored on home assistant to recognise that we have bought this product. Or If my kid is at the shops looking …they can check the picture… An once
it’s home we can take another pic and it will Recognise what it is @frenck is this something you could do?

1 Like

You can add barcodes to Grocy already. You need to do it in the barcode entry field in the Grocy GUI, not quite by taking a photo but once you try to enter the barcode the screen will show a barcode scanner. This then gets saved in Grocy so when you scan next time Grocy will know what product it is

1 Like

ok is this the place I have an Samsung note 10 think it’s an latest phone so the camera should do barcode but when adding it keeps trying to find it?

All try it here to the same?

If you are trying to add the product for the first time you need to go to:-
Manage master data -> Products

Then add your products. The Inventory section is where you keep track of your quantities, but they need to be entered into Grocy via the Master data section first

2 Likes