custom-components / grocy

Custom Grocy integration for Home Assistant
Apache License 2.0
162 stars 50 forks source link

Tasks undefined #191

Closed cahir1987 closed 2 years ago

cahir1987 commented 2 years ago

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

Describe the bug Tasks not showing in hassio.

Chores works fine Tasks shows undefined

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

Home Assistant 2022.2.8 Grocy 0.16.0

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?

Logger: custom_components.grocy Source: custom_components/grocy/init.py:104 Integration: Grocy (documentation, issues) First occurred: 13:56:12 (170 occurrences) Last logged: 14:41:04

Update of Overdue_tasks failed with 1 validation error for TaskResponse due_date invalid date format (type=value_error.date) Update of Tasks failed with 1 validation error for TaskResponse due_date invalid date format (type=value_error.date) Update of Overdue_tasks failed with 1 validation error for TaskResponse category_id value is not a valid integer (type=type_error.integer) Update of Tasks failed with 1 validation error for TaskResponse category_id value is not a valid integer (type=type_error.integer)

JSON service data (if related to using a service)

{

}

Additional context Add any other context about the problem here.

dakoellis commented 2 years ago

I had the same issue but updating to Home Assistant 2022.3.2 and the latest grocy image/addon fixed it for me

rum0s commented 2 years ago

Same here. Got this error from the logs:

Logger: custom_components.grocy Source: custom_components/grocy/init.py:104 Integration: Grocy (documentation, issues) First occurred: 11:45:43 (205 occurrences) Last logged: 12:14:45

Update of Overdue_tasks failed with 1 validation error for TaskResponse category_id value is not a valid integer (type=type_error.integer) Update of Stock failed with 1 validation error for CurrentStockResponse product -> product_group_id value is not a valid integer (type=type_error.integer) Update of Tasks failed with 1 validation error for TaskResponse category_id value is not a valid integer (type=type_error.integer) Update of Shopping_list failed with 1 validation error for ProductDetailsResponse product -> product_group_id value is not a valid integer (type=type_error.integer)

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

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

Grocy Integration 4.1.8

dakoellis commented 2 years ago

@rum0s You need to update your grocy integration. 4.2.0b is out

rum0s commented 2 years ago

@dakoellis Thank you very much! I'll give it a try

besides, adding product and task categories helped somehow.

dakoellis commented 2 years ago

@dakoellis Thank you very much! I'll give it a try

besides, adding product and task categories helped somehow.

I'm using hacs so it just popped up for me. Otherwise you would need to copy the contents of the release to the custom components directory on your hass server

rum0s commented 2 years ago

I activated the beta and installed 4.2.0b but the problem still persists.

If there is no product group / task group or task assigned to a user it throws an error. Is this the intended behaviour?

marcelvriend commented 2 years ago

Task related issues waits for https://github.com/SebRut/pygrocy/pull/237.