Grocy - Custom component and card(s)

It was not the port in the end. It was a strange issue, where the SSL would turn itself on. I would turn it off, hit save, but the switch would jump back to on again. It even did it once, when I switch to code view… I typed false, and the word changed back to true. But on the 2nd try it stayed as false…

Anyway, my issue was that it wanted https because of the above SSL glitch. But once I got it locked to SSL:false then my URL, port and Key was accepted and the component installed successfully.

Is Grocy custom component dead? I see no development in guthub any more.

Hi folks!

I wanna get notification when something is missing from my stock.
I made this for notification

{{  state_attr('binary_sensor.grocy_missing_products', 'missing_products')[0].name }}

The problem is the number [0]. When i have more then 1 item missing this automation do not notify me the second missing stuff, but when i make this

{{  state_attr('binary_sensor.grocy_missing_products', 'missing_products')[0].name }}, {{  state_attr('binary_sensor.grocy_missing_products', 'missing_products')[1].name }}

i get no notification when only 1 item missing.
So somehow i have to make a dynamic list of the ‘name’ attribute but can not find out how.
Any suggestion can be a great help.

Hello!

How can i hide the unwanted text from the attribute of the binary overdue products sensor? Can’t figure it out…


type: entity
entity: binary_sensor.grocy_overdue_products
attribute: overdue_products
state_color: true

Thanks in advance!

I have this line for expiring products for today.

{{ state_attr(‘binary_sensor.grocy_expiring_products’,‘expiring_products’)
|selectattr(‘best_before_date’, ‘eq’, now().date() | string )
|map(attribute=‘name’)
|list }}

So the integration is broken after the 2025.1 ha release, Imsaw some discussions on github on a potential fix, anyone knows if that goong tombe implemented?

I will merge the pr but I don’t use Grocy myself anymore, so it will be untested (except for the contributor :slight_smile: ).

1 Like

Hello, after updating to 2025 components Grocy integration won’t start anymore.

_Error fetching grocy data: Update failed: 1 validation error for ChoreDetailsResponse chore.userfields Field required [type=missing, input_value={'id': 6, 'name': 'Nettoy...igned_to_user_id': None}, input_type=dict] For further information visit https://errors.pydantic.dev/2.10/v/missing

Seems that ID 6 in my tasks is incorrect, but nothing has changed in my datas and I can’t find the 6 one (where is this ID ?). All Tasks are assigned to one user (myself) or to a specific user called “En commun”. This is used to split display on HA.

Can’t see anything with value in the log

-----------------------------------------------------------
 Add-on: Grocy
 ERP beyond your fridge! A groceries & household management solution for your home
-----------------------------------------------------------
 Add-on version: 0.23.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 14.1  (amd64 / qemux86-64)
 Home Assistant Core: 2025.1.0
 Home Assistant Supervisor: 2024.12.3
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
Log level is set to ERROR
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-php-fpm: starting
s6-rc: info: service init-nginx: starting
s6-rc: info: service init-grocy: starting
patching file views/layout/default.blade.php
s6-rc: info: service init-grocy successfully started
s6-rc: info: service init-php-fpm successfully started
s6-rc: info: service php-fpm: starting
s6-rc: info: service php-fpm successfully started
s6-rc: info: service init-nginx successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started

any ideas ?

Same, see Validation error after upgrade to 2025.1 · Issue #320 · custom-components/grocy · GitHub

There is a new version, 2025.1.1, confirmed working.

1 Like

indeed, no more issues. thanks !

Hello, would it be possible to share the card code? Thanks

Is anyone is this thread interested in maintaining the integration going forward? I will soon take away my own access to the repo, since I am no longer maintaining it, and will no longer be able to merge PR:s or make new releases. If no one is taking over I will archive the repo.

Oh no :frowning: Great job with this integration @teachingbirds, i hope that someone will take over! Just wanted to share some words of support, but im socially awkward so im not sure if im doing a good job :wink:

1 Like