Can I have a WiFi access point at a remote location connected to my ZeroTier network so that I may connect to a remote IOT device? How would I make this work?
Is the Wifi device also the router for the remote site?
No. the remote device is an ESPHome device on an ESP8266. The ESP device connects to the LAN using either DHCP or a static IP.
I am experimenting with putting Openwrt on a Raspberry Pi4. The Openwrt will have Zerotier network interface installed. This way when the ESP device requests an IP over DHCP then connects to the Openwrt router, the router will be a device on the Zerotier network.
Does this sound feasable?
That’s the best way - With OpenWRT as the primary router for the site, it is the default route for your devices and if they want to communicate with another device on your Zerotier network, it knows how to get there. The only missing piece is that you’ll want to ensure that you’ve added a route to the subnet managed behind the OpenWRT in the my.zerotier console so that other devices on your Zerotier network know how to get to that subnet.
This might be pushing a Pi4 a little hard so don’t expect to get full bandwidth through it though.