Battery alert speach

Post your questions and help other users.

Moderator: Martin

Post Reply
Lucy
Posts: 37
Joined: 10 Aug 2019 11:24

Battery alert speach

Post by Lucy » 23 Aug 2019 21:10

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

Pepy
Posts: 75
Joined: 31 Oct 2018 10:53
Location: Canada

Re: Battery alert speach

Post by Pepy » 24 Aug 2019 03:23

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.
Newbie to device automation! Hope my post was helpful, useful or informative :D
Device: OnePlus 5T (Dumpling) running crDroid 5.x, rooted via Magisk 8-)

Lucy
Posts: 37
Joined: 10 Aug 2019 11:24

Re: Battery alert speach

Post by Lucy » 24 Aug 2019 05:06

Hmmm. I will monitor it and checl logs over next couple days

Lucy
Posts: 37
Joined: 10 Aug 2019 11:24

Re: Battery alert speach

Post by Lucy » 24 Aug 2019 15:15

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

soutre
Posts: 11
Joined: 18 Aug 2019 07:01

Re: Battery alert speach

Post by soutre » 24 Aug 2019 15:40

It seems you have speech on the "Music" channel.

Code: Select all

<audioStreamType>MUSIC</audioStreamType>
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.

soutre
Posts: 11
Joined: 18 Aug 2019 07:01

Re: Battery alert speach

Post by soutre » 24 Aug 2019 16:23

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 16 times

Lucy
Posts: 37
Joined: 10 Aug 2019 11:24

Re: Battery alert speach

Post by Lucy » 24 Aug 2019 17:00

Lol omg i cant believe i didnt think of that simple solution hahahahahaha... thanks🤣🤙😊 that'll stop it

User avatar
Desmanto
Posts: 1981
Joined: 21 Jul 2017 17:50

Re: Battery alert speach

Post by Desmanto » 25 Aug 2019 17:54

@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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), Resurrection Remix Official 7.0.2 20190829, Pie 9.0, Rooted.

Lucy
Posts: 37
Joined: 10 Aug 2019 11:24

Re: Battery alert speach

Post by Lucy » 25 Aug 2019 21:28

Cool thanks sweetie

Post Reply