Remotely control GL routers

Hello,

I do have a GL-X3000 in my camper and would like to control it remotely.
Remotely means in a perfect world i would be able to control (and read) some features via Home Assistant.

What I mainly like to achieve is to switch SIM cards manually or choose a public wifi network to connect the router to when I am on a campsite.
But all without logging into the router via the UI.

I tried to search the forum and the internet and could only find a way via SSH commands.

It would be great if you could either point me to a solution, idea or maybe specific words i can enter at google :wink:

Best regards
René

Best way would be using GoodCloud for true remote management. Or the GL app on your phone - or even both.

But management using other software will need you to script something by yourself either using SSH or using crafted POST requests.

If the X3000 does not have public IP, you cannot remote access/read/control the Home Assistant which under the X3000.

Please try the Zerotier or Tailscale. And the Astrowarp from GLiNet, comming soon.
To create a virtual network between the X3000 and your remote devices (phone/laptop, etc.).

1 Like

Oh, I am sorry using misleading terms.
With remote I meant "not using the WebUI". It is not really meant to access the router outside of my local network.

I run a Home Assistant instance in my local camper network. I do have a dashboard running on my campers android head unit to control eg lights.
I'd also like to use this dashboard to "remotely" switch between SIM cards when i cross borders.
But without opening a browser, log into ther routers WebUI and switch the SIM there.

Thanks! Maybe the SSH Sensor intergration for Home Assistant could be a solution then.

Regarding POST requests, is there some documentation available?
The GL Inet API 4 documentation seems to be down.

You can track those POST requests using the browsers developer tools:

I think it is not GL router issue.
If you want remote Homeassistant then make addon official - DuckDNS and follow instructions.
After that in GL router open port for homeassistant.
If not working everything that problem is your sim has CGNAT.

1 Like

Thanks for the cool guide using the dev tools. Very interesting.
But it implies that all the (for me) important request will have been sent somehow. The documentation I am looking for is rather an overview of possible requests.

However, I learnt something new!

For sure. I don't even have an issue with the router.
I already can access my HA instance from outside the Campers network via zerotier. All fine.

Actually I am try to achieve something different.
From the local HA instance I'd like to send specific commands to my X3000 in the same network.
Eg. I'd like to switch between SIM card slots from my HA dashboard. Or see and choose available Wifis that the router sees and login for repeating.
... something like that.

There is no documentation available, so trying and dev tools is the only thing you can do.

GoodCloud will do all of that, why trying to invent the wheel again?

The intention is to control all in the camper from a single point - the home assistant dashboard running on the android head unit.
I have already a dashboard that show tire pressure, battery status or spirit level of the camper. I can control the light and lock/unlock the doors.
All from one place.
And all works without any internet connection from within my local network.

So if Goodcloud will help me to achieve that I will happily check it out.

Will Goodcloud work without internet connection? (which for example is crucial as I will switch SIM cards when the connection fails due to no activated international roaming)

No, of course GoodCloud won't work without Internet.

So in that case go SSH or using the web dev console.

Thats what I expected - with "cloud" in the name :grin:
Thank you anyway. I will further investigate using SSH.

Homeassistant does not have integration for any GLinet routers.

Exactly. That's why I try to find a solution. Do you have an idea how to do this?

It is hard. I think GL router has multi-wan. Homeassistant needs an open port to be live public, right? If the router is offline then not possible to remote the router and Homeassistant.