User Activity 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

User Activity condition

Post by colabi » 30 May 2014 18:23

Hi Martin,

Do you think you can add a condition to check User Activity (driving, riding, walking)?
Thanks

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

Re: User Activity condition

Post by Martin » 31 May 2014 09:28

Hi,

Detecting the user activity is something that needs to be done actively over a period of time so it's not a good candidate for a condition.

You could make your own condition by using the trigger User Activity and store the activity periodically in a global variable:
-trigger User Activity: every 5m
-action Script: global_activity = activity_name;

and use a condition like this in another flow:
-condition Expression: global_activity=="on_foot"

Regards,
Martin

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

Re: User Activity condition

Post by colabi » 31 May 2014 11:55

OK Martin, thanks

Locked