I was recommended to ask here about my project.
I have a Home Assistant server at home on a TP-Link Omada router (192.168.1.1)
I also have the ZeroTier add-on in Home Assistant with the ZeroTier IP of 10.144.82.253
My plan, flawed probably, was to put a router at the remote location using the ZeroTier IP as the WAN. The ESPHome device at the remote location would connect to a WiFi access point, for example at 192.168.4.10.
Does this sound feasible to control or read sensors from the remote ESPHome device?
This is a Zerotier question. The remote router or some other small controller there can be the ZeroTier Exit Node for the 192.168.4.0/24 network. ZeroTier Exit Node is what you probably need. But exit node towards internet is too much for this, it is exit to the local LAN.
Defining a "Managed Route" in your account Zerotier web config page for that remote location , would be the minimum.
(AFAIK I have only 1 Managed Route in the free Basic Zerotier. Essential should give me more)
Destination: 192.168.4.0/24 VIA 10.144.82.x (x being the Zerotier address of the remote router)
The remote router (firewall) should allow routing between 192.168.4.0/24 and 10.144.82.0/24
To avoid the "managed route" in ZeroTier you could experiment with NAT and port forwarding on that remote router (port forwarding the ESPHome used port from the ZeroTier address to the ESPHome device IP 192.168.4.10)
Thanks. I am still experimenting. The reason someone suggested that I ask at forum.gl-inet is because Zerotier can be installed on a gl-inet modem. Making the mapping easier.