Integrate Grocy into homeasisstant

Hi everyone,

I’m having trouble adding the Grocy integration to my Home Assistant (for your information, it’s installed on VirtualBox).

I have tried several combinations of both the URL and the port, but none of them seem to work!

Can anyone help me out?

Thanks in advance!

I think I’m experiencing the same problem that you are. When I installed Grocy as a Home Assistant add-on, it configured itself to use the hassio_ingress method to talk to HA. This is enough to allow me to interact with Grocy through its main page, and indeed through Nabu Casa if I so choose, so yay. Unfortunately, the custom-components/grocy integration in HACS seems to assume that any instance of grocy can be accessed through a specific URL and port, neither of which seem to be clearly defined in the add-on. By default, it doesn’t look like there’s any port being used by HA to talk to the Grocy add-on, and when I manually specify a port, all I end up with is an inability to reach grocy through HA --nothing obviously working for the custom-component/grocy integration.

It would be great if someone could point us towards documentation that lays out how to integrate grocy using the new ingress method, or how to reconfigure the add-on to be compatible with both the iframe and the grocy integration sensors. Or perhaps the only option is to create a fully independent instance of grocy?

1 Like

hi all,
reviving this for a different question if a may…

I’ve got grocy setup in its own container separate to HA (so not using the addon).
I’ve got the integration working between HA and grocy.

The integration doesn’t have an action for reading stock. I see the grocy API has a GET function called /stock which just returns everything in stock.

Has anyone used this through HA before?

My project aim here is to use ChatGPT as a wine somelier. The current thinking is to use grocy as the wine DB, then use HA as an on prem proxy (ideally via the integration) for chatgpt to get the stock list.

Hi! Did you solve the installation of the custom component?

Can anyone assist us with this?

No unfortunately not.

What is the specific issue?

If you are using the Add-on, the integration should be able to reach it through your HA instance’s address on port 9192. You can change the port used in the Configuration tab of the Add-on if that port is being used by something else (make sure to save and restart the add-on if you make changes).

Regarding the integration, the original one seems to have been at least partly abandoned so use the one by iamkarlson, it is available in HACS.

I don’t know if it was the integration…but reinstalling the Addon and the integration I got it functioning!

Thanks for youtr help!