Aktion auslösen wenn Kalender keinen Eintrag "Urlaub" hat

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
c.schenk
Posts: 2
Joined: 31 Aug 2016 20:16

Aktion auslösen wenn Kalender keinen Eintrag "Urlaub" hat

Post by c.schenk » 03 Jan 2018 00:40

Ich möchte an jedem Wochentag, wenn der Kalender keinen Eintrag "Urlaub" hat, morgens um 7.00 Uhr eine app starten.

Wie muss ich die Bedingung kein Kalendereintrag definieren?

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Aktion auslösen wenn Kalender keinen Eintrag "Urlaub" ha

Post by Desmanto » 03 Jan 2018 01:08

No calendar entry >> do some action?
Need to use query content provider, as shown in this thread
viewtopic.php?f=5&t=7172
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

c.schenk
Posts: 2
Joined: 31 Aug 2016 20:16

Re: Aktion auslösen wenn Kalender keinen Eintrag "Urlaub" ha

Post by c.schenk » 05 Jan 2018 08:51

Hallo Desmanto,

danke für die die Antwort.
Leider bekomme ich das nicht hin. Kannst du mir vielleicht einen screenshot posten? Hatte seither Llama genutzt und da war es ganz einfach: Bedingung Kalendereintrag -> Kalender hat keinen Eintrag "Urlaub"

Mein größeres Problem ist aber, dass nichts mehr automatisch funktioniert sobald der Bildschirm gesperrt ist. Ich habe ein Huawei Mate 10 pro und bei Akku Optimierungen zulässig aktiviert. Muss ich da noch etwas anderes einstellen?

Danke und Gruß
c.schenk

User avatar
yogi108
Posts: 100
Joined: 09 Nov 2016 08:00
Contact:

Re: Aktion auslösen wenn Kalender keinen Eintrag "Urlaub" ha

Post by yogi108 » 05 Jan 2018 11:26

Hallo,
Huawei ist da leider nicht so einfach....
Ich habe ein P9 lite, mit der 6 Version sind trotz der Akku und sonstiger Einstellungen keine timer oder sonstige trigger ausgelöst worden.
Nach dem Update auf nougat 7.0 keine Probleme mehr trotz gleicher Einstellungen.

Im schlimmsten Fall kannst Dir den benötigten Flow mit einem shortcut trigger versehen und manuell auslösen.

LG
"You cannot know the meaning of your life until you are connected to the power that created you.”
Shri Mataji Nirmala Devi, founder of Sahaja Yoga

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Aktion auslösen wenn Kalender keinen Eintrag "Urlaub" ha

Post by Desmanto » 05 Jan 2018 15:04

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
Condition Calendar Event.png (56.49 KiB) Viewed 15222 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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply