-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to build hierarchical events/ profiles? #62
Comments
Scenarios are reusable components of an Event; it's a very thin abstraction layer so it's nothing more than a set of conditions (and the type). You can use inline Scenario if you don't want to make advanced reuse of the Scenario inside an Event, but I'd suggest define Scenarios for your case. The hierarchy is done by means of Events. You can do something like this (names are suggestions only): Create 2 Scenarios first:
Then you need to create 4 Profiles (I'm going from top to bottom, right to left):
Finally define 4 Events (I'm aware this is a bit annoying as we humans know some of them are only "reverses" to another one, and am planning to add more intuitive ways to handle this in future releases):
(
This should give you the desired behaviour. |
Thank you very much! It nearly works. In What doesn't work is enable and disable the mobile data. WiFi works well, but the state of mobile data doesn't change. |
Yes, you are right LOL. I put the wrong parent. The mobile data thing is not an official API, so it is not guarenteed to work on all devices. However, the root way does work (but you will need a rooted device). |
Unfortunately |
Thanks a lot! That is indeed a big problem 0_o I've found where it went wrong and have fixed it. Another silly problem is also fixed along the way. You may wait for v0.5.5.2 entering f-droid repo, or use the one published (and signed) by me on github releases (or bintray). |
It still doesn't work in 0.5.5.2. Edit: |
Hooray (partly) :) E2 is fired every second is because the phone is continously scanning (and maybe switching if you are moving, or in a "in-between" area) for base stations, which may cause a change in the connected base station (which is what is used by "cell location"). You may also try to use the "persistent" thing before the problem is solved:
|
But then I should also see WiFi being toggled on and off, or see the other event flashing some time in the outline.
Yes it's set to
Doesn't show any effect. The event is also fired every second. |
Hmm... Seems I made wrong condition checks. |
Strangely, I don't find anything wrong... Also, the test on my phone goes without problem. Can you post a log (either LogCat or the log under Note: there will be the name of the events, profiles and/or scenarios in the log. If you don't want them to appear, you can manually replace them with A, B, C, etc. |
Followed the instructions and it works perfectly when I leave the house. I replaced "mobile data" with "Brightness" turned up/turned down. Still works. BUT when I make a phone call (inside the house) wifi gets turned off, which causes Easer to see me as not connected to my SSID, which triggers brightness enabled. My mobile signal also goes from 4G to H+, and back again when the phone is finished. Sometimes phone calls won't go through because of this. I stopped Easer and made a couple of phone calls. Wifi does not get turned off nor do the other actions get triggered. What's wrong with my script? |
Seems like the phone call is either changing my location or disabling my location for a moment. This doesn't happen when I base the rule on SSID alone, and remove "disable wifi" from the profile (leaving only "enable BRIGHT" based on SSID.) |
Hi @gggirlgeek , thanks for reporting. |
Didn't want to open an issue until I know if the problem is Easer or me, or my hardware. To simplify: I have a scenario: Home Location, profile: Enable Brightness, script: Combines these two (Enable Brightness when NOT at home location -- (scenario reversed)). When I am at home and I make an outgoing phone call with Easer running, Easer enables my brightness. It should not do that because I'm still at the home location. Apparently the phone call is changing my location for a moment which causes Easer to think I'm not at the home location. Another strange thing: When I turn off my phone's Location manually Easer does NOT detect it (does not Enable Brightness.) When I walk a block from home Easer does NOT detect location either (regardless of phone's Location setting.) I live in the city so I need location within a few hundred feet. I'm probably connected to the same cell tower most of the time. Maybe Easer is basing cell location on cell towers? Samsung J7 2015 rooted custom Rom (Nougat) |
@gggirlgeek i think your problem is that your provider does not do voice over lte, thats why your network changes to 3g (H+) and thus the cell id changes. @pikim @renyuneyun |
I'm closing this in favour of #124 . Feel free to re-open this if not the case. |
I would like to build up kind of a tree, something like:
How can I achieve something like this?
I've already set up easy things like: activate silent mode after 10:00 pm or activate normal after 6:00 am, but nothing more complicated.
What can scenarios be used for?
The text was updated successfully, but these errors were encountered: