Hi there,
I have a flow using the Twilight plugin that used to work. It triggers the app Night Filter at sunset and stops it at sunrise. Unfortunately, nothing happens at sunset anymore. I don't know when it comes to sunrise but if I've triggered Night Filter manually, the flow wouldn't kick-in to stop the app either. I've not changed the flow. Would anybody have an idea how to solve my issue here?
My phone is rooted and on Jelly Bean 4.2.2.
Thanks for your help.
Choo
Flow using Twilight plugin used to work [SOLVED]
Moderator: Martin
Flow using Twilight plugin used to work [SOLVED]
Last edited by choo on 19 Nov 2014 10:07, edited 1 time in total.
Re: Flow with Twilight plugin used to work but not anymore.
Hi,
Is there an error shown in the log when you execute the flow manually (menu->Manage->Log)?
Could you please also share the flow so we can check what might be going on (menu->Forum: use Publish Flows/Widgets on the bottom and select the flow that fails, paste the link in a reply).
Did you change anything recently on your phone? Upgrade ROM, change some settings or install some Xposed modules, security apps or anything like that?
Regards,
Martin
Is there an error shown in the log when you execute the flow manually (menu->Manage->Log)?
Could you please also share the flow so we can check what might be going on (menu->Forum: use Publish Flows/Widgets on the bottom and select the flow that fails, paste the link in a reply).
Did you change anything recently on your phone? Upgrade ROM, change some settings or install some Xposed modules, security apps or anything like that?
Regards,
Martin
Re: Flow with Twilight plugin used to work but not anymore.
Hello Martin,
Please find attached the log and flows about this issue. I haven't tampered with any of the suggested culprits such as:
Upgrade ROM, settings, Xposed modules, security apps. I'm having this problem in a constant environment. I've rooted my phone but haven't installed any Xposed modules because I just wanted the broader options given by Automagic for rooted phones.
The log reports:
14.11.2014 17:12:40.420 Trigger 'Plugin: Twilight From after SUNRISE to before SUNSET at Device location. becomes true' Plugin returned code 17 (Unsatisfied)
14.11.2014 17:12:40.443 Trigger 'Plugin: Twilight From after SUNSET to before SUNRISE at Device location. becomes true' Plugin returned code 17 (Unsatisfied)
14.11.2014 17:12:40.475 Trigger 'Plugin: Twilight From after SUNRISE to before SUNSET at Device location. becomes true' Plugin returned code 17 (Unsatisfied)
14.11.2014 17:12:40.518 Trigger 'Plugin: Twilight From after SUNSET to before SUNRISE at Device location. becomes true' Plugin returned code 17 (Unsatisfied)
14.11.2014 17:14:40.121 Trigger 'Plugin: Twilight From after SUNRISE to before SUNSET at Device location. becomes true' Plugin returned code 17 (Unsatisfied)
14.11.2014 17:14:40.153 Trigger 'Plugin: Twilight From after SUNSET to before SUNRISE at Device location. becomes true' Plugin returned code 16 (Satisfied)
14.11.2014 17:14:40.162 Trigger 'Plugin: Twilight From after SUNSET to before SUNRISE at Device location. becomes true' going to execute flows
14.11.2014 17:14:40.165 [Night Filter + Twilight plugin | Start at Sunset] Starting to execute flow 'Night Filter + Twilight plugin | Start at Sunset' with Context{global{global_clip_recent5=null,global_cliplists=[],global_clip_recent4=null,global_list=,global_clip_recent3=null,global_clip_recent2=affiche-la violence,global_clip_recent1=Porque,global_clip=Porque},local{flow_name=Night Filter + Twilight plugin | Start at Sunset,trigger=Plugin: Twilight From after SUNSET to before SUNRISE at Device location. becomes true,triggertime=1415981680162,condition=true}}
14.11.2014 17:14:40.166 [Night Filter + Twilight plugin | Start at Sunset] Start executing action 'Launch App: com.digipom.nightfilter.pro/com.digipom.nightfilter.activity.ConfigActivity'
14.11.2014 17:14:40.171 [Night Filter + Twilight plugin | Start at Sunset] Action 'Launch App: com.digipom.nightfilter.pro/com.digipom.nightfilter.activity.ConfigActivity' Starting activity com.digipom.nightfilter.activity.ConfigActivity of package com.digipom.nightfilter.pro
14.11.2014 17:14:40.240 [Night Filter + Twilight plugin | Start at Sunset] End executing action 'Launch App: com.digipom.nightfilter.pro/com.digipom.nightfilter.activity.ConfigActivity'
14.11.2014 17:14:40.252 [Night Filter + Twilight plugin | Start at Sunset] Flow continues executing with the next step.
14.11.2014 17:14:40.254 [Night Filter + Twilight plugin | Start at Sunset] Start executing action 'Control UI: focus("Save & enable"); sleep(1000); click("Save & enable"); sleep(1000); back();'
14.11.2014 17:14:40.273 Trigger 'Plugin: Twilight From after SUNRISE to before SUNSET at Device location. becomes true' Plugin returned code 17 (Unsatisfied)
14.11.2014 17:14:40.319 Trigger 'Plugin: Twilight From after SUNSET to before SUNRISE at Device location. becomes true' Plugin returned code 16 (Satisfied)
14.11.2014 17:14:42.391 [Night Filter + Twilight plugin | Start at Sunset] End executing action 'Control UI: focus("Save & enable"); sleep(1000); click("Save & enable"); sleep(1000); back();'
14.11.2014 17:14:42.392 [Night Filter + Twilight plugin | Start at Sunset] Flow ended.
I appreciate your help.
Please find attached the log and flows about this issue. I haven't tampered with any of the suggested culprits such as:
Upgrade ROM, settings, Xposed modules, security apps. I'm having this problem in a constant environment. I've rooted my phone but haven't installed any Xposed modules because I just wanted the broader options given by Automagic for rooted phones.
The log reports:
14.11.2014 17:12:40.420 Trigger 'Plugin: Twilight From after SUNRISE to before SUNSET at Device location. becomes true' Plugin returned code 17 (Unsatisfied)
14.11.2014 17:12:40.443 Trigger 'Plugin: Twilight From after SUNSET to before SUNRISE at Device location. becomes true' Plugin returned code 17 (Unsatisfied)
14.11.2014 17:12:40.475 Trigger 'Plugin: Twilight From after SUNRISE to before SUNSET at Device location. becomes true' Plugin returned code 17 (Unsatisfied)
14.11.2014 17:12:40.518 Trigger 'Plugin: Twilight From after SUNSET to before SUNRISE at Device location. becomes true' Plugin returned code 17 (Unsatisfied)
14.11.2014 17:14:40.121 Trigger 'Plugin: Twilight From after SUNRISE to before SUNSET at Device location. becomes true' Plugin returned code 17 (Unsatisfied)
14.11.2014 17:14:40.153 Trigger 'Plugin: Twilight From after SUNSET to before SUNRISE at Device location. becomes true' Plugin returned code 16 (Satisfied)
14.11.2014 17:14:40.162 Trigger 'Plugin: Twilight From after SUNSET to before SUNRISE at Device location. becomes true' going to execute flows
14.11.2014 17:14:40.165 [Night Filter + Twilight plugin | Start at Sunset] Starting to execute flow 'Night Filter + Twilight plugin | Start at Sunset' with Context{global{global_clip_recent5=null,global_cliplists=[],global_clip_recent4=null,global_list=,global_clip_recent3=null,global_clip_recent2=affiche-la violence,global_clip_recent1=Porque,global_clip=Porque},local{flow_name=Night Filter + Twilight plugin | Start at Sunset,trigger=Plugin: Twilight From after SUNSET to before SUNRISE at Device location. becomes true,triggertime=1415981680162,condition=true}}
14.11.2014 17:14:40.166 [Night Filter + Twilight plugin | Start at Sunset] Start executing action 'Launch App: com.digipom.nightfilter.pro/com.digipom.nightfilter.activity.ConfigActivity'
14.11.2014 17:14:40.171 [Night Filter + Twilight plugin | Start at Sunset] Action 'Launch App: com.digipom.nightfilter.pro/com.digipom.nightfilter.activity.ConfigActivity' Starting activity com.digipom.nightfilter.activity.ConfigActivity of package com.digipom.nightfilter.pro
14.11.2014 17:14:40.240 [Night Filter + Twilight plugin | Start at Sunset] End executing action 'Launch App: com.digipom.nightfilter.pro/com.digipom.nightfilter.activity.ConfigActivity'
14.11.2014 17:14:40.252 [Night Filter + Twilight plugin | Start at Sunset] Flow continues executing with the next step.
14.11.2014 17:14:40.254 [Night Filter + Twilight plugin | Start at Sunset] Start executing action 'Control UI: focus("Save & enable"); sleep(1000); click("Save & enable"); sleep(1000); back();'
14.11.2014 17:14:40.273 Trigger 'Plugin: Twilight From after SUNRISE to before SUNSET at Device location. becomes true' Plugin returned code 17 (Unsatisfied)
14.11.2014 17:14:40.319 Trigger 'Plugin: Twilight From after SUNSET to before SUNRISE at Device location. becomes true' Plugin returned code 16 (Satisfied)
14.11.2014 17:14:42.391 [Night Filter + Twilight plugin | Start at Sunset] End executing action 'Control UI: focus("Save & enable"); sleep(1000); click("Save & enable"); sleep(1000); back();'
14.11.2014 17:14:42.392 [Night Filter + Twilight plugin | Start at Sunset] Flow ended.
I appreciate your help.
- Attachments
-
- NightFilter+Twilight.plugin.rar
- (4.56 KiB) Downloaded 825 times
Re: Flow with Twilight plugin used to work but not anymore.
Hi,
Thanks for the log. It seems that the Twilight plugin still executes your flow. I've tried the flow with the free Twilight app and it seems to work. Maybe there's a problem with the accessibility service used by action Control UI.
Please open system settings->Accessibility. Are there any other active accessibility services except Automagic?
Please turn all other services off and also stop/start the accessibility service of Automagic and try to execute the flow one more time. Does the flow work now?
Regards,
Martin
Thanks for the log. It seems that the Twilight plugin still executes your flow. I've tried the flow with the free Twilight app and it seems to work. Maybe there's a problem with the accessibility service used by action Control UI.
Please open system settings->Accessibility. Are there any other active accessibility services except Automagic?
Please turn all other services off and also stop/start the accessibility service of Automagic and try to execute the flow one more time. Does the flow work now?
Regards,
Martin
Re: Flow with Twilight plugin used to work but not anymore.
Hi Martin,
You're the best
I went into accessibility and made took a hard look at the permission there and disabled it for all apps (Sliding Messaging, Enhanced SMS and Caller ID, All in One Gesture) except for Automagic and Type Machine (a clipboard app). The flows work as they should now. I don't understand why some apps ask for this permission when I don't even notice a difference if they have it granted to them or not.
Another question: could you please point me to the direction on how to set up so that these flows kick-in intelligently after a reboot? The night filter is disabled if I do a reboot after sunset while it has been running before that.
You're the best

