Page 1 of 1
Battery alert speach
Posted: 23 Aug 2019 21:10
by Lucy
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
Re: Battery alert speach
Posted: 24 Aug 2019 03:23
by Pepy
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.
Re: Battery alert speach
Posted: 24 Aug 2019 05:06
by Lucy
Hmmm. I will monitor it and checl logs over next couple days
Re: Battery alert speach
Posted: 24 Aug 2019 15:15
by Lucy
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
Posted: 24 Aug 2019 15:40
by soutre
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.
Re: Battery alert speach
Posted: 24 Aug 2019 16:23
by soutre
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%.
Re: Battery alert speach
Posted: 24 Aug 2019 17:00
by Lucy
Lol omg i cant believe i didnt think of that simple solution hahahahahaha... thanks
that'll stop it
Re: Battery alert speach
Posted: 25 Aug 2019 17:54
by Desmanto
@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.
Re: Battery alert speach
Posted: 25 Aug 2019 21:28
by Lucy
Cool thanks sweetie