Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore sensor intermittently unavailable #337

Open
arnaupool opened this issue Mar 4, 2025 · 2 comments
Open

Chore sensor intermittently unavailable #337

arnaupool opened this issue Mar 4, 2025 · 2 comments

Comments

@arnaupool
Copy link

arnaupool commented Mar 4, 2025

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

Describe the bug
The chore sensor becomes unavailable every other minute, only have 1 chore set up.
Happens with every sensor I enable.

Expected behavior
Chore sensor available at all times

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?
Only the chore and the overdue chore ones

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

System: Home Assistant OS 14.2 (amd64 / qemux86-64)
Home Assistant Core: 2025.2.4
Home Assistant Supervisor: 2025.03.0
Grocy add-on: v0.24.0
Grocy custom component version: 2025.2.2

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

Have you added debugging to the log, and what does the log say?
This error originated from a custom integration.

Logger: custom_components.grocy.coordinator
Source: helpers/update_coordinator.py:412
integration: Grocy (documentation, issues)
First occurred: 8:22:39 PM (1 occurrences)
Last logged: 8:22:39 PM

Error fetching grocy data: Update failed: Expecting value: line 1 column 1 (char 0)```

Additional context
Tried doing a fresh install of the component and grocy itself, to no avail
Looks like there's an error initially fetching grocy data, as then it "succeeds" in doing so:
2025-03-04 21:03:55.705 ERROR (MainThread) [custom_components.grocy.coordinator] Error fetching grocy data: Update failed: Expecting value: line 1 column 1 (char 0)
2025-03-04 21:03:55.705 DEBUG (MainThread) [custom_components.grocy.coordinator] Finished fetching grocy data in 0.106 seconds (success: False)

Image

Image

@arnaupool
Copy link
Author

Well... Seems like the problem is resolved after changing SCAN_INTERVAL to 60 in custom_components/grocy/const.py. Something's must be off when calling the api so many times, if this keeps happening to other people I'll push an update

Image

@arnaupool arnaupool reopened this Mar 5, 2025
@arnaupool
Copy link
Author

Unfortunately after that the data fetch from grocy fails every time, so the sensor just becomes unavailable as soon as I interact with it:
2025-03-05 21:06:51.006 DEBUG (MainThread) [custom_components.grocy.coordinator] Finished fetching grocy data in 0.106 seconds (success: False)

I'll leave this issue open as I don't have the time to fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant