Notification on statusbar condition

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Notification on statusbar condition

Post by colabi » 28 Oct 2013 21:18

Hi

What about a condition to check if notification exist on stausbar?
Somathing like this:

Trigger: WiFi Connected
Action: Notification on Stausbar > "Bluetooth will be turned off in 30 sec"
Action: Sleep 30s (Now I want to remove notification, or not)
Condition: Notification on Stausbar exist

True: Set Bluetooth State > Off
False: Some other action

(I know that it can be used Input Dialog and select Ok or Cancel for that, but I think is less intrusive solution)

Or maybe, a new trigger: Notification on statusbar removed

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Notification on statusbar condition

Post by Martin » 28 Oct 2013 21:41

Hi,

Such a condition is already on my todo list (all notifications, not just the ones of Automagic itself but only Android 4.3+).

In your case you could also use a trigger Notification on Statusbar Selected:

Flow 1
Trigger: WiFi Connected
Action: Notification on Stausbar > "Bluetooth will be turned off in 30 sec", enable Notification ID: 123
Action: Sleep 30s
Action: Set Bluetooth State > Off

Flow2
Trigger: Notification on Statusbar Selected: trigger on notification from action, ID 123
Action: Stop Flows: Flow 1

Regards,
Martin

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Re: Notification on statusbar condition

Post by colabi » 28 Oct 2013 21:48

Hi Martin
Thanks for your quik response
Unfortunately for me... ICS 4.0.2
I will try your solution

Thanks again

Locked