yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] JVogler:
I did get a location trigger to work when I increased size to 1000 meters, and polling to 1 minute...but then it ran the trigger every minute I was there..so I guess I need to set another rule to disable after the first trigger. And making it 1000 meters makes it trigger when I'm at my house (about 1400m away), so I am a step closer as its triggering now...but need to figure out a few other things.

Still looking for the best settings, if anyone wants to share whats working for them the best.

EDIT: One thing I was wondering is this. Locale triggers about 99% of the time, but it just doesn't have the options for what I want to accomplish after the trigger. I wonder if there's a way to use locale as the trigger, but make it run a manual set up execution list in AutomateIt Pro? Am I dreaming here? lol
[Android Apps and Games] movrshakr:
Is it possible to create a rule that will perform an action when connection to "my" network SSID goes true and another to perform an action when connection to "my" network SSID goes false?

If not, may I suggest it (and I don't use the official suggestion site because it wants me to install something just to use it).
[Android Apps and Games] terewong:
Just made 2 new rules and it works very well

Turn off Wi-Fi when I get away my Wi-Fi connection at home

Turning Wi-Fi toconnect my WiFi network when step into the radio cell ID at home
[Android Apps and Games] Muzikant:
You can use the "Wifi Network Connection State" trigger to select specific networks and trigger on connecting or disconnecting from it.
[Android Apps and Games] Muzikant:
Polling every minute seems a bit extreme. This frequency could have impact on your battery and I recommend changing it to at least 10 minutes.

If you can provide some more info about your rule settings (Proximity radius, Are you using Coarse location only etc) and what you see in the rule log that would be very helpful.
[Android Apps and Games] movrshakr:
Great. I now have a rule

Trigger-Network[my network] is disconnected

Action-Set wifi adapter to disabled

I don't see how to create the companion rule for when I return into range of my network, of how to turn wifi back on. Since it is now off, it won't sense that 'my network' is now back in range.
[Android Apps and Games] Pkt_Lnt:
You need to make a location based trigger for that.
[Android Apps and Games] aziz_0:
good job :cool:
[Android Apps and Games] movrshakr:
Ok, created a location rule, but am bothered that the trigger description is "inside or entering a proximity region..."

Is it possible to create a trigger that fires only when ENTERING, not when entering or already inside? In other words, a trigger for crossing the boundary only?

Also, does "using fine accuracy" mean exactly the same as "using GPS?" If so, I wish the terminology was consistent.
[Android Apps and Games] nila@ufl.edu:
Calendar Issue

I have a Calendar Trigger that changes the sound mode to vibrate with Busy or Available events that use the title filter: Meet on event start. This rule works fine.

I have the exact same rule except at event start is unchecked to turn the sound mode back to normal, but this rule does not activate at the end of the meetings. Checking the history it is never triggered.

Any ideas to help me out with this would be greatly appreciated. Thank you,

Nila
[Android Apps and Games] Muzikant:
You shouldn't worry about the "Inside" part of the trigger description. This is how it works:

If you are already inside the defined region when defining the rule - it will launch immediately. from now on, it will launch only when you will enter the defined region.

This terminology is used since the pro version allows combining multiple triggers into a single trigger so you can create a trigger that will launch when "some trigger AND inside defined region". This will not launch unless both triggers are active, hence, the "inside" terminology.

As for the "use fine accuracy" - Yes, it means that only GPS is used.
[Android Apps and Games] Muzikant:
Please send me an email using the "Help!" button on the About screen of the app after you expect the rule to launch so I can get more details on your issue.
[Android Apps and Games] movrshakr:
My turn wifi on rule is

trigger-Inside or entering a...region of 2500m around (____). Sampling 15 min. Using fine and coarse accuracy.

action-set wifi to enabled

Pin on map is at exactly right place. It reliably never turns on, unless GPS gives a fix to the rule--which is extremely rare because this is a Captivate phone which has thoroughly lousy GPS.

Network location never works. Just came home and it did not trigger; history log showed network said I was 5451m from target, even though I was sitting right on the pin. Time of the logged data was 10 min after arriving home.

Since GPS also rarely works, I am having no success getting wifi to turn back on by the rule.
[Android Apps and Games] Muzikant:
The coarse location accuracy is affected by the number of cells you have in your area. I have to say that 5451m is very inaccurate... Unfortunately, this has nothing to do with AutomateIt but with the location provider. read more about it here .

I guess that in your case the "Cell ID Trigger" is probably the better choice:

Cell ID Trigger user guide
[Android Apps and Games] movrshakr:
That makes sense. When I look at the tools icon in cell ID trigger, there is only one tower showing. Is that normal? And the possible cause of lack of precision when "network" is trying to provide location?

EDIT: Just found the "scan" function, and it found one other cell--total of two.
[Android Apps and Games] Muzikant:
I recommend using the "Add cell (From Recent)" option to add all cells found in the last X hours since you are on the same location. In areas with lots of cells you can get to 30 cells for a single location (That's the highest number I've seen so far...)
[Android Apps and Games] movrshakr:
So, when you have multiple cells added, does the rule trigger only when ALL of them are "seen" or when ANY of them are "seen?"
[Android Apps and Games] Muzikant:
The trigger will launch when the device is connected to any one of the defined cells (You can't connect to more than one cell at a time...)
[Android Apps and Games] movrshakr:
Ah, thanks! But I think I will leave it at just the one cell, because if it fires on ANY of the cells, that broadens the area of "detection". I want to NARROW the area to "my house." The problem with THAT, as we have been discussing, is that the location error is enormous when only one tower is in sight, so the rule fails because of that.

It seems to be an unsolvable situation...multiple cells ID'ed broadens the area (not wanted), and single cell makes the location error too big (so rule doesn't trigger).

I really appreciate all your input by the way.
[Android Apps and Games] Pkt_Lnt:
I have almost the same situation in a very rural area with few cell sites. The two sites are almost the only ones for about 5-10 miles north and south, to the east is 5 miles to a town with plenty of sites, to the west is ocean. :)

