grocy icon indicating copy to clipboard operation
grocy copied to clipboard

Every sensor is "Not available"

Open AffeMitNerWaffe opened this issue 1 year ago • 7 comments

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

AffeMitNerWaffe avatar Jun 25 '24 06:06 AffeMitNerWaffe

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]>

blubbel42 avatar Jul 03 '24 22:07 blubbel42

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)

gulgummiand avatar Jul 12 '24 08:07 gulgummiand

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

JimAungondtanapat avatar Sep 13 '24 16:09 JimAungondtanapat

Please test again there was a PR #323 which should fix this issue

Grocy Component Version: 2025.1.1

cliffordwhansen avatar Jan 09 '25 11:01 cliffordwhansen

Please test again there was a PR #323 which should fix this issue

Grocy Component Version: 2025.1.1

Not yet, for me :(

image

leoguerran avatar Jan 09 '25 12:01 leoguerran

If I remember correctly that icon means disabled, can you enable the entities

image

Clicking the cog you should be able to enable this sensor.

cliffordwhansen avatar Jan 09 '25 13:01 cliffordwhansen

If I remember correctly that icon means disabled, can you enable the entities

image

Clicking the cog you should be able to enable this sensor.

Thanks! I able all sensor manually and works!

leoguerran avatar Jan 09 '25 13:01 leoguerran