So that Home Assistant can be accessed from the internet, one way is to use Cloudflare and the domain name that we have, here's the tutorial
- In Home Assistant, go to the 'settings' > 'Add-ons' > 'Add-ons store'
then select menu (3 dots at the top right) > select 'Repositories'
Enter this link : https://github.com/brenner-tobias/ha-addons
then refresh your browser, Couldflare add ons will appear, and then click Instal Cloudflare
- Login to your cloudflare account https://www.cloudflare.com/
In Cloudflare, select 'Application services', select free plan, add website, then enter your domain address
Change the nameservers in your domain panel with the nameservers in Cloudflare
- In cloudflare dashboard click 'Finish later'
- In Home Assistant go to configuration.yaml and paste this code:
===================================
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
===================================
- Go to 'System' > 'Network'
change Configure network interfaces to static IP
Go to the 'Add-ons' select Cloudflare and input your domain address in 'External Home Assistant Host Name'
Go to 'Log' tab, copy the http address and open it in your browser so that it goes to your cloudflare, click on your domain, and do 'authorize' . Wait until it is active on Cloudflare
And now your Homeassistant can be accessed from the internet
You can learn from the following this YouTube tutorial
Thank you
0 Comments