What would make this work for me is to check for my home wifi SSID and then disable wifi if not found. Otherwise, wifi tries to connect where I spend 75% of my time in the local area.
[Android Apps and Games] movrshakr:
Very similar to my situation indeed; towers 3.8N, 2.4S, and a "supplemental" 1.2NE, ocean 0.8E.

I have a rule exactly as you describe to turn off wifi (network mine disconnected: disable wifi). It works well. My issue is turning wifi back on when I get back home.
[Android Apps and Games] Muzikant:
You can set a rule using the "Recurring Event Trigger" to monitor for Wifi connection as described at the second sample on the following post - Post about sample usage of recurring event trigger
[Android Apps and Games] walda:
Hi Muzikant!

Any news about my problem with "Invalid Licence"? We are in a Mail Conversation since the weekend.

I uninstalled AutomateItPro because of frequent Notifications.

Please fix it, or tell me how to handle.

Thanks

Walter
[Android Apps and Games] movrshakr:
Now that is interesting. So, if I am understanding it right, that approach in the second example would replace both my turn-on and turn off rules?

Will it cause more battery consumption by waking up the phone every hour at night--interrupting sleep? Side question, how long does a phone sit before it goes into deep sleep?

LATER: Having trouble creating the second rule..

Second Example:
Again, a set of two rules - the first executes every hour
and turns on Wifi. The second triggers when Wifi is turned
on and turns it off with a delay of 1 minute, unless any
network is connected. This will be used as a "Wifi detector"
and will not constantly scan for Wifi networks available.

I have..

Trigger = Wifi State trigger (wifi enabling)

Delayed 1 min.

Action = Set wifi state action (wifi disabled)

But this is all wrong--does not detect if it is MY network and keep it on. actually, I want to detect if ANY network is connected-keep it on, so when I connect to open nets at other places, the rule won't turn it off. I am just not seeing the correct trigger and action to use.

