I have been trying to set this up, but no success.
Whatever I do I get the same result:
When installed the Grocy Integration sets all sensors to inactive by default;
When I manually reactivate a sensor, its state is always on unknwon.
Grocy (3.1.3) is installed in an external Docker (on a Synology), accessible via internal IP:9192 or via an external https subdomain (through Synology’s reverse proxy).
I have tried creating API keys while connected through internal and external (just to be sure), I have obviously tried to link this component through internal and external links. Always the same result, I can setup the component, but sensors remain empty…
The sensors can take a while to repopulate after activating them (they should be inactive by default).
However it’s impossible to help without seeing what error messages you might be getting in the log.
For those of you trying to get this going for the first time. You may be affected by this issue in the custom component.
If you have added chores you need to make sure that they have due dates, otherwise an error prevents the data from getting imported from Grocy. I had to click done on the initial chores that I created. (Mine were setup on a dynamic timeline) Once the chores got next estimated tracking dates data started flowing in through the integration, and the Card started displaying data.
Thanks for your response.
Still empty sensors after 12 hours. I have noticed that last update still dates back from last restart of HA.
The only Grocy errors I can find in the log are the following:
Logger: custom_components.grocy
Source: custom_components/grocy/__init__.py:104
Integration: Grocy (documentation, issues)
First occurred: 31 janvier 2022, 21:08:18 (3337 occurrences)
Last logged: 11:39:58
Update of Expired_products failed with 2 validation errors for CurrentVolatilStockResponse due_products -> 2 -> product -> min_stock_amount value is not a valid integer (type=type_error.integer) overdue_products -> 0 -> product -> min_stock_amount value is not a valid integer (type=type_error.integer)
Update of Meal_plan failed with 'datetime.date' object has no attribute 'date'
Update of Stock failed with 1 validation error for CurrentStockResponse product -> min_stock_amount value is not a valid integer (type=type_error.integer)
There is an alert on reboot about loading time
Logger: homeassistant.components.binary_sensor
Source: /usr/local/lib/python3.9/asyncio/events.py:80
Integration: Capteur binaire (documentation, issues)
First occurred: 31 janvier 2022, 21:08:21 (1 occurrences)
Last logged: 31 janvier 2022, 21:08:21
Setup of binary_sensor platform grocy is taking over 10 seconds.
im sorry to bother you, but i cant get the shopping list working at all. the state never changes away from unknown. Anybody an idea what im doing wrong here?
edit4: is working now, things learned:
items need to have an entity/amount attribute that the sensor doesnt show unknown state.
multiple shopping_list get collapsed in one sensor
is there a way to get information about the name of the shopping_list, or a identifier, so that zone related separation is possible?
First of all: Thanx for the really great work with this! I love tracking chores.
This being said: In case anybody else hat an old grocy lying around and reactivated it after 2 years with a new version: This component needs “product_group_id” and duedates. So if you somehow managed to get a database with Items that are overdue and have no product group set: setting one will make it work.
Greetings
Blubbel
I installed the grocy addon update, hoping some errors will disappear and corrected several things in grocy (adding productgroups, due dates, …) but there are still errors and i do not know where to address them.
Update of Missing_products failed with 1 validation error for ProductDetailsResponse last_used invalid datetime format (type=value_error.datetime)
Update of Overdue_tasks failed with 'tzinfo' is an invalid keyword argument for replace()
Update of Meal_plan failed with 1 validation error for MealPlanResponse product_amount value is not a valid float (type=type_error.float)
Update of Shopping_list failed with 2 validation errors for ProductDetailsResponse last_used invalid datetime format (type=value_error.datetime) stock_amount value is not a valid integer (type=type_error.integer)
Update of Stock failed with 1 validation error for CurrentStockResponse product -> min_stock_amount value is not a valid integer (type=type_error.integer)
Thank you for this awesome component!
Im not sure if its 2022.4, but “sensor.grocy_chores” no longer has attributes that detail the chores, and this breaks the chores card. Any idea why this is?
First off, thank you to all involved for this integration.
I have a problem where all of my Grocy sensors are unavailable, even after I enable them all.
My Grocy is an existing external Grocy install hosted on my own website (https://grocy.mydomain.com), so I followed the ‘for existing external Grocy install’ method.
For the port configuration I specified 443 as suggested as a work-around suggested by Ludeeus for non port set-ups. I do have an SSL cert for my site and am using https.
The install completed successfully, I have a bunch of binary sensors and sensor listed, however I previously stated they are all unavailable, so I cannot see any data from them.
I enabled logging in my configuration.yaml and rebooted.
The entities are now enabled (perhaps I just needed to reboot anyway), however when checking the logs i get the following entry:
Logger: custom_components.grocy
Source: custom_components/grocy/__init__.py:104
Integration: Grocy (documentation, issues)
First occurred: 1:40:47 PM (5 occurrences)
Last logged: 1:43:36 PM
Update of Shopping_list failed with 1 validation error for ProductDetailsResponse product -> product_group_id value is not a valid integer (type=type_error.integer)
No, it’s a validation error from some of the product values. I am getting the same thing.
I managed to fix some of them - I had the minimum stock value set to “0.5” for Milk, because I want it to show when I have a half-jug of milk. After changing this to 1, I don’t have any more validation errors on stock amounts and that sensor is now working.
However, the Expired Products, Expiring Products, Missing Products and Overdue Tasks sensors are still showing up as Unknown. There are more validation errors in my logs that are a little trickier to track down.
It seems this integration doesn’t support float values for sensors or something. It would be great for that to be supported - it might solve this whole bug.
I’m trying to use this custom component with the HA Add-on and HACS Chores Card to filter chores by room.
I created a “Select List” userfield in Grocy, which appears to be displaying properly in the Grocy API, but only returns “userfields: null” in the Attributes of this custom integration.
Do I need to change my userfield setup, am I doing something else wrong?
Please let me know how I can provide any additional details or assistance.
I just updated the Chores card with a possibility to show a toast bar when tracking chores or tasks. It leverages browser_mod to make the toast, so you need to have that installed. If you already have that installed all you need to do is add a config option browser_mod: true to the card config.