custom-components / grocy

Custom Grocy integration for Home Assistant
Apache License 2.0
153 stars 45 forks source link

Every sensor is "Not available" #310

Open AffeMitNerWaffe opened 3 weeks ago

AffeMitNerWaffe commented 3 weeks ago

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 commented 1 week ago

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 commented 5 days ago

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)