#Calendar entity does not change last_updated or last_changed when events are modified.
1 messages · Page 1 of 1 (latest)
I think it's not possible.
oof
i'll dig into the source and maybe make a custom trigger if there is something i can hook into
Could be a good candidate for a new calendar trigger in the labs feature
yea, something i'll add to my clockwork integration if i can find a hook
I mean I was thinking just add it to the calendar base
oh, maybe
ah boy this will be a can of worms
ok so, this might not be as terrible as I thought but this is a lot to get a proper dev build and a new machine to test on, do custom components override core or what's the recommended way to test this?
Would there be a way to possibly have an automation that triggers on a timer (every 5 minutes, etc) that reloads the calendar periodly to update it?
ya that's the interim solution but it's sub optional
I just execute a python script checking the data
and I'm my case I know the days to look at but a proper trigger/event would tell me what event was added or changed or removed
I have a draft of changes to core calendar but I'm not sure how best to test
For now we only have triggers for events starting and ending in the new labs triggers, but I wouldn't have anything against extending the offering there. Can you tell me a bit more about your usecase @untold helm ?
In this specific case I need to monitor for event changes and update todo lists based on those events, rather than the time based trigger which continually runs and checks I can be more pointed in my execution by only updating when events actually change. This is specifically for meal planning. I have a custom lovelace card that will show the next 2 weeks with a simple edit button to add the meal for that day which manages an event in the calendar for that day. Simple text input of the food, no need to manage dates or times or all day event or anything. From there I have something that updates a todo list so multiple other things can read from an easily sorted/managed list rather than having to parse a calendar for events.
I can also use it to coordinate calendars, if i have integrations across systems like google or local HA i can manage the events on multiple calendars based on custom logic.
Other use cases could be monitoring for events to run pre-event actions like if i'm monitoring the calendar for events that would need to warm a specific room prior to the event or turn things to get ready. I wouldn't need to make specific triggers to monitor for a specific 'trigger event before time'. I can use the creation of the event to create kick it off.