Every so often, I need to restart my ISP router. Currently, I type in the IP address, User/PW and then push a button on the console. Is there a way that I can do this via home assistant ?
You don’t need to mask internal IPs.
And you forgot to do it in the code block anyways.
What happens if you pull the plug? Is that good enough as a reboot?
In that case a Zigbee plug could work for you.
Far easier than trying to build that thing.
You are right about the hiding. Pull the plug works, but it is mostly to be able to control remotely. I used a zigbee plug (which doesn’t work that well, could replace it). However, remote control won’t work besides if using a script. Finally, a reboot via the console takes less time. But if I don’t find a way to do this, I’ll need to refer back to previous solution.
Curl and wget both are command line programs able to handle http requests, sessions, etc. It is bit a difficult to provide you with ‘instant’ solution, but there are man pages and plenty of other knoweledge sources about. Just read it, open command prompt and try.
I found some information guides 1 and 2 resulting in the following code. Please note that I’ve put user/password. The problem I’m having is the session-keys, hence the session-key error (not sure if I would get more errors as I didn’t get that far).
I’ve tried to find out if there are ways around this problem, but nothing to be found. Maybe you guys have still an idea ?