LATER2: I think I got it. The trigger should not be "The second triggers when Wifi is turned on.." It should be: "the second triggers when wifi connection state is connected, monitoring 'any network,' and action is set wifi state action to enabled."
[Android Apps and Games] roswell782:
Hi Muzikant i ve just bought your app, i like it but i have a problem. Almost everytime i open it i get a black screen then a fc, is it 100% compatible with ICS on sgs2? It s a fresh install after full wipe, i ve try everything, deleted app data, wipe cache,uninstalled app then installed it but it s always the same, that s really anoying :-(

Except that i like all possibilities of this app and it s more user friendly than Tasker for example.

Cheers, Ros.
[Android Apps and Games] Muzikant:
I think what you should do is use the following rule:

Trigger: Wifi is turned On

Action: Turn Wifi off

Delayed Execution: 5 minutes (just an example, you can probably set it to less than a minute)

Cancel delayed execution on trigger: ANY network connected

This will turn off your wifi after 5 minutes, unless you are connected to ANY network.
[Android Apps and Games] c00ller:
Hi Muzikant, I am now running AutomateIt Pro on ICS and it is working great! However, there is some graphical UI thing that needs to be adjusted. It seems that the notification appearance colors and such have been hardcoded, so it does not look consistent with ICS notifications at all. All other third party apps I'm using don't have this problem. See screenshot below:
[Android Apps and Games] Muzikant:
This looks like you have issues with superuser permissions set for AutomateIt. If you wish to use AutomateIt features that require root access, please make sure it is marked as "Always allow" on your superuser app.

If that's not the case, please send me an email using the "Help!" button on the app About screen, immediately after you get the black screen and FC.
[Android Apps and Games] roswell782:
Thanks for answered me so quickly. I have check SuperSu it's already set on "grant"access.

Since i wrote my previous message i didn't have the fc problem but if i have it again later i ll write you an email.

Thanks again for your support.
[Android Apps and Games] krystar:
would like to add a suggestion to the next feature list. and i think it falls inline with "send email"

make this thing webservice capable. have a new action "make webservice call" with configurable parameters that can be included the device's own identity: deviceID (IMEI or phone number), rough/fine location, all of the device's states (wifi, bluetooth, battery level).

then leave it to the developers of a webservice to figure out what they want to do with the data. whether it be opening a security gate, turning on the lights, turn on the AC, track fleet vehicles, etc etc.

personally i'd like it to trigger my webservice to know that i'm coming home and the adjust the thermostat as needed.
[Android Apps and Games] c00ller:
I have an issue using the Wifi state triggers in ICS that was not present in earlier versions of Android. I have one rule that is triggered when Wifi networked connection state changes to "disconnected". Previously, this rule was never triggered when I turned off my Wifi adapter. With ICS, everytime I turn off Wifi it also triggers this rule. Is there anything I can do to prevent this?
[Android Apps and Games] Muzikant:
Nothing has changed in AutomateIt in that sense, so this is probably the ICS implementation. To me it sounds more logical to trigger the "Network disconnected" when the Wifi adapter is turned off...
[Android Apps and Games] Muzikant:
That's odd...

See attached screenshot of a Galaxy Nexus running Android 4.0.2 with delayed execution notification.

There are no hard-coded colors used for the background so I don't see any reason for it to be displayed with gray background.
[Android Apps and Games] movrshakr:
I just was 30 minutes into constructing a response, fat fingered some key, and browser did a page refresh; everything gone. This will be much shorter..

Constructed this rule which I THINK is what you propose:

wifi state trigger>wifi enabled (not "enabling")

set wifi state action>disabled

Delayed execution 5 min

Cancel delayed execution>wifi network connection state trigger>connected (Monitored network=Any)

When it triggered, a Google search screen of some sort appeared, showing my last two search entries from days ago. Wifi entered a state of "turning on... " and stayed there forever. At the five minute timer, the same search screen appeared, wifi still showing "turning on... ".

Wifi state could not be manually changed. Could not get it into an OFF state. Reboot.

Side question, what precisely is the difference in enabled (means already on?) and enabling (means is in process of turning on?)
[Android Apps and Games] c00ller:
:confused:what could possibly be going on then...?
[Android Apps and Games] c00ller:
unpredictable proximity sensor triggers while screen is off in ICS

Also, on ICS the Proximity sensor trigger is behaving very unpredictably when the screen is off. For example, I have two different rules, one for NEAR state and one for FAR state. It appears that if I change from FAR to NEAR, usually after some delay the FAR action will be triggered first, followed shortly by the NEAR action. When changing from NEAR to FAR, usually the FAR action is triggered after some delay, and sometimes the NEAR action is triggered first. In both cases, many times nothing happens at all if a sufficient amount of time has passed after the screen was turned off. This was not a problem with Gingerbread... any thoughts?

Just a note: when the screen is on, the sensor works as expected 100% of the time.
[Android Apps and Games] grins1:
Unwanted trigger firing on home screen

Hello, Im using the pro version of AutomateIt on Android 2.3.4 and Im seeing a strange issue. I set up a trigger to keep the screen timeout to never when I launch a specific set of apps (a couple of games) and another trigger to set the screen timeout to 30 seconds when those apps close. The triggers work upon launching and closing the apps, but the 'screen timeout to never' trigger fires whenever I return to my home screen. Is there any way to prevent this from happening?
[Android Apps and Games] rharms77:
Power on/off trigger

Hello,

I first wanted to thank you for creating this app, it was exactly what I needed for my in dash tablet project I have been working on!

Here is the issue I have been having, off and on:

I have 3 rules currently applied;

1. A "car on" rule, in which when the tablet is on external power (via a 12 volt power source in the car), it returns the tablet to the home screen.

2. A "car on" rule, in which when the tablet is on external power, it sets screen timeout to never.

3. A "car off" rule, in which when the car is turned off (and power is lost to the 12 volt power source in the car), the screen timeout returns to 15 seconds, and the screen turns off.

Most of the time, these rules work exactly as I want, turning the screen on when i turn the car on, and off when I shut my car off. The issue I'm having is that sometimes the "car on" rule isn't activating. I've ruled out a bad power source. The tablet was last on earlier last week on the way to work. After work, I came out and started the car and the screen never came back on. I finally got around to checking on it today, which requires me pulling the dash apart. I had to physically hit the power switch on the tablet, and once on, I saw that the tablet was fully charged, indicating that the charger is working and charging the tablet. It seems as if sometimes the app is not sensing the external power trigger, and thus not turning the screen on. Do you have any ideas? Am I doing something wrong? I would be open to any ideas you might have.

Thank you!

Richard Harms
[Android Apps and Games] movrshakr:
When you say you had to hit the power switch, do you mean the tablet had to boot, or was it just in a screen-off state?
[Android Apps and Games] rharms77:
It was in a screen off state
[Android Apps and Games] Muzikant:
Reading your post again, I think I see what's wrong...

The "set screen timeout to never" action is not supposed to turn on the screen. it simply keeps it from turning off once it on.

Assuming you can get the screen to turn on somehow, it will keep it that way but will not turn it on automatically.
[Android Apps and Games] rharms77:
But wouldnt rule 1. take care of the issue of getting the screen on, and rule 2. take care of keeping it on? Like I said, when it works, it works perfectly. Its just not always following rule 1. If its an issue of rule 2. over-riding rule 1., maybe thats the problem?
[Android Apps and Games] Muzikant:
Rule #1 also does not turn the screen on.

You can look at the rule history to see when it was triggered to make sure that it does recognize the "Power on" event but launching the home screen is not meant to turn on the screen...
[Android Apps and Games] rharms77:
I should clarify. Rule is set to launch home screen action upon external power. Last night I backed up my rules, deleted them all, restored them all. Tried today and its working.
[Android Apps and Games] rharms77:
So now its back to working sometimes, and also I'm finding that there is a delay in the screen coming on.

I understand what you're saying, that the launch home screen action isnt meant to turn the screen on. What I find weird though, is that when the trigger works as I had intended, it does exactly that. Turn the car on, external power source turns on, the screen turns on.
[Android Apps and Games] Muzikant:
I believe you will get the same results without that rule. The normal behavior I observe on all of my Android devices is that once external power is connected, the screen turns on. Maybe when the device is in "deep sleep" this does not turn on the screen and this is why it works only sometimes.
[Android Apps and Games] movrshakr:
What is the difference in android "deep sleep" vs. "sleep?"

I assume 'sleep' simply means 'screen off' but no other changes.

But what is 'deep sleep' and what determines when a device will move from sleep into deep sleep?
[Android Apps and Games] Pkt_Lnt:
@rharms77, not sure what ROM you have in the tablet, and I am not a ROM expert by any means, but the CyanogenMod ROMS I know have a setting to stay on when power is connected. That will turn the screen on when plugged in. That might or might not be any help.
[Android Apps and Games] c00ller:
Could anyone with ICS please test the behavior of the proximity sensor while the screen is off? For example, please test with the following rules:

Rule 1: Trigger - Proximity Sensor is NEAR, Action - Play sound1

Rule 2: Trigger - Proximity Sensor is FAR, Action - Play sound2

And please test the behavior while the screen is off, repeatedly. I would like to know if the issue lies with the app, the ROM I am using, or my particular Proximity sensor (CM3602) + ROM combination (HTC Vision - Andromadus Beta 2). As a reminder, this was not a problem when I was using Gingerbread.
[Android Apps and Games] rharms77:
@Pkt_Lnt: right now im using an ICS leak on my Acer A100. But that is good to know. All day yesterday it seemed to be working just fine. I'm also looking into a way to hit the power button if it wont turn on, via a stealth hole or something similar.

---------- Post added at 03:04 PM ---------- Previous post was at 02:54 PM ----------

You're right about this, just tried it on my A500 tablet, and the screen turned right on. I had no idea it did this!

As movrshakr mentioned, I would like to know difference of sleep and deep sleep, especially since if I could prevent it from going into deep sleep, I wouldnt really have this problem.

Thanks!
[Android Apps and Games] Pkt_Lnt:
What triggers deep sleep is a bit of a mystery to me as a non-programmer, but here are the two things that helped me understand. No activity is basically what triggers deep sleep, but what level and when, is beyond me.

This is the real answer, if you understand this deeply - I do not, but I get the concepts. The second clock, uptimeMillis(), states:

http://developer.android.com/reference/android/os/SystemClock.html

In the one below, under Power Savings:

http://www.eetimes.com/design/embedded/4228560/Understanding-Android-s-strengths-and-weaknesses
[Android Apps and Games] c00ller:
OK, now I am REALLY confused. I just did some more tests. In the above post, I was testing by placing the phone in and out of my pocket, or just flipping it over on the table repeatedly. Apparently the proximity sensor behaves differently depending on the object that is in proximity:

If I use my finger, face, or any body part to cover or move away from the proximity sensor, it behaves properly.

It behaves unpredictably for inanimate objects such as books, my table, or the inside of my pocket.

I'm impressed at how a sensor could distinguish objects like this but also confused because I can't get my rules to work the way they did in Gingerbread.

OK now I feel like an idiot but I tested again and it is working properly on the table and in my pocket. I am trying really hard to reproduce this odd behavior but if I figure it out I will post.
[Android Apps and Games] rharms77:
I wonder then, if I leave some lower level program running in the background if it might prevent it from going into deep sleep?
[Android Apps and Games] movrshakr:
Is there any way to use the data shown in Cell ID Trigger>Scan cells to find the actual physical location of the towers represented by the numbers?

I have, over several days, seen four different CID numbers, but I KNOW there are only three towers anywhere near my house (ocean in one direction and large lagoon in the other). So I am curious about the fourth number.
[Android Apps and Games] Muzikant:
There are some open databases you can find online. just to get you started you can look at the following links.

This one is probably what you are looking for - http://www.cellspotting.com/thick/browse.php

But you can also take a look at the following:

http://www.developergarden.com/apis...ticle/cell-phone-localization-using-cell-ids/

http://openbmap.org/with_osm6.php5
[Android Apps and Games] Pkt_Lnt:
I used some apps that gave the actual location in lat/long of sites. Don't have them installed now, but look for Antennas, RF Signal Tracker, Network Signal. I found one stray site, so far away that it was sure it was obscured by mountains, but it registered. That is likely your situation too. It is nice to see the sites as your phone sees them.