I know calendar entities (like calendar.my_calendar) is “on” when there is an event occurring and “off” when there is no event occurring.
Based on this there is easy to do something when the state changes.
but I nee something more advance this time.
I want a flow to check if a calendar will change state to “on” between 08:00 and 10:00 the day after.
If it is, I want it to do one thing, if not another thing.
If you only get one event then you can only do that much. If you have one event at 7:55 tomorrow and also the 8 -10 event then the automation will fail with the integration you are using.
The integration I use gives me n entities of data, but that is for office 365.
You can obviously use this but it won’t work all the time.
Or if you use “time” as the trigger, and check every day let’s say at 10:00 - then you could find out if there is a calendar event in the next X-seconds in the future…
Here is an example for this: https://roenning.net/?p=348