I run HomeAssistant on some no-name fanless PC which has WiFi and Ethernet. I mainly access it over Ethernet, but it uses the Wifi to connect to my IOT SSID and expose its MQTT broker to the various Tasmota and ESP32 devices I have kicking around.
The problem was that every now any then the Wifi would quietly crap out and all my devices would stop updating. I could do one of two things.
- Peruse the logs, search out forums and blog posts, recompile drivers and sacrifice chickens or...
- Write a cronjob that pings the router over Wifi and if it gets no response it bounces the connection.
I went for 2. Sometimes life is too short to avoid a dirty hack.