Thanks to your LLama reference, I just found out we have Condition Calendar event too!
Which means no need query content provider anymore, all step can be reduced to a simple Condition.
Since it is a condition, the result always true or false, means to get the no calendar, we simply use the false branch.

- Condition Calendar Event.png (56.49 KiB) Viewed 15417 times
Put the Starting to be 17h, since you want to start the event at 07:00, 17 hours will cover until midnight if you made the event start at 23:59 (who would do that

). If you have vacation, most likely it is all day event, so this starting maybe doesn't matter much.
Titles :
*Vacation*
The asterisk is to ensure if the title consist *Vacation*, then it will return true. The filter is case-sensitive, so maybe you wanna put
*Vacation*,*vacation* or any other possible keyword in the comma delimited format.
No need to change other field. But since vacation most likely happen all day, maybe you wanna uncheck the regular event, so it only checks for all day event.
You don't want the condition return true when your calendar title is
Watching movie "Vacation" 2015, or
Drama "My Summer Vacation"
========
For automagic being drugged to sleep during screen off, Huawei is well-known for its aggressive battery optimizations. When sorting the threads, I realize there are quite a number of Huawei users complains about automagic not working as intended. You need to set at least at 3 places to whitelist automagic from the optimizations.
See :
https://2nwiki.2n.cz/pages/viewpage.act ... d=68223777
In shorts, you need to whitelist automagic and add it to protected app, then ignore it from battery optimization and allow notification along with priority display. You might need to locked automagic in recent task too to see if that helps. And make sure you have enabled the Automagic persistent ongoing notification, Automagic Settings > General > Show status icon > check.
Whatever you do to keep the Whatsapp, telegram, BBM or any other social media apps from getting killed by the system, do the same to automagic. If your socmed can works properly (receive notification on time), so do automagic. You just have to make the setting the same.