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

Every sensor is "Not available" #310

Open
AffeMitNerWaffe opened this issue Jun 25, 2024 · 3 comments
Open

Every sensor is "Not available" #310

AffeMitNerWaffe opened this issue Jun 25, 2024 · 3 comments

Comments

@AffeMitNerWaffe
Copy link

The integration has been running for some time now. Unfortunately, the sensors are now always set to unavailable. As a result, my chores can no longer be displayed on my dashboard. Grocy itself still works. I can access it and the tasks are all still stored.

To Reproduce
Steps to reproduce the behavior:

  1. go to Settings
  2. click on Devices and Services
  3. click on Grocy
  4. under Sensors these are set to Not available

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?

binary_sensor.grocy_overdue_chores
sensor.grocy_meal_plan
sensor.grocy_chores

What is your installed versions of Home Assistant, Grocy and this integration?
Core 2024.6.4
Supervisor 2024.06.0
Operating System 12.4
Frontend 20240610.1
Grocy Add-on 0.21.0
Grocy 4.11.1

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

Screenshot_20240625_080204
Screenshot_20240625_075958_io homeassistant companion android
Screenshot_20240625_075946_io homeassistant companion android

@blubbel42
Copy link

Same for me

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?

binary_sensor.grocy_overdue_chores
binary_sensor.grocy_expired_products
sensor.grocy_chores

What is your installed versions of Home Assistant, Grocy and this integration?
Core 2024.6.4
Frontend 20240610.1

and also:
Core 2024.7.0
Frontend 20240703.0

Grocy 4.11.1

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

My Log says:

ERROR (MainThread) [custom_components.grocy.coordinator] Error fetching grocy data: Update failed: <Response [400]>

@gulgummiand
Copy link

gulgummiand commented Jul 12, 2024

I had the same issue when I started looking at meal plans.

To reproduce:
Given that I only have one recipe given a name only. No ingredients or anything else entered.
And I have added the recipe to a meal plan.
Then all queries to grocy failed, and all my tasks appeared empty as well.

This produced the following log entry:

2024-07-11 11:49:27.590 ERROR (MainThread) [custom_components.grocy.coordinator] Error fetching grocy data: Update failed: 1 validation error for MealPlanSectionResponse
name
  none is not an allowed value (type=type_error.none.not_allowed)

@JimAungondtanapat
Copy link

I had the same issue with the following logs also. Then I realized that there's missing information in the battery tracking (All batteries I input were without "Used in" information. After I input the "Used in" information, all sensors were no longer unavailable

Error fetching grocy data: Update failed: 1 validation error for BatteryDetailsResponse battery -> used_in none is not an allowed value (type=type_error.none.not_allowed)

Untitled

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

4 participants