Phone Cell GSM - trigger vs condition

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
mechrekt
Posts: 51
Joined: 21 Oct 2013 10:11

Phone Cell GSM - trigger vs condition

Post by mechrekt » 28 Oct 2013 20:45

What is the more battery saving choice?
I know that I can do a Periodic Timer trigger then a Phone Cell GSM condition to know that I'm in a certain area of interest every given time.
But what is the difference if I use the Phone Cell GSM trigger instead?

What is better?

Sorry for my english.

Automagic: thanks for existing!

User avatar
mechrekt
Posts: 51
Joined: 21 Oct 2013 10:11

Re: Phone Cell GSM - trigger vs condition

Post by mechrekt » 31 Oct 2013 14:50

UP!

Happy Halloween!

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

Re: Phone Cell GSM - trigger vs condition

Post by Martin » 31 Oct 2013 18:01

Hi,

It's very difficult to answer this question since this is not documented in Android and depends on the device in use.
I would usually try the trigger first since it will execute the flow as soon as the cell change is detected. The trigger should not use much battery at all when no checkboxes in the options are required. Some devices require to periodically turn the screen on to detect the cell change.
When using the condition and a Periodic Timer try to call the flow as infrequently as possible (>15m) or even use a Periodic Timer Inexact.

Regards,
Martin

User avatar
mechrekt
Posts: 51
Joined: 21 Oct 2013 10:11

Re: Phone Cell GSM - trigger vs condition

Post by mechrekt » 01 Nov 2013 19:58

I'll try to follow your suggestions.
For now I've 2 main flows that checks for gsm connected or disconnected (with triggers) (one excludes the other). Then I've another flow enabled only when I'm in a cell gsm area of interest that checks for "known wifi zones" with periodic timer and wifi available condition.

I hope this is the right way.

I hope very soon to post all the flows to know if I'm doing well... I like to do things by myself but here I need to know if it is the most (battery) optimized way to use Automagic for my specific needs.

Thank you so much. Long life to Automagic!
Last edited by mechrekt on 02 Nov 2013 00:12, edited 1 time in total.

User avatar
mechrekt
Posts: 51
Joined: 21 Oct 2013 10:11

Re: Phone Cell GSM - trigger vs condition

Post by mechrekt » 02 Nov 2013 00:08

Another question:
Martin wrote:... I would usually try the trigger first... The trigger should not use much battery at all...
This approach has to be considered to all triggers (before using "Periodic Timer" trigger and a condition) or is valid for this specific "Phone Cell GSM" trigger only?

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

Re: Phone Cell GSM - trigger vs condition

Post by Martin » 02 Nov 2013 18:42

It depends on the trigger type and the flow you are creating. Many or even most triggers like login attempt, battery level, display state, incoming call, sms received etc. rely on events sent by the system and will use no or almost no battery by itself. Using a periodic timer with a high frequency and a condition to check the display state would consume much more battery than using a trigger display state.
The sensor triggers like shake, light sensor, compass on the other hand can use quite a bit of battery power depending on device. If your device properly supports the sensor condition, for example pressure sensor, and you only need to check the pressure sensor once an hour it's better to use a periodic timer and a condition.

Post Reply