I recently gave a general overview of my“smart RV”project. Today, I want to outline the first step: how can I securely connect the control system to the internet so that I can check the status (temperatures, gas levels, battery charge levels, etc.) while on the road and control various functions, such as the air conditioning or heating?
My RV is equipped with an Oyster Easynet router. The 12V power supply runs to it through cable channels, and I used these to install a 12V-to-5V USB converter to power my Raspberry Pi 4. The Raspberry Pi runs a standard Home Assistant image that I installed on the SD card using Raspberry Pi Imager. There, you can easily set up the Wi-Fi address and other settings so that the Pi is visible on the vehicle’s own network immediately after booting. The Oyster router assigns an address via DHCP, which conveniently remains stable—there isn’t much you can customize with the Easynet components.

To ensure that the Home Assistant instance is available online, you need to do the following. I have registered my own domain with my hosting provider (Domainfactory). Since I want to use Cloudflare, I need to set up the appropriate DNS servers there.

The next step is to create a free account on Cloudflare and add the domain you registered earlier. The penultimate step is to install and configure the Cloudflare app in Home Assistant. There, you must enter the domain that was also registered with Cloudflare. When you launch the app and everything has been done correctly, a callback link will appear in the log, which is used to establish the tunnel connection between the domain and Home Assistant.

Copy this, paste it into the browser's address bar, and you're done. If everything went well, you'll see that the connection is established when you restart the app.

To make sure everything is secure, I've set up IP blocking in the configuration.yaml file and also enabled 2FA for my login. No one can get in without a code from the Authenticator app.
http:
cors_allowed_origins:
- https://google.com
- https://www.home-assistant.io
ip_ban_enabled: true
login_attempts_threshold: 3
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
Then all that's left is to create a nice icon on my phone's home screen that takes me straight to my HomeAssiant in the RV. We're on the road. We're online.







