Is there a way to automatically reconnect WiFi if it shuts off?

Tried searching for answers with no luck.

I use Home Assistant and sometimes the WiFi on my laptop disconnects and I have to reconnect manually by typing “wifi on” in my terminal to get it working again. Is there a network setting somewhere on XFCE that I can change so WiFi will automatically reconnect? I am not sure if this a power saving issue or what the root cause of this is. Any advice is appreciated. New to Manjaro within the last couple of months.

Thanks,
Drake

I would start by disabling wifi powersave. Please post a full inxi output as nobody here can determine what chip we are talking about without one. To disable wifi power saving:

create this file if it does not exist.
/etc/NetworkManager/conf.d/default-wifi-powersave-off.conf

By default there is:

[connection]
wifi.powersave = 3

Change the value to 2. Reboot for the change to take effect.