Page 1 of 1
Flow starts at wrong time
Posted: 16 Aug 2018 08:40
by Kozubi
Hello,
I created a flow which should run everyday at 13:00. Sometimes it doesn't (but I think this is Doze mode thing) but my actual problem is that flow starts sometimes at 1:00 (during night).
My flows run Termux task which sends SMS to few people. Everything is ok with task but AUTOMAGIC triggers it at wrong time.
My phone is Huawei P8, stock android 6.0 ROM.
Log:
15.08.2018 13:07:14.989 [WysylanieSmsWozek] Flow ended.
16.08.2018 01:00:00.099 [WysylanieSmsWozek] Starting to execute flow 'WysylanieSmsWozek' with Context{global{global_my=2},local{flow_name=WysylanieSmsWozek,trigger=Time: everyday 13:00,triggertime=1534374000065}}
16.08.2018 01:00:00.127 [WysylanieSmsWozek] Start executing condition 'Time Range: between 08:00 - 17:00'
16.08.2018 01:00:00.139 [WysylanieSmsWozek] End executing condition 'Time Range: between 08:00 - 17:00' with return value false
16.08.2018 01:00:00.160 [WysylanieSmsWozek] Flow continues executing with the next step.
16.08.2018 01:00:00.161 [WysylanieSmsWozek] Start executing action 'Send SMS: to 000124 'AUTOMAGIC próbował wysłać SMS-a o złej porze!1' (10 in 12h)'
16.08.2018 01:00:01.220 [WysylanieSmsWozek] End executing action 'Send SMS: to 00000123 'AUTOMAGIC próbował wysłać SMS-a o złej porze!1' (10 in 12h)'
16.08.2018 01:00:01.225 [WysylanieSmsWozek] Flow ended.
PS. I added this condition to check time to avoid sending SMS during night
Re: Flow starts at wrong time
Posted: 16 Aug 2018 12:59
by Desmanto
If it is doze, it supposed not to be so exact. The delay will be indefinite or maybe 15 minutes late. Remember to set Automagic to don't optimize at the battery optimization. EMUI has been known for its aggressive 3rd party background app suppression.
I think it is something else. Try to set you time trigger to 14:00 and use some action such as notification on statusbar to see the difference. We want to verify if it triggers at 02:00 or still the same 01:00. It is possible you have other flow that execute this flow at 01:00.
Re: Flow starts at wrong time
Posted: 21 Aug 2018 03:37
by Kozubi
Hey,
I found that my flow starts during night when it does not trigger at day (maybe because Doze) and I have to run it manually. I also have second, dumb flow which should show notification at 14:00 and sometimes it show it at 2:00.
And no, there is no other flow. Just looks at logs:
[NORMAL TRIGGER]
19.08.2018 13:00:00.079 [WysylanieSmsWozek] Starting to execute flow 'WysylanieSmsWozek' with Context{global{global_my=2},local{flow_name=WysylanieSmsWozek,trigger=Time: everyday 13:00,triggertime=1534676400055}}
19.08.2018 13:00:00.098 [WysylanieSmsWozek] Start executing condition 'Time Range: between 08:00 - 17:00'
19.08.2018 13:00:00.107 [WysylanieSmsWozek] End executing condition 'Time Range: between 08:00 - 17:00' with return value true
19.08.2018 13:00:00.218 [WysylanieSmsWozek] Flow continues executing with the next step.
19.08.2018 13:00:00.218 [WysylanieSmsWozek] Start executing action 'Plugin: Termux Execute ~/.termux/tasker/sms_send.sh in a terminal session.'
19.08.2018 13:00:00.279 [WysylanieSmsWozek] End executing action 'Plugin: Termux Execute ~/.termux/tasker/sms_send.sh in a terminal session.'
19.08.2018 13:00:00.280 [WysylanieSmsWozek] Flow continues executing with the next step.
19.08.2018 13:00:00.280 [WysylanieSmsWozek] Start executing action 'Sleep: 5s (keep device awake)'
19.08.2018 13:00:00.282 [WysylanieSmsWozek] Action 'Sleep: 5s (keep device awake)' Sleeping for 5s (keep device awake)
19.08.2018 13:00:05.285 [WysylanieSmsWozek] End executing action 'Sleep: 5s (keep device awake)'
19.08.2018 13:00:05.338 [WysylanieSmsWozek] Flow ended.
[MANUAL TRIGGER]
20.08.2018 13:24:31.954 [WysylanieSmsWozek] Starting to execute flow 'WysylanieSmsWozek' with Context{global{global_my=2},local{flow_name=WysylanieSmsWozek,triggertime=1534764271951,trigger=Manual}}
20.08.2018 13:24:31.956 [WysylanieSmsWozek] Start executing condition 'Time Range: between 08:00 - 17:00'
20.08.2018 13:24:31.960 [WysylanieSmsWozek] End executing condition 'Time Range: between 08:00 - 17:00' with return value true
20.08.2018 13:24:32.053 [WysylanieSmsWozek] Flow continues executing with the next step.
20.08.2018 13:24:32.053 [WysylanieSmsWozek] Start executing action 'Plugin: Termux Execute ~/.termux/tasker/sms_send.sh in a terminal session.'
20.08.2018 13:24:32.075 [WysylanieSmsWozek] End executing action 'Plugin: Termux Execute ~/.termux/tasker/sms_send.sh in a terminal session.'
20.08.2018 13:24:32.097 [WysylanieSmsWozek] Flow continues executing with the next step.
20.08.2018 13:24:32.098 [WysylanieSmsWozek] Start executing action 'Sleep: 5s (keep device awake)'
20.08.2018 13:24:32.099 [WysylanieSmsWozek] Action 'Sleep: 5s (keep device awake)' Sleeping for 5s (keep device awake)
20.08.2018 13:24:37.101 [WysylanieSmsWozek] End executing action 'Sleep: 5s (keep device awake)'
20.08.2018 13:24:37.102 [WysylanieSmsWozek] Flow ended.
[NORMAL TRIGGER BUT 12H BEFORE]
21.08.2018 01:00:00.104 [WysylanieSmsWozek] Starting to execute flow 'WysylanieSmsWozek' with Context{global{global_my=2},local{flow_name=WysylanieSmsWozek,trigger=Time: everyday 13:00,triggertime=1534806000063}}
21.08.2018 01:00:00.119 [WysylanieSmsWozek] Start executing condition 'Time Range: between 08:00 - 17:00'
21.08.2018 01:00:00.128 [WysylanieSmsWozek] End executing condition 'Time Range: between 08:00 - 17:00' with return value false
21.08.2018 01:00:00.147 [WysylanieSmsWozek] Flow continues executing with the next step.
21.08.2018 01:00:00.148 [WysylanieSmsWozek] Start executing action 'Send SMS: to 111222333'AUTOMAGIC próbował wysłać SMS-a o złej porze!1' (10 in 12h)'
21.08.2018 01:00:00.959 [WysylanieSmsWozek] End executing action 'Send SMS: to 11112233'AUTOMAGIC próbował wysłać SMS-a o złej porze!1' (10 in 12h)'
21.08.2018 01:00:00.963 [WysylanieSmsWozek] Flow ended.
Re: Flow starts at wrong time
Posted: 21 Aug 2018 19:12
by Desmanto
Do you already check the ignore battery optimization for automagic? In the trigger, do you check the enable in doze? Both are needed. Don't worry about the battery life, automagic is one of the battery friendly app; if you use mostly event based triggers in your flow. (including this time trigger)
It seems you are at UTC+2, so I have no idea why there will be 12 hours diffence.
You probably need to make a series of troubleshooting as shown in here :
viewtopic.php?f=5&t=6875
But test using time trigger instead.
Re: Flow starts at wrong time
Posted: 21 Aug 2018 20:20
by Kozubi
Yes I checked both allow in Doze mode and ignore battery optimalization.
Now I also checked "Like alarm clock" and ignored optimalization for "Workaround for AUTOMAGIC" app. See if this change something. Thanks for link I gonna check it. I really appreciate your help
