Skip to content

sensor grocy_expiring_products not on when expected #361

Description

@d3faulted

Unless all relevant information is provided, I can't help you

Describe the bug
I changed the 'Due soon days' to 60 in Stock settings. In Grocy > Stock Overview, there are 3 products due within the next 60 days. In HA, sensor.grocy_expiring_products is off. I don't know if it was working before the change. I have tried resubmitting the change but that hasn't made a difference. The sensors missing_products, grocy_stock and grocy_shopping_list are on and populated as expected. I haven't added any batteries so so not sure if that would have an issue.

Expected behavior
I would expect that the three expiring items that show up in Grocy would turn on the sensor.grocy_expiring_products.

To Reproduce
In HA go to Dev Tools, click the States tab and search for Grocy. See the state of sensor.grocy_expiring_products

General information to help debugging:

What sensors do you have enabled? Are they working and/or what state are they in? Do you have the corresponding functions enabled in Grocy?

HA Apps > Grocy > Features - everything enabled except chores, equipment and tasks.
HA Apps Grocy > Tweaks - everything on
HA Apps > Grocy - SSL off
HA Settings > Integrations > Grocy > Pantry - all sensors and controls enabled

What is your installed versions of Home Assistant, Grocy and this integration?

Grocy v1.10.0
Installation method -Home Assistant OS (installed on m2 drive on Pi5)
Core 2026.2.3
Supervisor 2026.02.2
Operating System 17.1
Frontend 20260128.6

How do you have Grocy installed? Add-on or external?
addon

Have you added debugging to the log, and what does the log say?
2026-02-26 09:01:18.489 INFO (MainThread) [custom_components.grocy]

Grocy
Version: v1.10.0
This is a custom integration!
If you have any issues with this you need to open an issue here:
https://github.com/iamkarlson/grocy/issues

2026-02-26 09:01:18.533 DEBUG (MainThread) [custom_components.grocy] Available entities: ['stock', 'missing_products', 'expired_products', 'expiring_products', 'overdue_products', 'shopping_list', 'meal_plan', 'batteries', 'overdue_batteries']
2026-02-26 09:01:18.533 DEBUG (MainThread) [custom_components.grocy.coordinator] Finished fetching grocy data in 0.000 seconds (success: True)
2026-02-26 09:01:22.825 DEBUG (MainThread) [custom_components.grocy.binary_sensor] Entity description 'overdue_chores' is not available.
2026-02-26 09:01:22.825 DEBUG (MainThread) [custom_components.grocy.binary_sensor] Entity description 'overdue_tasks' is not available.
2026-02-26 09:01:22.826 DEBUG (MainThread) [custom_components.grocy.sensor] Entity description 'chores' is not available
2026-02-26 09:01:22.826 DEBUG (MainThread) [custom_components.grocy.sensor] Entity description 'tasks' is not available
2026-02-26 09:01:22.831 DEBUG (MainThread) [custom_components.grocy.todo] Entity description 'chores' is not available
2026-02-26 09:01:22.831 DEBUG (MainThread) [custom_components.grocy.todo] Entity description 'tasks' is not available
2026-02-26 09:01:24.113 DEBUG (MainThread) [custom_components.grocy.calendar] Fetched iCal URL: http://192.168.0.bla:9594/api/calendar/ical?secret=blablabla
2026-02-26 09:01:25.855 DEBUG (MainThread) [custom_components.grocy.coordinator] Finished fetching grocy data in 3.030 seconds (success: True)
2026-02-26 09:01:25.863 DEBUG (MainThread) [custom_components.grocy.grocy_data] Generated image api url to grocy: 'http://192.168.0.166:9594'
2026-02-26 09:01:39.680 DEBUG (MainThread) [custom_components.grocy.coordinator] Finished fetching grocy data in 6.845 seconds (success: True)
2026-02-26 09:02:00.312 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for sensor.grocy_stock exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2026-02-26 09:02:00.453 WARNING (Recorder) [homeassistant.components.recorder.db_schema] State attributes for sensor.grocy_stock exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
2026-02-26 09:02:10.542 DEBUG (MainThread) [custom_components.grocy.coordinator] Finished fetching grocy data in 1.121 seconds (success: True)
2026-02-26 09:02:17.406 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'str object' has no attribute 'status' when rendering '{{ value.status }}'
2026-02-26 09:02:41.630 DEBUG (MainThread) [custom_components.grocy.coordinator] Finished fetching grocy data in 1.209 seconds (success: True)
2026-02-26 09:02:47.722 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'str object' has no attribute 'status' when rendering '{{ value.status }}'
2026-02-26 09:03:12.732 DEBUG (MainThread) [custom_components.grocy.coordinator] Finished fetching grocy data in 1.311 seconds (success: True)
2026-02-26 09:03:17.973 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'str object' has no attribute 'status' when rendering '{{ value.status }}'
2026-02-26 09:03:43.769 DEBUG (MainThread) [custom_components.grocy.coordinator] Finished fetching grocy data in 1.348 seconds (success: True)
2026-02-26 09:03:47.549 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'str object' has no attribute 'status' when rendering '{{ value.status }}'
2026-02-26 09:04:14.876 DEBUG (MainThread) [custom_components.grocy.coordinator] Finished fetching grocy data in 1.193 seconds (success: True)
2026-02-26 09:04:17.625 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'str object' has no attribute 'status' when rendering '{{ value.status }}'
2026-02-26 09:04:26.587 ERROR (MainThread) [homeassistant.components.websocket_api.commands] Unable to get manifest for integration shopping_list_with_grocy: Integration 'shopping_list_with_grocy' not found.

Additional context
I did have the shopping list with grocy integration added but have removed it. I don't know if this issue predates installation of that integration but it still exists after removal. I have rebooted the system since then.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions