#I have a problematic router on my network that drops the internet connection.

2 messages · Page 1 of 1 (latest)

clever thistle
#

To resolve this i normally login into it's webpage. navigate into the maintence section and click reboot. This helps rectify the situation.

I was wondering if I could run a script omn HA that, upon detecting an internet outage, would open the router's page and reboot the router. I would want to avoid using a smart plug if possible.

Thanks in advance..

half smelt
#

I can only think of this integration here to achieve this: https://www.home-assistant.io/integrations/scrape/
Just from skimming the summary, it doesn’t seem like there’s a way to interact with elements such as buttons though. Obviously coding a simple script yourself using selenium or something similar could solve this problem pretty easily, but might not be easily integrated into Home Assistant.

You could also check if the restart button fires a request using the developer tools in your browser of choice and try to figure out if it’s possible to replicate that request using curl or some other kind of tool.

I also found this post, but as already mentioned that goes way more into the custom / hacky direction.

https://community.home-assistant.io/t/guide-scraping-dynamic-websites-with-browserless-multiscrape-v2-update/665676/3

Home Assistant

Instructions on how to integrate Web scrape sensors into Home Assistant.