I went into accessibility and made took a hard look at the permission there and disabled it for all apps (Sliding Messaging, Enhanced SMS and Caller ID, All in One Gesture) except for Automagic and Type Machine (a clipboard app). The flows work as they should now. I don't understand why some apps ask for this permission when I don't even notice a difference if they have it granted to them or not.
Another question: could you please point me to the direction on how to set up so that these flows kick-in intelligently after a reboot? The night filter is disabled if I do a reboot after sunset while it has been running before that.
Re: Flow using Twilight plugin used to work [SOLVED]
Hi,
I'm glad it's working now. You could also enable the other accessibility services again and then switch the Accessibility Feedback Type in the preferences of Automagic. It has to be set to a feedback type that's not used by any other service otherwise Control UI might stop working again.
You could use a global variable to remember if the screen filter was turned on before the reboot (action Script: global_screen_filter_on = true;, resp. Script: global_screen_filter_on = false;) and then start the screen filter in a flow with trigger Automagic Startup.
You could also use the trigger Automagic Startup, check a condition Plugin: Twilight and start the filter when necessary.
Regards,
Martin
I'm glad it's working now. You could also enable the other accessibility services again and then switch the Accessibility Feedback Type in the preferences of Automagic. It has to be set to a feedback type that's not used by any other service otherwise Control UI might stop working again.
You could use a global variable to remember if the screen filter was turned on before the reboot (action Script: global_screen_filter_on = true;, resp. Script: global_screen_filter_on = false;) and then start the screen filter in a flow with trigger Automagic Startup.
You could also use the trigger Automagic Startup, check a condition Plugin: Twilight and start the filter when necessary.
Regards,
Martin
Re: Flow using Twilight plugin used to work [SOLVED]
Thank you Martin, as usual, your suggestions truly helped me.
Kind Regards,
choo
Kind Regards,
choo