grocy icon indicating copy to clipboard operation
grocy copied to clipboard

Improvement: Create calendar entity for meal plan

Open nervetattoo opened this issue 5 years ago • 4 comments
trafficstars

In addition to being a sensor it would be great to get the meal plan directly in the calendar panel.

nervetattoo avatar Aug 20 '20 07:08 nervetattoo

I'm hoping to find time to look into this next week.

nervetattoo avatar Aug 20 '20 07:08 nervetattoo

Thanks @isabellaalstrom for your work's. I found that's is big idea to create a calendar entity for meal plan, maybe we can be inspired by the following component ics_calendar to get the calendar, especially since there is an API to retrieve the Grocy calendar

I don't know enough Python to help you

chpego avatar Jan 08 '22 19:01 chpego

I just made semi-functional todo entity versions of the sensors, and plan to next start working on the calendar entity. I assume the desire here is to have a calendar entity for meal plan, chores, tasks and batteries. Is there any other desired configurations for the calendar entities?

Do the repo owners have any preference on how I implement this?

DellanX avatar Feb 03 '24 18:02 DellanX

I have a rough version working now on my branch. I've PR'd it into my todo branch, as the code has similar requirements.

  • Todo Entity Code: https://github.com/DellanX/grocy/tree/feature/todo
  • PR to add Todo to this repository: https://github.com/custom-components/grocy/pull/306
  • Calendar Entity Code: https://github.com/DellanX/grocy/tree/feature/calendar
  • PR to add Calendar Entities to the Todo Entity codebase: https://github.com/DellanX/grocy/pull/1

I'll start to compare against Grocy, and work towards matching how data is displayed in Grocy. Further, my current implementation doesn't support repeating events, nor does is support previous events.

  • It won't show next time a chore needs to be done
  • It won't show when chores were previously completed

DellanX avatar Feb 04 '24 17:02 DellanX