From version 3.20.109 Light Flow allows 3rd party apps to toggle its settings. Apps such as Llama and tasker allow for this.
Below is a quick example of setting up actions to fire to change settings within light flow from other apps:
Below is a quick example of setting up actions to fire to change settings within light flow from other apps:
Llama
Add an event, choose a condition then add an Action, choose "android intent"
Select an Intent send mode of "Broadcast".
Then an Action of one of the below.
com.rageconsulting.android.lightflow.SLEEP_TOGGLE
com.rageconsulting.android.lightflow.SLEEP_ON
com.rageconsulting.android.lightflow.SLEEP_OFF
If you press "ok" and "test actions" to see if you get a notification about switching on/off sleep mode.
If the Intent requires parameters place them into the "Extras" section. This can be done by just setting one parameter called EXTRA of type String
Here's an en example of the value to pass into the parameter for enabling the Facebook notification sound.
NOTIFICATION_NAME|facebook|ENABLED|TRUE
Tasker
Select "tasks"
Press the "+" icon.
Select "misc"
Select "send intent"
Set one of the options below and place it into the "Action" category:
com.rageconsulting.android.lightflow.SLEEP_TOGGLE
com.rageconsulting.android.lightflow.SLEEP_ON
com.rageconsulting.android.lightflow.SLEEP_OFF
If an intent is more complex and requires parameters then these can also be supplied as in the example below:
Set the action as follows:
com.rageconsulting.android.lightflow.NOTIFICATION_ENABLE
When switching a notification on the following information is required:
EXTRA:ENABLED|TRUE|NOTIFICATION_NAME|charging
..would enable the battery charging notification
..would enable the battery charging notification
extra - this part is fixed and always has a color (:) after it
notification type - much match with what lightflow calls each notification type, add the lightflow debug widget and test a notification and you'll see something like "WIFI IS ON", therefore in this case "WIFI" is the next parameter and is followed by a pipe (|)
notification title - the title string of what you to display in the notification/dashclock/pebble or widget
notification text - the detail to show in the notification/dashclock/pebble or widget
So for example in the "extras" field place the following:
notification:WIFI|Wifi On|Wifi body text
Light flow also has 5 generic notifications which can be used for your own functions you want notifications for. These are names
EXTERNAL1, EXTERNAL2, EXTERNAL3, EXTERNAL4, EXTERNAL5
So for example if you want tasker to monitor CPU load you can set up an action in tasker for this and then issue an action of
com.rageconsulting.android.lightflow.NOTIFICATION_ON
with an "extra" of
notification:EXTERNAL1|CPU Load|CPU load is high
To switch the notification back off send:
com.rageconsulting.android.lightflow.NOTIFICATION_OFF
with an extra of:
notification:EXTERNAL1
Light Flow now has over 80 different intents that can be sent to it. See here for details:
https://docs.google.com/spreadsheets/d/1W2lwXFimDBZkDirRyeyOGUJpAzUQRUttFogsZDHcICk
Light Flow now has over 80 different intents that can be sent to it. See here for details:
https://docs.google.com/spreadsheets/d/1W2lwXFimDBZkDirRyeyOGUJpAzUQRUttFogsZDHcICk