Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto update start_time and end_time in calendars #37

Open
ipodmusicman opened this issue Jun 10, 2023 · 0 comments
Open

Auto update start_time and end_time in calendars #37

ipodmusicman opened this issue Jun 10, 2023 · 0 comments

Comments

@ipodmusicman
Copy link

It is 17:05 currently. Loadshedding ended at 16:30, but the two calendars that are published using this integration still show the start_time and end_time as 14:00 and 16:30 respectively as in the image below.

current_calendar

However, when you click on the Calendar in the HA side bar, the calendar is aware that the next next load shedding event is at 22:00.

next event

Is it possible for the integration to update the two calendars once a current shed has completed so that the start_time and end_time is updated to the next load shedding event? Although the integration is set to update every hour, I think it would be great if this can be done based on the current end_time of the current calendars. The idea is not to poll the API when this happens (although this would be a configurable nice-to-have), the only action that should happen after the end_time is reached is to update the calendars to the next event.

This will allow the calendar to immediate reflect the next load shedding time so that the relevant automations, reporting, etc can be accurate and not having to wait an hour or 30min or whatever for this to happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant