I have a simple battery alert for a few different levels that works exactly as i want it to however... every now and then when i close an unrelated app or disconnect charger the flow is triggered and it should not be. Any ideas whats happening?
http://automagic4android.com/flow.php?i ... e7fdb3c799
Battery alert speach
Moderator: Martin
Re: Battery alert speach
Nope, you're right; none of the things you mentioned should trigger the flow. I tried unplugging the charger a few times and it didn't trigger. Perhaps it could be a coincidence. Take a look at your log and see.
Hope my post was helpful
Device: OnePlus 5T running crDroid, rooted with Magisk
Device: OnePlus 5T running crDroid, rooted with Magisk
Re: Battery alert speach
Hmmm. I will monitor it and checl logs over next couple days
Re: Battery alert speach
Ugh i have gone through logs and it has no reference to this flow at all. It just randomly on certain operations initiates!! Really weird. Anyway if it becomes annoying i can simply remove the flow so no big deal
Re: Battery alert speach
It seems you have speech on the "Music" channel.
This could cause some problems with the actual playing of the sound. The device trigger is not going off, rather there may be a delay with the speech output part of the flow.
You may check log for an inconsistency in the time.
For example:
Trigger goes off and 10 seconds later the sound block actually finishes. That would indicate there is a delay.
You may try setting the channel to "Alarm" rather than "Music" to have something a bit more assured.
Code: Select all
<audioStreamType>MUSIC</audioStreamType>
You may check log for an inconsistency in the time.
For example:
Trigger goes off and 10 seconds later the sound block actually finishes. That would indicate there is a delay.
You may try setting the channel to "Alarm" rather than "Music" to have something a bit more assured.
Re: Battery alert speach
Ahh and to add, it seems the triggers would go off for every instance of the previous one. This could result in random spurts for any percent above 29%, 49%, and 79%. And it would repeat up to three times. You may try the attached flow, it's just a modified version of yours with a power source condition. This way it won't trigger when the battery level falls to those levels, and wont trigger at any random percent between 29% and 100%.
- Attachments
-
- flow_Battery_alerts_inc_20190825_011955.xml
- Modified battery alerts
- (3.15 KiB) Downloaded 805 times
Re: Battery alert speach
Lol omg i cant believe i didnt think of that simple solution hahahahahaha... thanks that'll stop it
Re: Battery alert speach
@Lucy : While you have solved it, when the trigger is not working as expected, you can use my variable logger flow to log the triggertime and trigger event name : viewtopic.php?f=3&t=7285
That way, you can see the pattern how the trigger/flow behave. Looking at the log sometimes can be so overloaded with too many information. While logging only certain variable surely makes it easier to spot the pattern.
That way, you can see the pattern how the trigger/flow behave. Looking at the log sometimes can be so overloaded with too many information. While logging only certain variable surely makes it easier to spot the pattern.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.