Reconnect Macro Wifi for FireTV

jake85

New member
Hi,
mosty Fire TV Stick user know the issue wifi not automatic reconnects wifi and lose sometimes connection which forces do it manually or even restarts.

i worte first a macrao which got triggered by network disconnect and wait 20 seconds to connect wait 20 seconds and connect ....
works fine but i cant write this too long because its a lot of this 2 commands... wait and connect (my current is above 3min)

instead of a simple loop but the issue with the loop is i get complaints by macrodroid too many commands

This is the Loop i created it works but the problem is the complaints annoy me.

Any advice where i went wrong in the macro?

Any Help would be appreciated...
 

Attachments

  • workaround.png
    workaround.png
    178.6 KB · Views: 14

tanutanu

Well-known member
Hi,
mosty Fire TV Stick user know the issue wifi not automatic reconnects wifi and lose sometimes connection which forces do it manually or even restarts.

i worte first a macrao which got triggered by network disconnect and wait 20 seconds to connect wait 20 seconds and connect ....
works fine but i cant write this too long because its a lot of this 2 commands... wait and connect (my current is above 3min)

instead of a simple loop but the issue with the loop is i get complaints by macrodroid too many commands

This is the Loop i created it works but the problem is the complaints annoy me.

Any advice where i went wrong in the macro?

Any Help would be appreciated...
I don't think it works what you expected.
You have to put All statements what you want to repeat into while loop(between While/Do and End loop).
It's better to do like this.
 

Attachments

  • IMG_20211007_201050.jpg
    IMG_20211007_201050.jpg
    173 KB · Views: 12
  • Like
Reactions: 420

Dm114

Well-known member
I don't think it works what you expected.
You have to put All statements what you want to repeat into while loop(between While/Do and End loop).
It's better to do like this.
The wait action of 20ms is far too short to allow WiFi to reconnect: @jake85 had chosen 20 seconds (instead of ms).

Inside the loop, I'd rather put Connect action first and then Wait action to avoid beginning the loop with a useless Wait action and leave enough time to reconnect before Break from loop action.
 

tanutanu

Well-known member
The wait action of 20ms is far too short to allow WiFi to reconnect: @jake85 had chosen 20 seconds (instead of ms).

Inside the loop, I'd rather put Connect action first and then Wait action to avoid beginning the loop with a useless Wait action and leave enough time to reconnect before Break from loop action.
sorry, just a mistake. Thanks:)
@jake85, I meant 20ms as 20 seconds. please modify it when you write.
 

jake85

New member
I don't think it works what you expected.
You have to put All statements what you want to repeat into while loop(between While/Do and End loop).
It's better to do like this.
But i dont think yours will work in my case because nobody switches wifi off it only not automaticly reconnects thats the issue i want a workaround
 

jake85

New member
The wait action of 20ms is far too short to allow WiFi to reconnect: @jake85 had chosen 20 seconds (instead of ms).

Inside the loop, I'd rather put Connect action first and then Wait action to avoid beginning the loop with a useless Wait action and leave enough time to reconnect before Break from loop action.
the weird thing is after i removed the break on start and changed to 30 seconds the break after it stopped working
 

tanutanu

Well-known member
But i dont think yours will work in my case because nobody switches wifi off it only not automaticly reconnects thats the issue i want a workaround
oops, I misunderstood your situation. OK, you need to disconnect by yourself from your home network when it doesn't respond, right?
The most important point is how to use the while loop correctly and safely though.

I think 20 seconds is good enough. Probably it caused by a Fire TV bug, so it need to be waiting for a while, around 20 to 30 seconds is reasonable.

EDITED: I tweaked its minor issue when the network will be down and reconnect. The stopwatch is going to work again.
 

Attachments

  • wifiRestartSample.png
    wifiRestartSample.png
    142.7 KB · Views: 12
Last edited:

jake85

New member
sorry guys i forgot that it was all in german written down in macro here is the current working one but still with my issue because with 30 seconds it stops working no idea why.
@tanutanu your picture cant be loaded, no idea why in fullscreen
 

Attachments

  • workaround.jpeg
    workaround.jpeg
    85.8 KB · Views: 8

tanutanu

Well-known member
sorry guys i forgot that it was all in german written down in macro here is the current working one but still with my issue because with 30 seconds it stops working no idea why.
@tanutanu your picture cant be loaded, no idea why in fullscreen
The loop on the bottom line causes infinite loop, so OS task manager kill MD, then restart. It took 30 seconds or so. Please read above comments:)

EDITED: Yes, if luckily you can connect the wifi again, the while loop condition could pass. However the loop is executed super rapidly, MD should be terminated, unfortunately...

I uploaded the macro file. please rename, just omit ".txt" before import it.
 
Last edited:

tanutanu

Well-known member
One the other perfect solution is that,
use wired connection instead of wireless.
I connect my Fire TV to my home network with wired adapter to make it stable. It actually do it even though 100bps connection.
 

jake85

New member
@tanatanu
with your macro i dont get a error but dont connect aswell, changed ofc to my network the parts which are your network name
 

tanutanu

Well-known member
@tanatanu
with your macro i dont get a error but dont connect aswell, changed ofc to my network the parts which are your network name
Well, of course you have to change the AP name as your environment. If you have any other question, let me know within next few hours, It's 10:23pm now😪
 

tanutanu

Well-known member
i already did that, thought written it down
good night for you...
So nothing happens, without any problem? Sorry, I couldn't catch what you meant on #14.
I updated the screenshot of the macro and its file about 15 minutes ago, but previous version should be work as well.
Basically, before running the macro, your Fire TV have to be connected your network. The stick has its own function to connect automatically after boot up. MD should be running as well.

Earthquake!!!:eek::oops:
 

jake85

New member
i give it a try and report back...

This i wrote before works fine but covers only a limited time because no loop
 

Attachments

  • reconnect first try.jpeg
    reconnect first try.jpeg
    91.2 KB · Views: 9

tanutanu

Well-known member
i give it a try and report back...

This i wrote before works fine but covers only a limited time because no loop
We got a M6.1 earthquake:eek:
Well...OK, back to the first step.
Probably the wifi enabled trigger is meaningless, never fired because the Fire TV attempt to connect your network automatically and should be done successfully.
Then if eventually disconnected, the other trigger is going to fire, so these linear action statements will be running. The idea to replace to loop is good, but the while loop usage was incorrect. You have to put statements into loop as I do. If you don't understand and like what I wrote as a sample macro, it's ok, just do it to your infinite loop. Then it wound work when the stick disconnected.
 

jake85

New member
your new version of the macro works on first try, if it keeps that way its the perfect solution for me.

THX tanutanu

Maybe you upload it (in Macrodroid) so others can find your template in the app search, i know a few ppl who would like this macro
 
Top