custom-components / grocy

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

Improvement: Create calendar entity for meal plan #82

Open nervetattoo opened 3 years ago

nervetattoo commented 3 years ago

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

nervetattoo commented 3 years ago

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

chpego commented 2 years ago

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

DellanX commented 5 months ago

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

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.

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.