Hello all & kurokirasama,
first of all, a big thank you for this thread & for kurokirasama's
post: I like very much your idea to have Llama doing everything (including Juice Defender job). My needs are less complex than yours but still the result is quite nice. Could you have a look to my "adaptated" (from your work) events to tell me if I didn't do any huge mistake?
Event
juice defender like wifi mgmt
-
Conditions:
- Advanced: Repeat event every 15 minutes & stop if conditions are not met
- Llama variable: when 'night' doesn't have value 'yes' (1)
- Llama variable: when 'synchrowifi' has a value of 'yes' (2)
- Location: all places where I have wifi
-
Actions:
- Toggle WiFi: WiFi On
- Variable llama: Set 'syncingwifi' to 'yes' (3)
- Queued event start synchro: 8 seconds delay
-
Conditions: WiFi Network Connected: <Any WiFi network>
-
Actions:
- Toggle Account Sync: Enable Sync, Request Update
- Queued event
deactivate synchro: 1 min delay
-
Actions:
- Toggle Account Sync: Disable Sync
- Llama variable: Set 'syncingwifi' to 'no'
- Queued event
stop synchro if not connected: 8 seconds delay
(4)
-
Conditions: WiFi Network Disconnected: <Any WiFi network>
-
Actions:
- Llama variable: Set 'syncingwifi' to 'no'
- Toggle WiFi: WiFi Off
Event
screen off & no wifi sync
-
Conditions:
- Llama variable: when 'syncingwifi' has a value of 'no'
- Screen on/off: Screen off
-
Actions:
- Toggle WiFi: WiFi Off
Event
juice defender like mobile data mgmt
-
Conditions:
- Advanced: Repeat event every 15 minutes & stop if conditions are not met
- Llama variable: when 'night' doesn't have value 'yes'
- Llama variable: when 'synchromobiledata' has a value of 'yes'
- Location: all places where I don't have wifi
-
Actions:
- Toggle Mobile Data: Mobile Data On
- Variable llama: Set 'syncingmobiledata' to 'yes'
- Queued event start synchro: 8 seconds delay
-
Conditions: Mobile data connection: Mobile data connected
-
Actions:
- Toggle Account Sync: Enable Sync, Request Update
- Queued event
deactivate synchro: 1 min delay
-
Actions:
- Toggle Account Sync: Disable Sync
- Llama variable: Set 'syncingmobiledata' to 'no'
Event
screen off & no mobile data sync
-
Conditions:
- Llama variable: when 'syncingmobiledata' has a value of 'no'
- Screen on/off: Screen off
-
Actions:
- Toggle Mobile Data: Mobile Data Off
Notes:
(1) My night event start at 1:00AM every night (except if I have an event "on duty" in my calendar), put the phone on airplane mode, toggle Llama cell polling off & set Llama variable 'night' to 'yes'. My day event start at 6:20AM every day, remove the airplane mode, toggle Llama cell polling on & set Llama variable 'night' to 'no'
(2) I didn't create the event: my goal is to have a full automated solution (for my usage)
(3) I hope my understanding is good: the event to turn off WiFi is screen off & no wifi sync
(4) I also saw sometimes this behavior: as a result I copied your work
Thanks a lot for reading
The next thing I will try to look at: the WiFi is activated at work (but without having all the time the WiFi network available): the idea is to add timeout & regular checks if not connected on WiFi network
EDIT:
- I didn't see you posted your configuration & backup file in
this post: I'm going to study it with care (thanks again)
- I also saw
this post from Olivier D &
yours on WiFi polling: again very interessting